/* YourYouthBook Stylesheet */

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

/* Variabelen voor kleurenpalet */
:root {
    --primary-color: #F5E3D0;     /* Lichte beige kleur */
    --secondary-color: #C28B52;   /* Bruinachtige/gouden kleur */
    --white: #FFFFFF;             /* Wit */
    --text-dark: #333333;         /* Donkere tekstkleur */
    --text-light: #FFFFFF;        /* Lichte tekstkleur */
    --border-color: #E1D5C5;      /* Lichte border kleur */
    --hover-color: #B07942;       /* Donkerdere versie van secondary voor hover */
    --success-color: #4CAF50;     /* Groen voor succes meldingen */
    --error-color: #F44336;       /* Rood voor foutmeldingen */
    --info-color: #2196F3;        /* Blauw voor informatie meldingen */
}

/* Basis HTML elementen */
html, body {
    height: 100%;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f5efeb;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; /* Compensatie voor fixed header */
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar - Sticky header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Verwijder alle bulletpoints/puntjes uit dropdown menu's */
header .dropdown ul,
header .dropdown-menu {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

/* Header styling bij scrollen */
/* Voeg een klasse toe voor een kleinere header bij scrollen */
header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header.scrolled .navbar {
    padding: 0.7rem 0; /* Kleinere padding voor een compactere header */
}

header.scrolled .navbar-logo {
    max-height: 50px; /* Iets kleinere logo bij scrollen */
    transition: max-height 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    max-height: 60px;
    margin-right: 1rem;
    margin-top: -5px;
    margin-bottom: -5px;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.navbar-nav li {
    margin-left: 1.5rem;
}

.navbar-nav li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.navbar-nav li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav li a:hover:after {
    width: 100%;
}

.navbar-nav .active a {
    color: var(--secondary-color);
}

.navbar-nav .active a:after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #f5efeb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 101;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 0.5rem 1rem;
}

.dropdown-menu li a {
    display: block;
}

.profile-button {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 0.5rem;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-dark);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 0.75rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--hover-color);
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    color: var(--white);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    margin-bottom: 1rem;
}

/* Module tegels (tiles) */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tile {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.tile:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.tile-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.tile-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.tile-description {
    font-size: 0.9rem;
}

/* Responsive styling */
@media (max-width: 992px) {
    /* Verminder de body padding voor mobiel, omdat header compacter is */
    body {
        padding-top: 70px;
    }

    .navbar {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--secondary-color);
        z-index: 1010; /* Zorg dat de toggle knop altijd klikbaar is */
    }
    
    .navbar-nav {
        display: none;
        position: fixed; /* Verander naar fixed voor betere mobiele ervaring */
        top: 70px; /* Pas aan op basis van je header hoogte */
        left: 0;
        right: 0;
        background-color: #f5e3d0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 70px);
        overflow-y: auto; /* Voeg scrollbaarheid toe voor veel menu-items */
        z-index: 999;
    }
    
    .navbar-nav.show {
        display: flex;
    }
    
    .navbar-nav li {
        margin: 0 0 0.5rem 0;
        width: 100%; /* Volledige breedte voor betere mobiele ervaring */
    }
    
    /* Kleiner logo op mobiel */
    header .navbar-logo {
        max-height: 50px;
    }
    
    /* Compacte header op mobiel */
    header.scrolled .navbar {
        padding: 0.5rem 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding: 0.5rem 0 0.5rem 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
