/* ------------------------------------------------ */
/* 1. ROOT VARIABELEN & GLOBALE STIJL */
/* ------------------------------------------------ */

:root {
    --blue1: #7C83FB;
    --blue2: #7CB6FB;
    --blue3: #7C9CFB;
    --blue4: #8E7CFB;
    --blue5: #A87CFB;
    --blue6: #472f75; /* Donker paars/blauw */
    --blue7: #afd6fe; /* Lichtblauw */
    --blue8: #264473; /* Donker marineblauw */
    --blue9: #e1e8f4; /* Zeer lichtblauw/grijs (Nav background) */
    --silver: #C0C0C0;
    --text: #333;
    --hover: #ffffff;
    --dark-bg: #1c1c24; 
    --light-text: #f0f0f5; 
    --accent-color: #6a0dad; /* Paars/violet accentkleur */
    --accent-hover: #8d4ee4; /* Lichtere paars voor hover */
    --lila: #c5d5ff; /* Lichte kleur voor body background */
    --green: #215356;
    --font: 'Poppins', sans-serif;
    
    /* Geselecteerde kleuren voor deze lay-out */
    --main-bg: var(--lila); 
    --main-text: var(--blue8); /* Donkere tekst op lichte body */
    --primary-accent: var(--accent-color); /* Lila/Paars accent */
    --secondary-accent: var(--blue7); 
}

/* Global Reset en Basisstijl */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font); /* Consistentie met Poppins/Montserrat */
    background-color: var(--main-bg); 
    color: var(--main-text); 
    line-height: 1.6;
}

/* ------------------------------------------------ */
/* 2. GECORRIGEERDE NAVIGATIE BALK STYLING */
/* ------------------------------------------------ */

.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-color: var(--blue9);
    padding: 0.5rem 2rem; 
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Navigatie Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem; 
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue8);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block; 
}

.nav-links a:hover {
    background-color: var(--hover);
    color: var(--blue6);
    border: 2px solid var(--blue6);
}

/* Logo Fix */
.logo-wrapper { /* Nieuwe container voor het logo */
    flex-shrink: 0;
    text-align: center;
}

.logo-img {
    max-height: 120px;
    height: auto;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    margin: 0; /* BELANGRIJK: Oude margin-left: 100px verwijderd */
}

.logo-img:hover {
    transform: scale(1.0) translateY(-5px);
}

/* Rechterkant - Groepering Zoek, Home, Cart */
.right-side-icons { /* Vervangt de oude .right-side, .home, en .cart div's */
    display: flex;
    align-items: center;
    gap: 1.5rem; 
}

/* Zoekbalk Wrapper */
.search-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--blue7);
    border-radius: 25px;
    padding: 5px 10px;
    background-color: var(--hover);
    width: fit-content;
    box-shadow: 0 0 8px rgba(var(--blue4), 0.3);
}

.search-bar {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    width: 200px;
    background-color: transparent;
}

.search-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.search-button:hover .search-icon {
    color: var(--blue4); 
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--blue8);
    transition: color 0.3s;
}

/* Home en Cart Iconen */
.home-icon img,
.cart-icon img {
    height: 45px;
    display: block;
    transition: transform 0.3s ease;
}

.home-icon img:hover,
.cart-icon img:hover {
    transform: scale(1.1);
}


/* Submenu's */
.submenu-container {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    background-color: var(--blue9);
    border: 1px solid var(--blue7);
    padding: 1rem 0; 
    list-style: none;
    margin: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    border-radius: 5px;
}

.submenu li {
    margin: 0;
    position: relative; /* Nodig voor sub-submenu */
}

.submenu a {
    text-decoration: none;
    color: var(--blue8);
    font-weight: normal;
    padding: 0.5rem 1.5rem; 
    display: block; /* Maak het hele li-vlak klikbaar */
}

.nav-item:hover .submenu {
    display: block;
}

/* Sub-Submenu Styling (Webshop) */
.sub-submenu {
    display: none;
    position: absolute;
    left: 100%; 
    top: 0;
    background-color: var(--blue7); 
    border: 1px solid var(--blue6);
    padding: 0.5rem 0;
    list-style: none;
    min-width: 150px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.submenu li:hover .sub-submenu {
    display: block;
}

.sub-submenu a {
    color: var(--blue8);
}

.sub-submenu a:hover {
    background-color: var(--lila);
}

/* ------------------------------------------------ */
/* 3. PAGINA INHOUD STYLING (SIDEBAR & CONTENT) */
/* ------------------------------------------------ */

/* Container voor de 2-koloms lay-out */
.container {
    display: flex;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 40px; 
}

/* Linkerkolom (Sidebar) */
.sidebar {
    flex: 1; 
    padding: 30px;
    background-color: var(--blue9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-title {
    color: var(--blue8);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 5px;
    cursor: pointer; /* Zorgt dat de gebruiker weet dat de titel klikbaar is */
}

.sidebar-title:hover {
    text-decoration: underline;
}

.sidebar p {
    color: var(--blue8); 
}

/* Tabel Stijlen */
.table-container h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--blue8);
}

.schedule-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    background-color: var(--blue7); /* Lichtere achtergrond voor tabel */
    border-radius: 8px;
    overflow: hidden; 
}

.schedule-table th, .schedule-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--blue8); /* Tekstkleur voor de tabelinhoud */
}

.schedule-table th {
    background-color: var(--primary-accent); /* Paars accent */
    color: var(--light-text);
    font-weight: bold;
}

.schedule-table tbody tr:hover {
    background-color: var(--secondary-accent); /* Lichtblauw hover effect */
    cursor: default; 
}

table td a {
    color: var(--blue8) !important; /* Dwing de linkkleur af */
    text-decoration: none !important; 
    font-weight: bold;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

table td a:hover {
    color: var(--blue5) !important; 
    text-decoration: underline !important; 
}

/* Fotogalerij Stijlen */
.hidden {
    display: none !important; 
}

.studio-gallery {
    display: flex; 
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
    gap: 5px; 
}

.photo-item {
    width: calc(33.33% - 5px); 
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--secondary-accent);
    border-radius: 5px;
    box-sizing: border-box;
}


/* Rechterkolom (Content) */
.content {
    flex: 3; 
}

.content-title {
    font-size: 2.5em;
    color: var(--blue8);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dance-styles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}

.style-card {
    background-color: var(--blue9);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent; /* Toevoeging voor hover effect */
}

.style-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(106, 13, 173, 0.5); 
    border: 2px solid var(--accent-hover);
}

.card-inner {
    padding: 20px;
}

.style-img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.style-card h3 {
    color: var(--primary-accent);
    margin-bottom: 8px;
    font-size: 1.5em;
}

.style-card p {
    font-size: 0.95em;
    color: var(--blue8);
}



/* ------------------------------------------------ */
/* 5. MEDIA QUERIES (Responsiviteit) */
/* ------------------------------------------------ */

@media (max-width: 1200px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }
    .nav-left, .logo-wrapper, .right-side-icons {
        margin: 10px 0;
    }
    .nav-left {
        order: 2; 
        width: 100%;
        justify-content: center;
    }
    .logo-wrapper {
        order: 1;
    }
    .right-side-icons {
        order: 3;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column; 
        margin: 0;
        padding: 20px;
    }
    
    .sidebar {
        margin-bottom: 20px;
    }

    .dance-styles-grid {
        grid-template-columns: 1fr; 
    }
}

/* ------------------------------------------------ */
/* 4. FOOTER STYLING */
/* ------------------------------------------------ */

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--blue9);
    color: var(--blue8);
    margin-top: 40px;
    width: 100%;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

footer img {
    height: 40px;
    width: 40px;
    margin: 0 10px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

footer a:hover img {
    transform: scale(1.1);
}
