:root { 
    --f1-red: #e10600; 
    --f1-dark-blue: #050a0f; 
    --f1-racing-blue: #0e1a27; 
    --f1-white: #ffffff; 
    --f1-gray: #888888; 
    --gold-gradient: linear-gradient(45deg, #d4af37, #f9f295, #d4af37); 
}

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

body { 
    font-family: 'Tektur', sans-serif; 
    background-color: var(--f1-dark-blue); 
    background-image: radial-gradient(circle, #1a1a1a 1px, transparent 1px); 
    background-size: 20px 20px; 
    color: var(--f1-white); 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVIGATIE DESKTOP --- */
nav { 
    background: rgba(5, 10, 15, 0.95); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid #222; 
    padding: 10px 0; 
}

.nav-logo {
    height: 35px;           /* AANGEPAST: Van 50px naar 35px voor een strakke desktop look */
    width: auto;
    margin-right: 30px;     
    display: block;
    
    /* Zorgt voor scherpte bij verkleinen */
    image-rendering: -webkit-optimize-contrast; 
    transform: translateZ(0);
}

.nav-btn { 
    background: #111; 
    color: white; 
    border: none; 
    margin: 0 10px; 
    padding: 12px 40px; 
    font-family: 'Orbitron'; 
    font-weight: 700; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    text-decoration: none; 
    clip-path: polygon(30px 0%, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
    transition: 0.3s; 
    border-bottom: 3px solid transparent; 
    display: inline-block; 
}

.nav-btn:hover { background: #1a1a1a; color: var(--f1-red); border-bottom: 3px solid var(--f1-red); }
.nav-btn-active { border-bottom: 3px solid var(--f1-red); background: #1a1a1a; color: var(--f1-red); }

.container { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
    flex: 1;
    width: 100%;
}

/* Statistics Section */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 50px; }
.stat-card { background: var(--f1-racing-blue); padding: 25px 20px; border-bottom: 3px solid var(--f1-red); text-align: center; clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%); }
.stat-value { display: block; font-family: 'Orbitron'; font-size: 2.2rem; font-weight: 900; color: var(--f1-red); }
.stat-label { font-family: 'Orbitron'; font-size: 0.65rem; color: var(--f1-gray); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

.hero-section { background: var(--f1-racing-blue); padding: 40px; border-left: 8px solid var(--f1-red); margin-bottom: 50px; }
.hero-section h2 { font-family: 'Orbitron'; color: var(--f1-red); text-transform: uppercase; margin-bottom: 15px; }

.hero-section p {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;       
    line-height: 1.6;      
    color: #cccccc;        
}

h2.section-title { font-family: 'Orbitron'; text-transform: uppercase; border-left: 5px solid var(--f1-red); padding-left: 15px; margin-bottom: 35px; font-size: 1.3rem; }

/* Grid & Card Styles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.card { background: var(--f1-racing-blue); border: 1px solid rgba(255,255,255,0.05); overflow: hidden; transition: 0.3s; height: 100%; position: relative; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); border-color: var(--f1-red); }
.card-photo { width: 100%; aspect-ratio: 548 / 411; position: relative; background: #000; border-bottom: 4px solid var(--f1-red); }
.card-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-edition-badge { position: absolute; bottom: 10px; left: 15px; z-index: 10; background: rgba(0, 0, 0, 0.85); color: #fff; padding: 5px 12px; font-family: 'Orbitron'; font-size: 0.65rem; font-weight: 900; text-transform: uppercase; border-left: 3px solid var(--f1-red); letter-spacing: 1px; }

.card-content { padding: 20px; flex-grow: 1; }
.tag { background: #fff; color: #000; font-family: 'Orbitron'; font-size: 0.6rem; padding: 3px 8px; font-weight: 900; display: inline-block; margin-bottom: 12px; text-transform: uppercase; margin-right: 5px; }
.wc-tag { background: var(--gold-gradient); color: #000; }
.res-p1 { background: #ffd700; color: #000; }
.res-p2 { background: #c0c0c0; color: #000; }
.res-p3 { background: #cd7f32; color: #000; }

.card-team { font-family: 'Orbitron'; font-size: 0.65rem; color: var(--f1-gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.card-title { font-family: 'Orbitron'; font-size: 1rem; color: #fff; text-transform: uppercase; margin-bottom: 10px; line-height: 1.3; }
.card-meta { font-family: 'Exo 2'; font-size: 0.75rem; color: var(--f1-gray); text-transform: uppercase; line-height: 1.6; }

/* Collectie Details */
.db-info { font-family: 'Exo 2', sans-serif; font-size: 0.75rem; color: var(--f1-gray); text-transform: uppercase; line-height: 1.8; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }
.db-row { display: flex; border-bottom: 1px solid rgba(255,255,255,0.03); padding: 2px 0; }
.db-label { font-weight: 700; color: #aaa; width: 110px; flex-shrink: 0; }
.db-value { color: #fff; }
.collector-note { margin-top: 15px; background: rgba(255,255,255,0.03); padding: 10px; border-left: 2px solid var(--f1-gray); font-size: 0.8rem; line-height: 1.5; color: #ddd; font-style: italic; }

/* Categorie & Jaar Grids */
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.category-card { background: var(--f1-racing-blue); height: 150px; display: flex; align-items: center; justify-content: center; font-family: 'Orbitron'; font-size: 1.5rem; font-weight: 900; color: white; text-transform: uppercase; cursor: pointer; clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%); border: 2px solid var(--f1-red); transition: 0.3s; text-decoration: none; }
.category-card:hover { background: #1a1a1a; color: var(--f1-red); }

.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 15px; margin-top: 20px; }
.year-card { background: var(--f1-racing-blue); padding: 15px; font-family: 'Orbitron'; cursor: pointer; text-align: center; clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%); border: 1px solid rgba(255,255,255,0.05); text-decoration: none; color: #fff; display: block; }
.year-card:hover { background: var(--f1-red); color: white; }

.back-btn { background: none; border: 1px solid var(--f1-red); color: white; padding: 10px 20px; cursor: pointer; font-family: 'Orbitron'; font-size: 0.7rem; margin-bottom: 20px; text-transform: uppercase; text-decoration: none; display: inline-block; }
.back-btn:hover { background: var(--f1-red); }

/* Highlight Animatie */
@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.7); border-color: var(--f1-red); }
    70% { box-shadow: 0 0 0 20px rgba(225, 6, 0, 0); border-color: var(--f1-red); }
    100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}
.highlight-card { animation: highlightPulse 2s 2; border: 2px solid var(--f1-red); scroll-margin-top: 100px; }

/* --- FOOTER STYLING --- */
footer {
    background-color: #020406;
    border-top: 4px solid var(--f1-red);
    margin-top: 80px;
    padding-top: 60px;
    padding-bottom: 40px;
    font-family: 'Exo 2', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Stijl voor het logo in de footer */
.footer-logo {
    max-width: 200px; 
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-col h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-left: 3px solid var(--f1-red);
    padding-left: 10px;
}

.footer-col p {
    color: var(--f1-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* COPYRIGHT CSS */
.footer-col .footer-copyright {
    display: block;
    margin-top: 25px !important; 
    color: var(--f1-gray);
    font-size: 0.8rem;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--f1-gray); text-decoration: none; font-size: 0.9rem; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--f1-red); transform: translateX(5px); }

/* --- BACK TO TOP BUTTON --- */
#backToTopBtn {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; 
    border: none;
    outline: none;
    background-color: var(--f1-red, #e10600);
    color: white;
    cursor: pointer;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
#backToTopBtn:hover { background-color: white; color: var(--f1-red, #e10600); transform: translateY(-3px); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    nav { flex-wrap: wrap; padding: 10px 0 20px 0; }
    
    .nav-logo {
        height: auto; width: 180px; max-width: 70%;
        margin: 5px auto 10px auto; order: 0; flex-basis: 100%; display: block;
    }

    .nav-btn { font-size: 0.7rem; padding: 12px 5px; margin: 4px; flex: 1 1 40%; text-align: center; display: flex; justify-content: center; align-items: center; }
    nav a:nth-of-type(1) { order: 1; } 
    nav a:nth-of-type(4) { order: 2; } 
    nav a:nth-of-type(2) { order: 3; } 
    nav a:nth-of-type(3) { order: 4; } 

    .container { margin-top: 20px; padding: 0 10px; }
    .grid, #recent-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 15px 5px; border-bottom-width: 2px; }
    .stat-value { font-size: 1.5rem; }
    .stat-label { font-size: 0.55rem; }
    .category-grid { gap: 15px; margin-top: 20px; }
    .category-card { height: 100px; font-size: 1.1rem; border-width: 1px; }
    .year-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
    .year-card { padding: 10px; font-size: 0.9rem; }
}