/* =============================================================================
   TVE (TV Everywhere) Styles - ORGANIZED VERSION
   ============================================================================= */
   /* =============================================================================
   STREAMING HEADER / PROVIDER DROPDOWN
   ============================================================================= */
.header-streaming-account {
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: space-between; /* horizontal start & end */
}

.tve-streaming-wrapper {
    position: relative;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 3px solid #faa21b;
}

#menu-header-main-menu-mob .tve-streaming-wrapper {
    border-right: none;
    margin-bottom: 10px;
    border-bottom: 3px solid #faa21b;
    padding-bottom: 15px;
}

.tve-streaming-dropdown {
    position: absolute;
}

.tve-streaming-wrapper .header-streaming-btn {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    gap: 8px; /* spacing between logo & chevron */
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.tve-streaming-wrapper img.tve-provider-logo {
    max-height: 25px;
}

.tve-streaming-wrapper img.tve-provider-logo.inspgo {
    max-height: 45px;
}

.tve-streaming-wrapper .profile-user-dropdown {
    margin-top: 15px !important;
}

.tve-streaming-wrapper div.profile-user-dropdown ul li div {
    display: flex;
    font-weight: 800;
    -moz-column-gap: 16px;
    column-gap: 16px;
    align-items: center;
    border-radius: 3px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--color-primary-blue, #002f5e);
}

.tve-streaming-wrapper div.profile-user-dropdown ul li:hover div,
.tve-streaming-wrapper div.profile-user-dropdown ul li.active div {
    background: #dbeaf8;
}


/* =============================================================================
   TVE CONTAINER
   ============================================================================= */
.tve-container {
    /* min-height: 60vh; */
    color: white;
    position: relative;
}

.tve-container-fluid {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.tve-content-area {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tve-block-section {
    padding: 24px 0;
    position: relative;
    z-index: 5;
}

.tve-texture-style-6 {
    color: white;
    background: #002F5E url('../images/texture-style-6.png') left top no-repeat;
    /* min-height: 100vh; */
}

/* =============================================================================
   LOADING SCREEN
   ============================================================================= */
.tve-loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: white;
}

.tve-loading-screen .tve-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #faa21b;
    border-radius: 50%;
    animation: tve-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes tve-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tve-loading-screen .tve-loading-text {
    font-size: 18px;
    font-weight: 500;
}

/* =============================================================================
   PROVIDER SELECTION INTERFACE
   ============================================================================= */
.tve-title-container {
    text-align: center;
    margin-bottom: 60px;
}

.tve-title-container h1,
.tve-heading-main {
    color: white;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tve-title-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0 auto;
}

.tve-image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    max-width: 1000px;
    margin: 0 auto 70px auto;
    padding: 0 20px;
    text-align: center;
}

.tve-image-grid > * {
    flex-basis: 181.6px;
    flex-grow: 0;
    flex-shrink: 0;
}

.tve-provider-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.tve-provider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tve-provider-item:hover::before {
    left: 100%;
}

.tve-provider-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #faa21b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tve-provider-logo {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.tve-provider-item:hover .tve-provider-logo {
    filter: brightness(1.3);
}

/* =============================================================================
   SEARCH SECTION
   ============================================================================= */
.tve-search-section {
    text-align: center;
    margin: 60px auto 40px auto;
    max-width: 600px;
    padding: 0 20px;
}

.tve-search-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.tve-search-container {
    position: relative;
    margin-bottom: 10px;
}

.tve-search-container p {
    margin-bottom: 10px;
}

.tve-search-section .text-sm p {
    font-size: 18px;
    margin-bottom: 10px;
}

.tve-search-section .text-sm p:first-child {
    margin-top: 20px;
}

.tve-search-section .text-sm p a {
    color:#ffb320;
    font-weight: bold;
}

.tve-search-section .text-sm p a:hover {
    color:#faa21b;
    font-weight: bold;
}

   

#tve-search-box,
.tve-search-box {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
}

#tve-search-box::placeholder,
.tve-search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#tve-search-box:focus,
.tve-search-box:focus {
    outline: none;
    border-color: #faa21b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(250, 162, 27, 0.3);
}

#tve-dropdown-list,
.tve-dropdown-list,
.tve-dropdown-list {
    position: static;
    background: rgba(30, 52, 76, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 1000;
    text-align: left;
    max-width: 559px;
    margin: 5px auto 0 auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease 0.1s, 
                transform 0.3s ease 0.1s;
}

#tve-dropdown-list.show,
.tve-dropdown-list.show,
.tve-dropdown-list.show {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.full-provider-list-item,
.provider-option,
#tve-dropdown-list div,
.tve-dropdown-list div {
    padding: 5px 12px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.75rem;
}

.full-provider-list-item:hover,
.provider-option:hover,
#tve-dropdown-list div:hover,
.tve-dropdown-list div:hover {
    background: rgba(250, 162, 27, 0.2);
}

.full-provider-list-item:last-child,
.provider-option:last-child,
#tve-dropdown-list div:last-child,
.tve-dropdown-list div:last-child {
    border-bottom: none;
}

.search-help-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* =============================================================================
   STREAMING PAGE
   ============================================================================= */
.tve-streaming-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
    box-sizing: border-box;
}

.tve-center-container { justify-content: center; }
.tve-padding-vertical { padding-top: 20px; padding-bottom: 20px; }

.tve-main-content {
    flex: 1 1 auto;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.tve-video-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    position: relative;
    margin-bottom: 20px;
    margin-top: 35px;
}

#tve-video-player-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.tve-ad-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tve-ad-vertical-left,
.tve-ad-vertical-right { width: 160px; }

.tve-ad-squares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* =============================================================================
   USER PROFILE DROPDOWN
   ============================================================================= */
.tve-user-profile-dropdown { position: relative; display: inline-block; cursor: pointer; z-index: 1001; }

.tve-user-profile-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(30, 52, 76, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.tve-user-profile-trigger:hover {
    background: rgba(250, 162, 27, 0.8);
    border-color: rgba(250, 162, 27, 0.8);
    transform: scale(1.05);
}

.tve-user-profile-trigger.active {
    background: rgba(250, 162, 27, 0.9);
    border-color: rgba(250, 162, 27, 1);
    box-shadow: 0 0 10px rgba(250, 162, 27, 0.4);
}

.tve-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(30, 52, 76, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tve-user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tve-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tve-dropdown-item:last-child { border-bottom: none; }

.tve-dropdown-item:hover { background: rgba(250, 162, 27, 0.2); }

.tve-dropdown-item-icon { margin-right: 10px; font-size: 16px; width: 20px; text-align: center; }

/* =============================================================================
   ERROR STATES & LOADING OVERLAYS
   ============================================================================= */
.loading-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 52, 76, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.tve-error-content,
.tve-error-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.tve-error-inner { width: 100%; }

.tve-error-heading,
.tve-error-container h1 {
    color: #faa21b;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: bold;
}

.tve-yellow-text { color: #faa21b; }

.tve-error-message,
.tve-error-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tve-care-code,
.care-code {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

.tve-error-message-section { margin-bottom: 50px; }
.tve-action-container { margin-bottom: 40px; }
.tve-signout-message { margin-bottom: 10px; font-size: 1rem; color: rgba(255, 255, 255, 0.9); }

.tve-help-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    margin-top: 30px;
}

.tve-help-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.tve-help-text a {
    color: #faa21b;
    text-decoration: none;
}

.tve-help-text a:hover { text-decoration: underline; }

/* =============================================================================
   BUTTONS
   ============================================================================= */
.tve-btn,
.btn-refresh,
.btn-signout,
.tve-btn-refresh,
.tve-btn-signout {
    background: #faa21b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tve-btn:hover,
.btn-refresh:hover,
.btn-signout:hover,
.tve-btn-refresh:hover,
.tve-btn-signout:hover {
    background: #e8941a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 162, 27, 0.4);
}

.tve-btn-signout {
    background: #B73E26;
    color: white;
}

.tve-btn-signout:hover {
    background: #a03521;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 62, 38, 0.4);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Tablet */
@media (max-width: 768px) {
    .tve-title-container h1,
    .tve-heading-main { font-size: 2.5rem; }
    
    .tve-title-container p { font-size: 0.9rem; }
    
    .tve-image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .tve-provider-item { padding: 15px; min-height: 70px; }
    
    .tve-provider-logo { max-height: 50px; }
    
    .tve-streaming-container { flex-direction: column; align-items: center; }
    
    .tve-ad-vertical-left,
    .tve-ad-vertical-right { width: 100%; max-width: 600px; }
    
    .tve-ad-squares {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 20px auto 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .tve-title-container h1,
    .tve-heading-main { font-size: 2rem; }
    
    .tve-title-container p { font-size: 1rem; }
    
    .tve-image-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 0 15px;
    }
    
    .tve-provider-item { padding: 12px; min-height: 60px; }
    
    .tve-provider-logo { max-height: 40px; }
    
    .tve-search-section,
    .tve-select-container { padding: 0 15px; }
    
    #tve-search-box,
    .tve-search-box { padding: 12px 15px; font-size: 16px; }
    
    .tve-error-heading { font-size: 2rem; }
    
    .tve-streaming-container { padding: 15px; }
    
    .tve-video-container { margin-bottom: 15px; }
}

/* =============================================================================
   UTILITY CLASSES & ACCESSIBILITY
   ============================================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .tve-spinner { animation: none; border: 4px solid #faa21b; }
    
    * { transition: none !important; animation: none !important; }
}

.tve-provider-item:focus,
.tve-search-box:focus,
.tve-btn:focus {
    outline: 2px solid #faa21b;
    outline-offset: 2px;
}

.tve-dropdown-list .provider-option:focus {
    outline: 2px solid #faa21b;
    outline-offset: -2px;
}
