
/* =========================================
   FOOTZONE | PREMIUM FOOTBALL PLATFORM
   Main stylesheet
========================================= */

:root {
    --bg: #050805;
    --surface: #0b100b;
    --card: #101810;
    --green: #a3ff12;
    --green-dark: #6eae08;
    --white: #f5f8f2;
    --muted: #899387;
    --border: rgba(163,255,18,.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
}

/* =========================================
   NAVIGATION
========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 78px;
    background: rgba(5,8,5,.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.logo span,
.logo b {
    color: var(--green);
}

.logo b {
    font-size: 30px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    transition: .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-btn {
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 5px;
    padding: 12px 19px;
    font-size: 11px;
    font-weight: 800;
    transition: .3s;
}

.admin-btn:hover {
    background: var(--green);
    color: black;
}

.menu-btn {
    display: none;
    background: transparent;
    color: var(--green);
    border: none;
    font-size: 25px;
}

/* =========================================
   HERO
========================================= */

.hero {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050805;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            #050805 0%,
            rgba(5,8,5,.96) 35%,
            rgba(5,8,5,.4) 100%),
        linear-gradient(0deg, #050805 0%, transparent 40%),
        url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?w=1800")
        center/cover;
    opacity: .8;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 90px 5%;
    margin: auto;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.green-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    flex-shrink: 0;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(60px, 9vw, 115px);
    font-weight: 700;
    line-height: .91;
    letter-spacing: -7px;
}

.hero h1 span {
    color: var(--green);
}

.hero-content > p {
    max-width: 480px;
    color: #a1aa9d;
    line-height: 1.9;
    font-size: 14px;
    margin-top: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.btn-green,
.btn-outline {
    display: inline-block;
    padding: 16px 23px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    transition: .3s;
}

.btn-green {
    background: var(--green);
    color: #050805;
}

.btn-green:hover {
    background: white;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.2);
}

.btn-outline:hover {
    color: var(--green);
    border-color: var(--green);
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    max-width: 650px;
    margin-top: 100px;
    color: #6c7768;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    max-width: 1400px;
    padding: 70px 5%;
    margin: auto;
}

.section-top,
.news-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.section-label {
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
}

.section-top h2,
.news-heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 35px;
    letter-spacing: -1.5px;
}

.section-top h2 span,
.news-heading h2 span {
    color: var(--green);
}

.section-note,
.article-count {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

/* =========================================
   LEAGUES
========================================= */

.league-section {
    padding-bottom: 25px;
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 13px;
}

.league-card {
    min-height: 95px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 17px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: .3s;
}

.league-card:hover {
    border-color: var(--green);
    background: #121c0d;
    transform: translateY(-5px);
}

.league-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.league-card h3 {
    font-size: 11px;
    margin-bottom: 6px;
}

.league-card p {
    font-size: 10px;
    color: var(--muted);
}

.league-card > span {
    color: var(--green);
    margin-left: auto;
}

/* =========================================
   NEWS FILTERS
========================================= */

.filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--green-dark) transparent;
}

.filter-btn {
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--surface);
    color: #a4ada0;
    padding: 11px 19px;
    font-size: 10px;
    font-weight: 700;
    transition: .3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--green);
    color: black;
    border-color: var(--green);
}

/* =========================================
   FEATURE BANNER
========================================= */

.feature-banner {
    min-height: 330px;
    background: #111a0c;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 75px;
}

.feature-text {
    padding: 45px;
}

.feature-label {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.feature-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    line-height: 1.05;
    margin-top: 20px;
    letter-spacing: -2px;
}

.feature-text h2 span {
    color: var(--green);
}

.feature-text p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 15px;
}

.feature-link {
    display: inline-block;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    margin-top: 25px;
}

.feature-image {
    min-height: 330px;
    background:
        linear-gradient(90deg, #111a0c, transparent 60%),
        url("https://images.unsplash.com/photo-1508098682722-e99c643e7f0b?w=1000")
        center/cover;
}

/* =========================================
   NEWS CARDS
========================================= */

.news-heading {
    margin-bottom: 30px;
}

.update-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    min-height: 180px;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    transition: .3s;
    animation: cardEnter .45s ease both;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--green);
}

.news-img {
    width: 100%;
    height: 215px;
    object-fit: cover;
    display: block;
    background: #111a0c;
}

.news-body {
    padding: 22px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.news-category {
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date {
    color: #758071;
    font-size: 10px;
}

.news-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-excerpt {
    color: #9ba497;
    font-size: 12px;
    line-height: 1.8;
}

/* ARTICLE PREVIEW */

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    margin-top: 20px;
    transition: .3s;
}

.read-more:hover {
    color: white;
    gap: 15px;
}

/* EMPTY AND ERROR */

.empty-message,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 55px 20px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--muted);
    font-size: 12px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #1c2917;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   PREMIUM ARTICLE READER
========================================= */

.article-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.article-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.article-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.86);
    backdrop-filter: blur(12px);
}

.article-reader {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0b100b;
    border: 1px solid rgba(163,255,18,.22);
    border-radius: 14px;
    box-shadow: 0 30px 100px rgba(0,0,0,.7);
    transform: translateY(25px) scale(.98);
    transition: transform .35s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--green-dark) #0b100b;
}

.article-modal.active .article-reader {
    transform: translateY(0) scale(1);
}

.reader-topbar {
    height: 68px;
    padding: 0 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #080d08;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.reader-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 700;
}

.reader-brand span,
.reader-end span span {
    color: var(--green);
}

.reader-close {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: #121a10;
    color: white;
    font-size: 17px;
    transition: .25s;
}

.reader-close:hover {
    background: var(--green);
    color: #050805;
    border-color: var(--green);
    transform: rotate(90deg);
}

.reader-content {
    padding-bottom: 35px;
}

.reader-image-wrap {
    width: 100%;
    height: 390px;
    background: #101810;
    overflow: hidden;
}

.reader-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-details {
    max-width: 740px;
    padding: 35px 30px;
    margin: auto;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.reader-meta span:first-child {
    color: var(--green);
    background: rgba(163,255,18,.09);
    padding: 8px 12px;
    border-radius: 4px;
}

.reader-details h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(27px, 5vw, 43px);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-top: 23px;
}

.reader-summary {
    color: #aab3a5;
    font-size: 15px;
    line-height: 1.9;
    margin-top: 17px;
}

.reader-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.author-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #050805;
    font-weight: 900;
}

.reader-author strong,
.reader-author small {
    display: block;
}

.reader-author strong {
    font-size: 12px;
}

.reader-author small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.reader-divider {
    height: 1px;
    background: var(--border);
    margin: 30px 0;
}

.reader-body {
    color: #d1d8cc;
    font-size: 15px;
    line-height: 2.1;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.reader-end {
    border-top: 1px solid var(--border);
    margin-top: 45px;
    padding-top: 25px;
}

.reader-end > span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 23px;
    font-weight: 700;
}

.reader-end p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

body.article-open {
    overflow: hidden;
}

/* =========================================
   FOOTER
========================================= */

.footer {
    background: #030503;
    border-top: 1px solid var(--border);
    padding: 60px 5% 25px;
}

.footer-main {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
    max-width: 310px;
    margin-top: 17px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4 {
    color: var(--green);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--muted);
    font-size: 12px;
    transition: .3s;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    max-width: 1300px;
    margin: auto;
    padding-top: 23px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #65705f;
    font-size: 9px;
    letter-spacing: 1px;
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media(max-width: 1000px) {

    .league-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media(max-width: 700px) {

    .navbar {
        height: 68px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 25px 5%;
        background: #080d08;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 25px;
    }

    .nav-links.show {
        display: flex;
    }

    .hero {
        min-height: 570px;
    }

    .hero h1 {
        font-size: 65px;
        letter-spacing: -4px;
    }

    .hero-footer {
        margin-top: 75px;
        font-size: 8px;
    }

    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section-top h2,
    .news-heading h2 {
        font-size: 28px;
    }

    .section-note {
        display: none;
    }

    .league-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .league-card {
        padding: 13px 9px;
    }

    .league-card h3 {
        font-size: 10px;
    }

    .feature-banner {
        grid-template-columns: 1fr;
    }

    .feature-text {
        padding: 30px;
    }

    .feature-text h2 {
        font-size: 39px;
    }

    .feature-image {
        min-height: 200px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-img {
        height: 230px;
    }

    .news-heading {
        align-items: flex-start;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        line-height: 1.8;
    }

}

/* =========================================
   ARTICLE READER MOBILE
========================================= */

@media(max-width: 600px) {

    .article-modal {
        padding: 0;
    }

    .article-reader {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
    }

    .reader-topbar {
        height: 60px;
        padding: 0 18px;
    }

    .reader-image-wrap {
        height: 245px;
    }

    .reader-details {
        padding: 27px 20px;
    }

    .reader-details h1 {
        font-size: 29px;
    }

    .reader-summary {
        font-size: 13px;
    }

    .reader-body {
        font-size: 14px;
        line-height: 1.9;
    }

}

/* SMALL PHONES */

@media(max-width: 380px) {

    .hero h1 {
        font-size: 53px;
    }

    .admin-btn {
        padding: 10px;
    }

    .league-card {
        gap: 7px;
    }

}

/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

@media(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}
/* =====================================
   FOOTZONE NEWS STATISTICS
===================================== */

.news-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.news-views {
    color: #52e0c0;
    font-size: 11px;
    font-weight: 600;
}

.reading-time {
    color: #929baa;
    font-size: 11px;
}

.news-labels {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
}

.featured-label,
.trending-label {
    font-size: 9px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 4px;
}

.featured-label {
    color: #52e0c0;
    background: rgba(82, 224, 192, .12);
}

.trending-label {
    color: #ffb45e;
    background: rgba(255, 180, 94, .12);
}

