/*
Theme Name: FootGoal V2 (Clean)
Description: Clean multi-sport frontend for FootGoal based on mockup.
Version: 3.0
Author: Vinay
*/

:root {
    /* Brand Colors */
    --color-primary: #0b0f19;       /* Dark header/footer */
    --color-accent: #28a745;        /* Green accent */
    --color-background: #f4f5f7;    /* Body background */
    --color-surface: #ffffff;       /* Card background */
    --color-text: #333333;          /* Main text */
    --color-muted: #777777;         /* Subtitles, dates */
    --color-border: #eaeaea;        /* Lines */
    --color-live: #e53935;          /* Live indicator */
    
    /* Sport Accents */
    --sport-football: #28a745;
    --sport-basketball: #fd7e14;
    --sport-volleyball: #007bff;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Container */
    --container-max: 1200px;
}

/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
}
.section-title span.title-text { display: flex; align-items: center; gap: var(--space-sm); }
.section-title a.view-all {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: var(--space-md) 0;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
}
.site-header .logo span { color: var(--color-accent); }
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; gap: var(--space-lg); }
.main-navigation a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ccc;
    padding: var(--space-xs) 0;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO / TOP STORY
   ========================================================================== */
.hero-section {
    margin-top: var(--space-xl);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
}
.hero-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    background-color: #000;
}
.hero-main img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--space-xl);
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
}
.tag-sport {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}
.hero-content h2 { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: var(--space-sm); }
.hero-content p { font-size: 1rem; color: #ddd; margin-bottom: var(--space-md); max-width: 80%; }
.hero-meta { font-size: 0.85rem; color: #aaa; }

.hero-sidebar {
    background: var(--color-surface);
    border-radius: 8px;
    padding: var(--space-lg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.hero-sidebar .sidebar-title {
    font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-md);
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-news-list { display: flex; flex-direction: column; gap: var(--space-md); }
.sidebar-news-item { display: flex; gap: var(--space-md); align-items: center; }
.sidebar-news-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.sidebar-news-info h4 { font-size: 0.9rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.sidebar-news-info .meta { font-size: 0.75rem; color: var(--color-muted); }

/* ==========================================================================
   TODAY'S MATCHES
   ========================================================================== */
.matches-section { margin-top: var(--space-xl); }
.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.match-card {
    background: var(--color-surface);
    border-radius: 8px;
    padding: var(--space-md);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-accent);
}
.match-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--space-md);
    font-size: 0.75rem; font-weight: 600;
}
.match-header .comp { color: var(--color-muted); }
.match-teams {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--space-md);
}
.team-wrap { text-align: center; flex: 1; }
.team-wrap img { width: 48px; height: 48px; object-fit: contain; margin: 0 auto 8px; }
.team-wrap .team-name { font-size: 0.85rem; font-weight: 600; }
.match-score { font-size: 1.25rem; font-weight: 800; color: var(--color-muted); padding: 0 var(--space-sm); }
.match-footer { text-align: center; border-top: 1px solid var(--color-border); padding-top: var(--space-sm); }
.match-btn {
    display: inline-block;
    padding: 6px 12px; border: 1px solid var(--color-border);
    border-radius: 4px; font-size: 0.75rem; font-weight: 600; color: var(--color-text);
}
.match-btn:hover { background: var(--color-background); }

/* ==========================================================================
   LATEST NEWS GRID
   ========================================================================== */
.news-section { margin-top: var(--space-xl); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.news-card-small { display: flex; gap: var(--space-md); margin-bottom: var(--space-md); align-items: flex-start; }
.news-card-small img { width: 100px; height: 75px; object-fit: cover; border-radius: 4px; }
.news-card-small h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.news-card-small .meta { font-size: 0.75rem; color: var(--color-muted); }

/* ==========================================================================
   TEAMS & PLAYERS
   ========================================================================== */
.carousel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-md); }
.team-card {
    background: var(--color-surface); border-radius: 8px; padding: var(--space-md);
    text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.team-card img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.team-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.team-card .sport { font-size: 0.7rem; color: var(--color-muted); }

.player-carousel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-md); }
.player-card {
    background: var(--color-surface); border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.player-card .img-wrap { height: 160px; background: #e0e0e0; position: relative; }
.player-card img { width: 100%; height: 100%; object-fit: cover; }
.player-card .info { padding: var(--space-sm); text-align: center; }
.player-card h4 { font-size: 0.9rem; font-weight: 700; }
.player-card .team { font-size: 0.75rem; color: var(--color-muted); }
.player-card .sport { font-size: 0.7rem; font-weight: 700; color: var(--color-accent); text-transform: uppercase; margin-top: 4px; }

/* ==========================================================================
   SPECIAL EVENT BANNER
   ========================================================================== */
.event-banner {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
    background: linear-gradient(135deg, #2a0a5e, #140530);
    border-radius: 12px;
    padding: var(--space-2xl);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.event-banner-content h3 { font-size: 1rem; color: #a470ff; text-transform: uppercase; font-weight: 700; margin-bottom: 8px;}
.event-banner-content h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: var(--space-sm); }
.event-banner-content p { color: #ddd; max-width: 500px; margin-bottom: var(--space-lg); }
.event-btn { background: #6f2bf5; color: #fff; padding: 10px 20px; border-radius: 4px; font-weight: 600; font-size: 0.9rem; display: inline-block; }
.event-btn:hover { background: #5a1ecf; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}
.footer-logo { font-size: 1.5rem; font-weight: 900; font-style: italic; margin-bottom: var(--space-sm); }
.footer-logo span { color: var(--color-accent); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: var(--space-md); color: #aaa; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #ddd; font-size: 0.85rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    font-size: 0.8rem;
    color: #777;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */
.empty-state { text-align: center; padding: var(--space-xl); color: var(--color-muted); font-style: italic; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-main { min-height: 300px; }
    .matches-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none; /* Hide default, implement mobile menu logic */
        flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--color-primary); padding: var(--space-md); z-index: 100;
    }
    .main-navigation.is-active ul { display: flex; }
    .mobile-menu-toggle { display: block; }
    
    .matches-grid, .news-grid { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 1.8rem; }
    .event-banner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
/* --- Phase 10: Breadcrumbs --- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}
.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span.sep {
    margin: 0 8px;
    color: #ccc;
}

/* --- Phase 10: Match Scoreboard Header --- */
.match-scoreboard {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.match-scoreboard-comp {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.match-scoreboard-comp a {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
}
.match-scoreboard-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}
.scoreboard-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scoreboard-team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}
.scoreboard-team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}
.scoreboard-team-name a {
    color: inherit;
    text-decoration: none;
}
.scoreboard-team-name a:hover {
    color: var(--color-accent);
}
.scoreboard-vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-muted);
}
.scoreboard-score {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    background: #f0f0f1;
    padding: 8px 16px;
    border-radius: 8px;
}
.match-scoreboard-meta {
    font-size: 0.9rem;
    color: var(--color-muted);
    border-top: 1px solid #eaeaea;
    padding-top: 16px;
}
.match-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 8px;
    background: #eaeaea;
    color: #333;
}
.match-status-badge.status-Live {
    background: var(--color-accent);
    color: #fff;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* --- Phase 10: Section Headings --- */
.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 40px 0 24px;
    color: var(--color-primary);
    border-left: 4px solid var(--color-accent);
    padding-left: 12px;
}

/* --- Phase 10: Related Entities Sidebar/Chips --- */
.related-entities {
    margin-top: 32px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
}
.related-entities h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.related-chip {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.related-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.related-chip-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-right: 8px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .match-scoreboard-teams {
        gap: 16px;
    }
    .scoreboard-team-logo {
        width: 60px;
        height: 60px;
    }
    .scoreboard-team-name {
        font-size: 1rem;
    }
    .scoreboard-vs, .scoreboard-score {
        font-size: 1.5rem;
    }
}

