/*
Theme Name: StatGoal
Theme URI: https://jouwwebsite.nl
Author: Jouw Naam
Description: Een professioneel thema voor voetbalstatistieken, uitslagen en clubdata. Geen blog, puur data.
Version: 1.0
Text Domain: statgoal
*/

:root {
    --pitch-green: #27ae60;    /* Grasgroen */
    --stadium-dark: #111827;   /* Donkere achtergrond header/footer */
    --card-bg: #ffffff;
    --bg-color: #f3f4f6;       /* Lichte grijze achtergrond voor de site */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --accent-blue: #3b82f6;    /* Voor links/buttons */
    --red-card: #ef4444;       /* Optioneel voor verlies/rode kaarten */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--accent-blue); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--pitch-green); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   HEADER (Stadion Nacht Thema)
   ========================================= */
.site-header {
    background-color: var(--stadium-dark);
    border-bottom: 4px solid var(--pitch-green);
    position: sticky; top: 0; z-index: 1000;
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center; height: 80px;
}

.site-logo a {
    color: #fff; font-size: 1.8rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: -0.5px;
}
.site-logo a span { color: var(--pitch-green); }

/* Navigatie Desktop */
.main-nav { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    color: #e5e7eb; font-weight: 600; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 0;
}
.main-nav a:hover { color: var(--pitch-green); }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Mobiel Menu Toggle */
.menu-toggle {
    display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 25px; height: 3px; background: #fff; border-radius: 2px; }

/* =========================================
   STATISTIEKEN KAARTEN (Scorebord stijl)
   ========================================= */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin: 40px 0;
}

.stat-card {
    background: var(--card-bg); border-radius: 8px; border: 1px solid var(--border-color);
    overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s;
    display: flex; flex-direction: column;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-color: var(--pitch-green); }

.stat-card-header { position: relative; height: 160px; background: #e5e7eb; }
.stat-card-header img { width: 100%; height: 100%; object-fit: cover; }
.league-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--stadium-dark); color: #fff;
    font-size: 0.75rem; font-weight: bold; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px; border-left: 3px solid var(--pitch-green);
}

.stat-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.stat-title { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; color: var(--stadium-dark); line-height: 1.2; }
.stat-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

.btn-view-stats {
    margin-top: auto; display: block; text-align: center;
    background: var(--bg-color); color: var(--stadium-dark);
    padding: 12px; font-weight: 700; border-radius: 6px; border: 1px solid var(--border-color);
}
.btn-view-stats:hover { background: var(--pitch-green); color: #fff; border-color: var(--pitch-green); }

/* =========================================
   DATATABELLEN (Cruciaal voor voetbal)
   ========================================= */
.table-responsive { width: 100%; overflow-x: auto; margin-bottom: 30px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
table { width: 100%; border-collapse: collapse; background: #fff; text-align: left; white-space: nowrap; }
th { background: var(--stadium-dark); color: #fff; padding: 15px; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f9fafb; }
/* Positieve/Negatieve data */
.stat-win { color: var(--pitch-green); font-weight: bold; }
.stat-loss { color: var(--red-card); font-weight: bold; }

/* =========================================
   SINGLE MATCH / TEAM PAGE
   ========================================= */
.single-page-wrapper { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin: 40px 0; }
.match-header { text-align: center; border-bottom: 2px solid var(--border-color); padding-bottom: 30px; margin-bottom: 30px; }
.match-title { font-size: 2.5rem; font-weight: 900; color: var(--stadium-dark); margin: 10px 0; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; text-transform: uppercase; font-weight: 600; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--pitch-green); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: var(--stadium-dark); color: #9ca3af; padding: 60px 0 30px; margin-top: 60px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; list-style: none; padding: 0; margin-bottom: 30px; }
.footer-links a { color: #d1d5db; }
.footer-links a:hover { color: var(--pitch-green); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .main-nav { display: none; } /* Wordt via JS getoggled als mobiel menu */
    .menu-toggle { display: flex; }
    .single-page-wrapper { padding: 20px; }
    .match-title { font-size: 1.8rem; }
}