/* ==========================================
   STREAMING PLANS PAGE STYLES
   ========================================== */

/* Streaming Plans Page - uses same styles as homepage */
.streaming-plans-page {
    padding-top: calc(80px + 3rem);
    /* Account for fixed header */
    position: relative;
    background: url('../images/streaming.jpg') center center / cover no-repeat !important;
}

.streaming-plans-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 107, 226, 0.92) 0%, rgba(30, 107, 241, 0.80) 100%);
    z-index: 0;
}

.streaming-plans-page>.container {
    position: relative;
    z-index: 1;
}

.streaming-plans-page .section-header {
    color: white;
}

.streaming-plans-page .section-title {
    color: white;
}

.streaming-plans-page .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.streaming-plans-page .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #F9FAFB;
}

/* Plan Note */
.plan-note {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: left;
    font-style: italic;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

/* ==========================================
   STREAMING BAR
   ========================================== */
.streaming-bar {
    background: #f7f7f7;
    padding: 2.5rem 0;
}

.streaming-logos-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem 4rem;
}

.streaming-bar-logo {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

.streaming-bar-logo:hover {
    transform: scale(1.1);
}

/* ==========================================
   TV PACKAGE TOGGLE SWITCH
   ========================================== */
.tv-package-toggle {
    margin: 0.5rem 0;
    padding-top: 0.25rem;
}

.toggle-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-align: center;
}

.toggle-buttons {
    display: flex;
    background: #f0f4f8;
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
}

.toggle-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    border: none;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.toggle-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.toggle-btn.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-btn .pkg-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.toggle-btn.active .pkg-name {
    color: #8a2be2;
}

.toggle-btn.active .pkg-name::before {
    display: none;
}

.toggle-btn .pkg-channels {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

.toggle-btn.active .pkg-channels {
    color: #2b3de2;
}

/* Featured card toggle */
.plan-featured .toggle-buttons {
    background: rgba(138, 43, 226, 0.08);
}

.plan-featured .toggle-btn.active {
    background: white;
}

/* Responsive toggle */
@media (max-width: 576px) {
    .toggle-btn {
        padding: 0.5rem 0.25rem;
    }

    .toggle-btn .pkg-name {
        font-size: 0.75rem;
    }

    .toggle-btn .pkg-channels {
        font-size: 0.65rem;
    }
}

/* Smooth price animation */
.plan-price .amount,
.plan-price .cents {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.plan-price.animating .amount,
.plan-price.animating .cents {
    transform: translateY(-10px);
    opacity: 0;
}

.plan-features li:last-child {
    transition: all 0.3s ease;
}

.plan-features li.animating {
    opacity: 0;
    transform: translateX(-10px);
}

/* Custom Combo Link */
.custom-combo {
    text-align: center;
    margin: 0.5rem 0;
    padding-top: 0.5rem;
}

.custom-combo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #8a2be2;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-combo-link:hover {
    color: #6a1bb2;
    transform: translateX(5px);
}

.custom-combo-link i {
    font-size: 1rem;
}



/* Streaming Logos in Cards */
.streaming-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: 45px;
    transition: all 0.3s ease;
}

.streaming-logos img {
    height: 64px;
    width: auto;
    transition: all 0.3s ease;
}

.streaming-logos.animating {
    opacity: 0;
    transform: scale(0.9);
}

/* Logo-based Toggle Buttons */
.streaming-logo-toggle .logo-buttons {
    display: flex;
    gap: 0.5rem;
    background: #f0f0f0;
    padding: 0.5rem;
    border-radius: 16px;
}

.streaming-logo-toggle .toggle-btn {
    flex: 1;
    padding: 0.5rem;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.streaming-logo-toggle .toggle-btn .toggle-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.streaming-logo-toggle .toggle-btn:hover .toggle-logo {
    filter: grayscale(50%);
    opacity: 0.7;
}

.streaming-logo-toggle .toggle-btn.active {
    background: white;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
    outline: none;
}

.streaming-logo-toggle .toggle-btn.active .toggle-logo {
    filter: grayscale(0);
    opacity: 1;
}

/* Hide the bullet point on logo toggles */
.streaming-logo-toggle .toggle-btn::before,
.streaming-logo-toggle .toggle-btn *::before {
    display: none !important;
    content: none !important;
}

/* Sliding Toggle Indicator */
.toggle-slider {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(138, 43, 226, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.streaming-logo-toggle .toggle-btn {
    position: relative;
    z-index: 1;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.streaming-logo-toggle .toggle-btn.active {
    background: transparent !important;
}

/* Responsive */
@media (max-width: 768px) {
    .streaming-plans-page {
        padding-top: calc(80px + 2rem);
    }

    .streaming-logos-bar {
        gap: 1.5rem 2rem;
    }

    .streaming-bar-logo {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .streaming-logos img {
        height: 28px;
    }

    .streaming-bar-logo {
        height: 35px;
    }
}

/* ==========================================
   STREAMING HERO (Multi-Device Visuals)
   ========================================== */
.streaming-devices-wrap {
    position: relative;
    width: 450px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.streaming-tv-device {
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    height: 280px;
    transform: scale(0.85);
    z-index: 1;
    transform-origin: top right;
}

.streaming-tablet-device {
    position: absolute;
    left: 0;
    bottom: 40px;
    width: 200px;
    height: 280px;
    background: #111;
    border: 12px solid #222;
    border-radius: 20px;
    box-shadow: -15px 20px 40px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.1);
    z-index: 2;
    overflow: hidden;
    transform: rotate(-5deg);
}

.streaming-tablet-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b0c36 0%, #4a2882 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.streaming-phone-device {
    position: absolute;
    right: 40px;
    bottom: -20px;
    width: 140px;
    height: 280px;
    background: #111;
    border: 8px solid #222;
    border-radius: 24px;
    box-shadow: 10px 20px 40px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.1);
    z-index: 3;
    overflow: hidden;
    transform: rotate(5deg);
}

.streaming-phone-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 1024px) {
    .streaming-devices-wrap {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .streaming-devices-wrap {
        width: 100%;
        max-width: 350px;
        height: 220px;
        margin: 0 auto;
    }
    
    .streaming-tv-device {
        transform: scale(0.55);
        right: -20px;
        top: -40px;
    }
    
    .streaming-tablet-device {
        width: 130px;
        height: 182px;
        border-width: 8px;
        left: 5%;
        bottom: 20px;
    }
    
    .streaming-tablet-inner img {
        width: 65px !important;
    }
    
    .streaming-phone-device {
        width: 90px;
        height: 180px;
        border-width: 6px;
        right: 15%;
        bottom: -10px;
    }
    
    .streaming-phone-inner img {
        width: 45px !important;
    }
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 20;
    margin-top: -2rem;
    border-radius: 20px;
    margin-left: 2rem;
    margin-right: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1E6BF1, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: #64748B;
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-bar {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}