/* ==========================================================================
   1. GLOBAL SETTINGS & VARIABLES
   ========================================================================== */
:root {
    --bg-black: #000000;
    --secondary-bg: #161617;
    --a2b-gold: #ffcc00;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --glass: rgba(22, 22, 23, 0.8);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Updated Footer with Icons */
footer {
    padding: 80px 22px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-socials {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    color: var(--a2b-gold);
    transform: translateY(-3px);
}

/* ==========================================================================
   2. NAVIGATION BAR
   ========================================================================== */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   4. HOME PAGE (Bento Grid)
   ========================================================================== */
.bento-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 22px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto); 
    gap: 20px;
}

.bento-item {
    background: var(--secondary-bg);
    border-radius: 28px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid transparent;
    transition: border 0.5s ease;
}

.bento-item:hover {
    border: 1px solid var(--border);
}

/* The Socials Box at the Bottom */
.social-bento-full {
    margin-top: 10px;
    padding: 60px 40px;
}

.social-bento-full .social-icons-row {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.social-bento-full .social-icon-link {
    font-size: 40px;
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-bento-full .social-icon-link:hover {
    color: var(--a2b-gold);
    transform: scale(1.1);
}

.bento-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 17px;
}

/* Grid Sizes */
.large { grid-column: span 8; }
.small { grid-column: span 4; }
.full { grid-column: span 12; }

/* The Bottom Row Grid Container */
.bento-section .squad-grid {
    grid-column: span 12;      
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.bento-section .apple-card {
    background: var(--secondary-bg);
    border-radius: 22px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    height: 250px; 
    overflow: hidden;
    border: 1px solid transparent;
    transition: border 0.5s ease;
}

.bento-section .apple-card:hover {
    border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   THE GEAR CARD (Zoomed & Locked)
   -------------------------------------------------------------------------- */
.bento-section .gear-card {
    padding: 25px !important; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    position: relative;
    background: radial-gradient(
        circle at 68% 50%, 
        rgba(255, 204, 0, 0.15) 0%, 
        rgba(22, 22, 23, 1) 75%
    );
    background-color: var(--secondary-bg);
}

.gear-header, .gear-footer {
    position: relative;
    z-index: 10;
}

.gear-image-container {
    position: absolute;
    top: 0;
    left: 74px; 
    width: 100%;
    height: 91%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; 
    pointer-events: none;
}

.kit-preview {
    width: 50%;
    height: auto;
    object-fit: contain;
    transform: scale(1.1) translateY(10px); 
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
}

.gear-footer .player-bio {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.bento-section .player-bio {
    margin-top: auto; 
}

/* ==========================================================================
   5. METALLIC GOLD BUTTON
   ========================================================================== */
.instagram-btn {
    background: linear-gradient(135deg, #b8860b 0%, #ffcc00 50%, #b8860b 100%) !important;
    color: #000 !important;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
}

.instagram-btn:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-image: url('images/a2b-logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1; 
    z-index: -1;
    pointer-events: none;
}

.instagram-btn h3 {
    font-weight: 700;
    margin-bottom: 5px;
}

.instagram-btn p {
    color: rgba(0,0,0,0.6) !important;
    font-weight: 500;
}

/* ==========================================================================
   6. SQUAD PAGE (Player Cards)
   ========================================================================== */
.results-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px 100px;
}

.section-divider {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--a2b-gold);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0; 
    margin: 0 auto 40px;
}

.apple-card {
    position: relative;
    background: var(--secondary-bg);
    border-radius: 22px;
    padding: 30px;
    text-align: left;
}

.squad-number {
    position: absolute;
    top: 30px;      /* Matches the card's padding */
    right: 30px;    /* Matches the card's padding */
    color: var(--a2b-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.5;   /* Subtle look, or change to 1.0 to match the position tag exactly */
}

.apple-card .tag {
    color: var(--a2b-gold);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.apple-card h3 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.player-bio {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

/* ==========================================================================
   7. RESULTS PAGE (Matches)
   ========================================================================== */
.match-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.match-card:hover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.match-date {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.match-teams {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.vs-light {
    color: #444; 
    font-weight: 400;
    padding: 0 10px;
}

.match-excuse {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.match-outcome {
    text-align: right;
}

.score-pill {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    display: block;
}

.score-pill.win {
    color: var(--a2b-gold); 
}

.match-status {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* ==========================================================================
   8. MOBILE & RESPONSIVENESS OVERHAUL
   ========================================================================== */

/* Tablet & Below (992px) */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 60px; /* Scaling down from 80px */
    }
    
    .large, .small {
        grid-column: span 12; /* Everything goes full width */
    }
}

/* Phones (768px and below) */
@media (max-width: 768px) {
    
    /* 1. NAVIGATION: The "Apple" Scroll Trick */
    /* Instead of a messy list or a burger menu, we let the links scroll horizontally */
    .nav-content {
        justify-content: flex-start;
        gap: 20px;
    }

    .nav-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch; /* Smooth scroll for iPhone */
        gap: 20px;
        scrollbar-width: none; /* Hide scrollbar for Chrome/Safari */
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    /* 2. HERO: Stop the text from breaking and looking huge */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 42px; /* Perfect for mobile screens */
        letter-spacing: -1px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 18px;
        padding: 0 10px;
    }

    /* 3. BENTO GRID: Proper Stacking */
    .bento-section {
        grid-template-columns: 1fr; /* Force 1 column */
        gap: 15px;
        padding: 20px 15px;
    }

    .bento-item {
        grid-column: span 12 !important; /* Force all boxes to full width */
        padding: 30px 20px;
        min-height: auto;
    }

    /* 4. SQUAD GRID: 1 Column on Mobile */
    .squad-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bento-section .squad-grid {
        grid-column: span 12;
        grid-template-columns: 1fr;
    }

    /* 5. GEAR CARD: Fix the kit overlapping text */
    .kit-preview {
        width: 70%; /* Slightly larger on mobile to show detail */
        transform: scale(1) translateY(20px);
        margin-top: 20px;
    }

    .gear-image-container {
        position: relative; /* Stop it floating over the text */
        left: 0;
        height: 200px;
        margin-top: 20px;
    }

    .gear-card {
        height: auto !important; /* Let the card grow with the content */
    }

    /* 6. RESULTS & BLOG */
    .match-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .match-outcome {
        text-align: center;
    }

    .match-teams {
        font-size: 20px;
    }

    /* 7. SQUAD NUMBERS: Don't clash with the Tag */
    .squad-number {
        top: 20px;
        right: 20px;
        font-size: 10px;
    }

    .apple-card {
        padding: 20px;
    }
}

/* Small Phones (iPhone SE etc.) */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 34px;
    }
}

/* ==========================================================================
   9. BLOG / PRESS ROOM STYLES
   ========================================================================== */
.blog-feed {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    transition: transform 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer; 
}

.blog-post:hover {
    border: 1px solid var(--border);
    transform: translateY(-3px); 
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.date {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-preview {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--a2b-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.season-badge {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--secondary-bg);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.season-badge:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.season-badge.active {
    background: var(--text-primary); 
    color: #000; 
}