/* Shared header and footer presentation for every TV96 page. */

.main-header {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(8, 25, 36, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.24), inset 0 -1px 0 rgba(16, 185, 129, 0.08);
}

.logo img {
    display: block;
    width: auto;
    height: 46px;
}

.nav-menu {
    gap: 8px;
}

.nav-menu a,
.nav-menu > span {
    padding: 9px 13px;
    border-radius: 999px;
}

.nav-menu a::after {
    display: none;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu > span.active {
    color: #ecfdf5;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.header-right,
.social-icons {
    gap: 8px;
}

.social-icons a,
.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.045);
}

button.theme-toggle {
    padding: 0;
    font: inherit;
}

.social-icons a:hover,
.theme-toggle:hover {
    border-color: rgba(16, 185, 129, 0.38);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.11);
}

body.light-mode .main-header {
    border-color: rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .nav-menu a:hover,
body.light-mode .nav-menu a.active {
    color: #065f46;
}

.match-link-wrapper.streaming-disabled {
    cursor: default;
}

.match-link-wrapper.streaming-disabled .match-card:hover,
.match-link-wrapper.streaming-disabled .match-card:active {
    transform: none;
}

.main-footer {
    margin-top: 54px;
    padding-top: 62px;
    border-top: 1px solid rgba(16, 185, 129, 0.32);
    background:
        radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.1), transparent 22rem),
        linear-gradient(150deg, #071923 0%, #081f2a 52%, #06151e 100%);
}

.main-footer::before {
    height: 2px;
    opacity: 0.75;
}

.footer-container {
    grid-template-columns: 1.25fr 0.75fr 1fr;
    gap: clamp(34px, 6vw, 80px);
    align-items: start;
}

.footer-logo {
    max-height: 58px;
    margin-bottom: 16px;
}

.about-col p {
    max-width: 390px;
    line-height: 1.75;
}

.footer-col h4 {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-green);
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-color: rgba(148, 163, 184, 0.16);
}

.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top-color: rgba(148, 163, 184, 0.13);
}

.footer-bottom a {
    color: #6ee7b7;
}

body.light-mode .main-footer {
    border-top-color: rgba(16, 185, 129, 0.28);
    background:
        radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.08), transparent 22rem),
        linear-gradient(150deg, #ffffff, #f1f5f9);
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .social-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .main-header {
        top: 8px;
        width: calc(100% - 20px);
        min-height: 58px;
        padding: 8px 12px;
        border-radius: 14px;
        background: rgba(8, 25, 36, 0.96);
        box-shadow: 0 9px 24px rgba(2, 6, 23, 0.24);
    }

    .navbar-container {
        gap: 8px;
    }

    .logo img {
        width: auto;
        height: 36px;
        max-height: 36px;
    }

    .header-right {
        order: 2;
        margin-left: auto;
        gap: 7px;
    }

    .social-icons,
    .header-install-btn {
        display: none;
    }

    button.menu-icon,
    .theme-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        box-sizing: border-box;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 10px;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.045);
        font: inherit;
        font-size: 16px;
        line-height: 1;
    }

    button.menu-icon {
        order: 3;
    }

    button.menu-icon[aria-expanded="true"] {
        border-color: rgba(16, 185, 129, 0.4);
        color: #6ee7b7;
        background: rgba(16, 185, 129, 0.11);
    }

    button.menu-icon i,
    .theme-toggle i,
    .theme-toggle svg {
        width: 16px;
        height: 16px;
        font-size: 16px;
        line-height: 1;
    }

    .nav-menu {
        top: calc(100% + 7px);
        margin-top: 0;
        padding: 8px;
        gap: 3px;
        border-radius: 12px;
        background: rgba(8, 25, 36, 0.98);
        box-shadow: 0 16px 32px rgba(2, 6, 23, 0.32);
    }

    .nav-menu a,
    .nav-menu a:hover,
    .nav-menu a.active {
        padding: 11px 13px;
        border-radius: 8px;
    }

    body.light-mode .main-header,
    body.light-mode .nav-menu {
        border-color: #e2e8f0;
        background: rgba(255, 255, 255, 0.97);
    }
}

@media (max-width: 600px) {
    .main-footer {
        margin-top: 38px;
        padding: 44px 18px 18px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social-col {
        grid-column: auto;
    }

    .footer-logo {
        max-height: 50px;
    }

    .footer-bottom {
        margin-top: 30px;
        line-height: 1.6;
    }
}
