/* ========================================================================= */
/*                               DESIGN SYSTEM                               */
/* ========================================================================= */

:root {
    /* Base Font Size for px/rem conversions */
    --base-font-size: 16px;

    /* Typography */
    --font-family: 'Space Grotesk', sans-serif;

    /* Core Brand Colors */
    --primary-color: #D6111E;
    --primary-hover: #b80f1a;
    --white: #ffffff;
    --black: #000000;

    /* Light Mode Variables */
    --bg-color: #F8F8F8;
    --surface-color: #FFFFFF;
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #E0E0E0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark {
    /* Dark Mode Variables */
    --bg-color: #141414;
    --surface-color: #1A1A1A;
    --text-primary: #F0F0F0;
    --text-secondary: #A0A0A0;
    --border-color: #333333;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ========================================================================= */
/*                               RESET & BASE                                */
/* ========================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Ultra-minimalistic generic container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        /* Added margin/padding for mobile edges */
    }
}

/* ========================================================================= */
/*                               COMPONENTS                                  */
/* ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 16px rgba(214, 17, 30, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Icons Button */
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background-color: var(--border-color);
}

/* Inputs */
.input-minimal {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--surface-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-minimal::placeholder {
    color: var(--text-secondary);
}

.input-minimal:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(214, 17, 30, 0.1);
}

/* Cards/Surfaces */
.surface {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 32px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.surface:hover {
    box-shadow: var(--shadow-hover);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 48px;
}

.mt-5 {
    margin-top: 48px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.625rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    /*max-width: 600px;*/
    margin-left: auto;
    margin-right: auto;
}

/* ========================================================================= */
/*                               NAVIGATION                                  */
/* ========================================================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0 auto;
}

.nav-link {
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 8px;
    /* Give space between toggle and other actions */
}

/* ========================================================================= */
/*                               MAIN LAYOUT                                 */
/* ========================================================================= */
.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.app-content.fade-out {
    opacity: 0;
}

/* Generic Section Padding */
.section-padding {
    padding: 80px 15px;
}

/* ========================================================================= */
/*                               FOOTER                                      */
/* ========================================================================= */
.footer {
    padding: 60px 0 40px;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 24px;
}

.footer-col {
    display: flex;
}

.footer-watermark {
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-links {
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-contact {
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.footer-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.separator {
    color: var(--border-color);
}

.footer-logo {
    height: 50px;
    filter: grayscale(100%);
    opacity: 1;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================================================= */
/*                               SPECIFIC VIEWS                              */
/* ========================================================================= */

/* --- Home: Hero --- */
.hero-section {
    padding: 100px 15px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content .subtitle {
    margin-left: 0;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-mockup-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 24px;
}

.hero-phone {
    width: 250px;
    border-radius: 36px;
    box-shadow: 0 24px 64px rgba(8, 8, 8, 0.3);
    transform: translateY(20px);
}

.hero-phone:first-child {
    transform: translateY(-20px);
}


/* --- Home: Features & Reasons --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(214, 17, 30, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

/* --- Plans --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.plan-card.highlight {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color), var(--shadow-hover);
    transform: translateY(-8px);
}

.plan-badge-wrapper {
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.plan-price-block {
    margin: 32px 0;
}

.plan-currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: top;
}

.plan-price {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.plan-duration {
    color: var(--text-secondary);
    display: block;
    margin-top: 8px;
}

.plan-features {
    text-align: left;
    margin: 32px 0;
    flex: 1;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--primary-color);
}

/* --- Channels --- */
.channels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.channels-search-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.channels-search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.channels-search {
    padding-left: 48px;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.country-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    cursor: default;
}

.country-flag {
    font-size: 2rem;
}

.country-info h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.country-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- FAQ --- */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.faq-cat-btn {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
}

.faq-cat-btn.active,
.faq-cat-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-bottom: 24px;
    opacity: 1;
}

/* --- Installation --- */
.install-tabs-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 48px;
    display: flex;
    justify-content: center;
}

.install-dropdown-toggle {
    display: none;
    /* Hidden on desktop */
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 700;
}

.install-dropdown-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.install-dropdown-toggle i.fa-chevron-down.rotate {
    transform: rotate(180deg);
}

.install-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.install-tab {
    padding: 10px 16px;
    font-size: 0.95rem;
    /* Smaller to fit */
}

.install-tab i {
    margin-right: 8px;
}

.install-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.install-steps {
    max-width: 900px;
    margin: 0 auto;
    display: none;
    padding: 10px;
}

.install-steps.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.step-card {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding: 24px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    background-color: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .step-card {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }

    .step-card:hover {
        transform: none;
    }
}

/* --- Contact / Policy --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 48px;
}

.contact-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 35px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.policy-content p,
.policy-content li {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.policy-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
}


/* ========================================================================= */
/*                               MARQUEE ANIMATIONS                          */
/* ========================================================================= */

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 24px 0;
    display: flex;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    gap: 16px;
    animation: scroll-left var(--duration, 15s) linear infinite;
    will-change: transform;
}

.marquee-content.reverse {
    animation: scroll-right var(--duration, 15s) linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 8px));
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(calc(-50% - 8px));
    }

    to {
        transform: translateX(0);
    }
}

.poster-img {
    width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ott-logo-card {
    width: 200px;
    height: 100px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ott-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /*filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;*/
}

/*
.ott-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
*/

@media (max-width: 768px) {
    .poster-img {
        width: 110px;
        height: 160px;
    }

    .ott-logo-card {
        width: 110px;
        height: 60px;
    }
}

/* ========================================================================= */
/*                               ANIMATIONS                                  */
/* ========================================================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================= */
/*                               RESPONSIVE APP                              */
/* ========================================================================= */

@media (max-width: 992px) {

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-mockup-wrapper {
        margin-top: 48px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* Hide by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface-color);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border-color);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        margin-left: auto;
        gap: 8px;
        /* Tighter gap on mobile */
    }

    .nav-link::after {
        display: none;
    }

    .channels-header {
        flex-direction: column;
        align-items: stretch;
    }

    .channels-search-wrapper {
        max-width: 100%;
    }

    /* Footer Mobile Fixes */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-col {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-watermark {
        order: 3;
    }

    .footer-links {
        order: 2;
    }

    .footer-contact {
        order: 1;
    }

    /* Installation Mobile Dropdown */
    .install-dropdown-toggle {
        display: flex;
        background-color: var(--surface-color);
        margin-bottom: 0;
    }

    .install-tabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--surface-color);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        padding: 8px;
        z-index: 50;
        gap: 4px;
        margin-top: 8px;
    }

    .install-tabs.show-dropdown {
        display: flex;
    }

    .install-tab {
        width: 100%;
        justify-content: flex-start;
        border: none;
        padding: 12px 16px;
        border-radius: 6px;
    }

    .install-tab.active {
        background-color: rgba(214, 17, 30, 0.1);
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .nav-actions .btn {
        display: none;
        /* Hide CTA button on very small screens to save space */
    }

    .hero-phone {
        width: 180px;
    }
}
/* --- Channel Icons Page --- */
.channel-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.channel-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--surface-color);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.channel-icon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.channel-icon-card img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 12px;
}

.channel-icon-card span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
    word-break: break-word;
}

/* Clicking on country cards */
.country-card.clickable {
    cursor: pointer;
}

.country-card.clickable:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 480px) {
    .channel-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
    
    .channel-icon-card {
        padding: 12px 8px;
    }
    
    .channel-icon-card img {
        height: 48px;
    }
    
    .channel-icon-card span {
        font-size: 0.75rem;
    }
}
