/* =========================================
   1. VARIABELEN & BASIS INSTELLINGEN
   ========================================= */
:root {
    /* Kleurenpalet: Judo Spaubeek */
    --primary-yellow: #FFD700; /* Goud/Geel */
    --primary-black: #111111;  /* Diep Zwart */
    --dark-grey: #222222;      /* Footer achtergrond */
    --light-grey: #f4f4f4;     /* Website achtergrond */
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --danger: #dc3545;         /* Voor foutmeldingen/delete */
    --success: #28a745;        /* Voor succesmeldingen */

    /* Typografie */
    --font-head: 'Anton', sans-serif; /* Voor krachtige koppen */
    --font-body: 'Roboto', sans-serif; /* Voor leesbare tekst */
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light-grey);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Zorgt dat footer altijd onderaan staat */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Algemene Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 60px 0; }
.text-center { text-align: center; }

/* Knoppen */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary { background-color: var(--primary-yellow); color: var(--primary-black); }
.btn-primary:hover { background-color: #e6c200; transform: translateY(-2px); }

.btn-secondary { background-color: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--primary-black); }

.btn-cta {
    background-color: var(--primary-yellow);
    color: var(--primary-black) !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 900 !important;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #b38f00; /* 3D effectje */
}
.btn-cta:active { transform: translateY(4px); box-shadow: none; }

/* =========================================
   2. HEADER & NAVIGATIE
   ========================================= */
.main-header {
    background-color: var(--primary-black);
    color: var(--white);
    height: var(--header-height);
    display: flex; /* Zorgt dat inhoud verticaal centreert */
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--primary-yellow);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-yellow { color: var(--primary-yellow); }
.logo-sub { font-size: 0.7rem; display: block; color: #ccc; letter-spacing: 3px; }

/* Menu Desktop */
.nav-menu ul { display: flex; align-items: center; gap: 25px; }
.nav-menu a { font-weight: 500; font-size: 1rem; position: relative; }

/* Hover lijntje effect */
.nav-menu a:not(.btn-cta)::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width .3s;
}
.nav-menu a:not(.btn-cta):hover::after,
.nav-menu a.active::after { width: 100%; }

.cart-icon { font-size: 1.2rem; color: var(--primary-yellow); }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-top: 3px solid var(--primary-yellow);
    z-index: 1001;
}
.dropdown-content a { color: var(--text-color); padding: 12px 16px; display: block; }
.dropdown-content a:hover { background-color: var(--light-grey); }
.dropdown:hover .dropdown-content { display: block; }

/* Hamburger Menu (Mobiel) */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--white); transition: 0.3s; }

/* =========================================
   3. HERO & HOMEPAGE SECTIES
   ========================================= */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/dojo-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p { font-size: 1.5rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Sport Kaarten */
.sports-overview { display: flex; flex-wrap: wrap; }
.sport-card {
    flex: 1;
    min-width: 300px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Achtergronden voor de kaarten (zorg dat je afbeeldingen hebt!) */
.judo { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../img/judo-bg.jpg') center/cover; }
.nunchaku { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../img/nunchaku-bg.jpg') center/cover; border-left: 4px solid var(--primary-yellow); }

.sport-card h2 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 15px; color: var(--primary-yellow); }
.sport-card p { margin-bottom: 20px; font-size: 1.1rem; }

/* Nieuws Grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.news-item { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.news-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.news-img { height: 200px; background-color: #ddd; background-size: cover; background-position: center; }
.news-content { padding: 25px; }
.news-date { font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.news-content h3 { margin: 10px 0; font-family: var(--font-head); }

/* =========================================
   4. WEBSHOP STYLES
   ========================================= */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.product-card { background: var(--white); padding: 20px; border-radius: 8px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #eee; }
.product-card img { height: 200px; object-fit: contain; margin-bottom: 15px; }
.product-price { font-size: 1.2rem; font-weight: bold; color: var(--primary-black); display: block; margin: 10px 0; }

/* =========================================
   5. ADMIN & LOGIN STYLES
   ========================================= */
.login-body { background-color: #111; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border-top: 10px solid var(--primary-yellow);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); margin-top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.admin-table th { background: var(--primary-black); color: var(--primary-yellow); padding: 15px; text-align: left; }
.admin-table td { padding: 15px; border-bottom: 1px solid #eee; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }

/* =========================================
   6. FOOTER (Met aanpassingen)
   ========================================= */
.main-footer {
    background-color: var(--dark-grey);
    color: #ccc;
    padding-top: 70px;
    margin-top: auto;
    font-size: 0.95rem;
    border-top: 10px solid var(--primary-black);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col h3 {
    color: var(--primary-yellow);
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lijstjes in footer */
.footer-links li, .contact-list li { margin-bottom: 15px; }

.footer-links a {
    color: #ccc;
    display: flex;
    justify-content: space-between;
    width: 90%;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.footer-links a:hover { color: var(--primary-yellow); padding-left: 10px; border-color: var(--primary-yellow); }
.footer-links i { font-size: 0.8rem; margin-top: 5px; }

.contact-list i { color: var(--primary-yellow); margin-right: 15px; width: 20px; text-align: center; }

/* Social Media Icons (Vernieuwd) */
.social-links-wrapper { display: flex; gap: 15px; margin-top: 25px; }

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #333;
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s;
    border: 1px solid transparent;
}

.social-icon.facebook:hover { background-color: #1877F2; border-color: #1877F2; transform: translateY(-5px); }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; transform: translateY(-5px); }

/* Credits balk */
.footer-bottom {
    background-color: #000;
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.footer-bottom p { margin: 5px 0; }
.footer-bottom .credits a { color: var(--primary-yellow); font-weight: bold; }
.footer-bottom .credits a:hover { text-decoration: underline; color: var(--white); }

/* =========================================
   7. RESPONSIVE / MOBIEL
   ========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Header Mobiel */
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        background-color: var(--primary-black);
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.4s ease-in-out;
        border-top: 1px solid #333;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 30px; }
    .nav-menu a { font-size: 1.2rem; }
    
    /* Sport Kaarten onder elkaar */
    .nunchaku { border-left: none; border-top: 4px solid var(--primary-yellow); }
    
    /* Footer Mobiel */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .social-links-wrapper { justify-content: center; }
    .footer-links a { justify-content: center; width: 100%; border: none; }
    .contact-list li { flex-direction: column; gap: 5px; }
    .contact-list i { margin: 0; font-size: 1.5rem; margin-bottom: 5px; }

    /* Admin aanpassingen */
    .admin-table { display: block; overflow-x: auto; }
}
/* --- AGENDA STYLING --- */

/* Banner voor bovenin pagina's */
.header-banner {
    height: 250px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.banner-content h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.6); /* Zwarte balk achter tekst */
    padding: 10px 30px;
    border-left: 5px solid var(--primary-yellow);
}

/* De Lijst */
.agenda-list { max-width: 800px; margin: 0 auto; }

.agenda-item {
    display: flex;
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-left: 5px solid transparent;
}

.agenda-item:hover {
    transform: translateX(10px); /* Schuift iets naar rechts */
    border-left: 5px solid var(--primary-yellow);
}

/* De Datum Badge (Het vierkantje) */
.date-badge {
    background-color: var(--primary-black);
    color: var(--primary-yellow);
    width: 100px;
    min-width: 100px; /* Zorgt dat hij niet krimpt op mobiel */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.date-month {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.date-day {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: var(--font-head);
    line-height: 1;
}

/* De Tekst */
.agenda-content { padding: 25px; flex: 1; }
.agenda-content h3 { margin-bottom: 10px; font-family: var(--font-head); font-size: 1.5rem; }
.agenda-meta { color: #888; font-size: 0.9rem; margin-bottom: 15px; font-weight: bold; }
.agenda-meta i { color: var(--primary-yellow); margin-right: 5px; }

/* Mobiel aanpassing */
@media (max-width: 600px) {
    .agenda-item { flex-direction: column; }
    .date-badge { width: 100%; flex-direction: row; gap: 10px; padding: 10px; min-height: auto; }
    .date-day { font-size: 1.5rem; }
    .agenda-content { padding: 20px; }
}
/* --- VISUELE AGENDA GRID --- */
.calendar-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.calendar-header {
    background: var(--primary-black);
    color: var(--primary-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.calendar-header h2 { font-family: var(--font-head); text-transform: uppercase; margin: 0; }
.btn-nav { font-size: 1.5rem; color: var(--primary-yellow); font-weight: bold; padding: 0 15px; }

.calendar-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-table th { background: #f8f8f8; padding: 15px; text-transform: uppercase; font-size: 0.8rem; color: #888; }
.calendar-table td { 
    height: 100px; 
    border: 1px solid #eee; 
    vertical-align: top; 
    padding: 10px; 
    position: relative;
    transition: 0.2s;
}

.calendar-table td:hover:not(.empty) { background-color: #fffdf0; }
.calendar-table td.today { background-color: #fff9db; font-weight: bold; border: 2px solid var(--primary-yellow); }

.day-number { font-size: 1.1rem; color: #444; }

/* Event Bolletje */
.event-dot {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    height: 8px;
    width: 8px;
    border-radius: 50%;
    margin: 5px auto 0;
    border: 1px solid var(--primary-black);
}

.has-event { background-color: #fffdf0; cursor: pointer; }

/* Responsive Kalender */
@media (max-width: 768px) {
    .calendar-table td { height: 60px; padding: 5px; }
    .calendar-header h2 { font-size: 1.2rem; }
}