@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&display=swap');

:root {
    --bg-dark: #0f1011;
    --bg-card: #1a1c1e;
    --accent: #ffcc00;
    --silver: #b5b8ba;
    --silver-light: #e0e2e5;
    --text-main: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* Fejléc */
header {
    background-color: rgba(15, 16, 17, 0.95);
    border-bottom: 1px solid rgba(181, 184, 186, 0.2);
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    align-items: center;
}

.logo { font-weight: 900; font-size: 1.8rem; letter-spacing: 2px; color: var(--text-main); }
.logo span { color: var(--accent); }

nav { display: flex; gap: 20px; }
nav a { color: var(--silver-light); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; transition: color 0.3s; }
nav a:hover { color: var(--accent); }

/* Hero és Gombok */
.hero { background: linear-gradient(135deg, #0f1011 0%, #1a1c1e 100%); padding: 100px 20px; text-align: center; border-bottom: 4px solid var(--accent); }
.hero h1 { font-size: 4rem; font-weight: 900; color: var(--silver-light); text-transform: uppercase; margin-bottom: 15px; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--silver); font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px auto; }

.btn { background-color: var(--accent); color: #000; padding: 12px 25px; text-decoration: none; font-weight: 800; text-transform: uppercase; border-radius: 4px; display: inline-block; }
.btn-silver { background-color: transparent; color: var(--silver-light); border: 2px solid var(--silver); margin-left: 10px; }

/* Rács és Kártyák */
.container { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background-color: var(--bg-card); border-radius: 8px; padding: 30px; border: 1px solid rgba(255,255,255,0.05); }
.card h3 { color: var(--silver-light); margin-bottom: 15px; }
.card p { color: var(--silver); }

/* Footer */
footer { text-align: center; padding: 40px; margin-top: 50px; color: var(--silver); border-top: 1px solid rgba(181, 184, 186, 0.2); }

/* --- STANDINGS OLDAL (FÜLEK ÉS KÁRTYA) --- */
.tabs { display: flex; gap: 15px; margin-bottom: 40px; justify-content: center; }
.tab-btn { padding: 12px 25px; background: var(--bg-card); color: var(--silver); text-decoration: none; border-radius: 4px; font-weight: 800; border: 1px solid rgba(181, 184, 186, 0.2); transition: all 0.3s; }
.tab-btn:hover, .tab-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

.leader-card { background: linear-gradient(145deg, var(--bg-card) 0%, rgba(26,28,30,0.5) 100%); border: 2px solid var(--accent); border-radius: 8px; padding: 50px 30px; text-align: center; margin-bottom: 40px; }
.leader-badge { color: var(--accent); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; display: block; }
.leader-name { font-size: 4.5rem; font-weight: 900; line-height: 1; color: var(--silver-light); margin-bottom: 15px; letter-spacing: -1px; text-transform: uppercase; }
.leader-team { display: inline-block; background: transparent; color: #ff2a2a; padding: 8px 25px; border-radius: 30px; font-weight: 900; font-size: 1rem; margin-bottom: 35px; border: 2px solid #ff2a2a; }
.leader-stats { display: flex; justify-content: center; gap: 60px; border-top: 1px solid rgba(181, 184, 186, 0.2); padding-top: 25px; }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 3.5rem; font-weight: 900; color: var(--text-main); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--silver); text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; font-weight: 700; }

/* TABELLA TÁBLÁZAT */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid rgba(181, 184, 186, 0.2); }
th { color: var(--silver); font-size: 0.9rem; text-transform: uppercase; }
tr:hover { background-color: rgba(255,255,255,0.02); }

/* --- NAPTÁR (THE GRID) OLDAL --- */
.calendar-wrapper { margin: 50px 0; }
.calendar-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; border-bottom: 2px solid rgba(181, 184, 186, 0.2); padding-bottom: 15px; }
.calendar-scroll { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 25px; scroll-snap-type: x mandatory; }
.calendar-scroll::-webkit-scrollbar { height: 8px; }
.calendar-scroll::-webkit-scrollbar-track { background: var(--bg-dark); }
.calendar-scroll::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 4px; }
.race-card { min-width: 300px; scroll-snap-align: start; background: var(--bg-card); border-radius: 8px; padding: 30px; border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; }
.race-round { font-size: 0.85rem; color: var(--silver); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: flex; justify-content: space-between; font-weight: 700; }
.race-country { font-size: 2.2rem; font-weight: 900; color: var(--silver-light); text-transform: uppercase; margin-bottom: 5px; line-height: 1.1; }
.race-track { color: var(--silver); font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; font-weight: 600; }


/* Teljes képernyős naptár és pálya aloldal */
.container-fluid { width: 95%; max-width: 1800px; margin: 50px auto; padding: 0 20px; }
.track-layout-img { width: 100%; height: 180px; object-fit: contain; margin: 15px 0; border: 1px solid rgba(255,255,255,0.05); border-radius: 4px; background: rgba(0,0,0,0.3); padding: 10px; }
.track-hero { background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(26,28,30,0.9) 100%); padding: 80px 20px; text-align: center; border-bottom: 3px solid var(--accent); margin-bottom: 40px; }