/* public/assets/css/style.css - Basis Structuur & Layout */

/* --- Globale Reset & Basis --- */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body {
    margin: 0; padding: 0; line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    display: flex; flex-direction: column; min-height: 100vh;
    font-family: 'Inter', sans-serif; 
    color: #333; 
    background-color: #f0f2f5; 
}
main.site-main { flex-grow: 1; width: 100%; }
a { text-decoration: none; transition: color 0.2s ease-in-out; }
img { max-width: 100%; height: auto; display: block; }
hr.profile-hr { border: 0; height: 1px; background-color: #e5e7eb; margin: 1rem 0; }

/* --- Algemene Knop Styling (Basis Vorm) --- */
.button-styling, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: 0.5rem 1rem; /* Standaard padding, kan per type knop aangepast */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* medium */
    line-height: 1.25rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid #d1d5db; 
    border-radius: 0.375rem; 
    background-color: #ffffff; 
    color: #374151; 
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}

/* --- Site Header Structuur --- */
.site-header { width: 100%; position: sticky; top: 0; left: 0; z-index: 50; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.header-inner-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; height: 100%; }
@media (min-width: 768px) { .header-inner-container { padding: 0 1.5rem; } }
.header-logo-link { display: block; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; }
.header-search-area { flex-grow: 1; margin: 0 1.5rem; display: flex; justify-content: center; }
.header-search-input { width: 100%; max-width: 450px; padding: 0.55rem 1rem; border-radius: 20px; font-size: 0.9rem; border: 1px solid #d1d5db; background-color: #f9fafb; color: #1f2937; transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.header-nav-area { display: flex; align-items: center; }
.header-nav-link { padding: 0.6rem 0.9rem; margin-left: 0.25rem; border-radius: 0.375rem; font-weight: 500; font-size: 0.9rem; white-space: nowrap; display: flex; align-items: center; }
.header-nav-icon .nav-svg-icon { width: 1.25rem; height: 1.25rem; }
.header-profile-pic { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: 0.5rem; display: inline-block; vertical-align: middle; }

/* --- Formulier Containers --- */
.form-page-container { width: 100%; padding: 20px 15px; }
.container.auth-container { max-width: 450px; margin: 30px auto; padding: 25px 30px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.profile-edit-container { max-width: 768px; margin: 30px auto; padding: 25px 30px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
@media (min-width: 768px) { .container.auth-container, .profile-edit-container { margin-top: 40px; margin-bottom: 40px; padding: 30px 40px; } }

/* --- Formulier Content Styling (binnen .form-content) --- */
.form-content h2 { text-align: center; margin-bottom: 25px; font-size: 1.6rem; font-weight: 600; }
.form-content p { text-align: center; margin-bottom: 20px; font-size: 0.9rem; color: #4b5563; }
.form-content label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: #374151; font-size: 0.875rem; }
.form-content .form-group { margin-bottom: 1.25rem; }
.form-content input[type="text"], 
.form-content input[type="email"], 
.form-content input[type="password"], 
.form-content input[type="date"], 
.form-content input[type="url"], 
.form-content select, 
.form-content textarea,
textarea.styled-textarea {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    display: block; width: 100%; 
    padding: 0.75rem 1rem; margin-bottom: 1rem; 
    border: 1px solid #d1d5db; border-radius: 0.375rem; 
    font-size: 0.95rem; line-height: 1.5;
    background-color: #ffffff; color: #1f2937; 
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-content select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center; background-repeat: no-repeat;
    background-size: 1.25em 1.25em; padding-right: 2.75rem; 
}
.form-content textarea, textarea.styled-textarea { min-height: 100px; }
.form-content button[type="submit"].button-styling { /* Submit knop erft van .button-styling */
    width: 100%; 
    font-size: 1rem; 
    font-weight: 600; 
}
.form-content .link-container { text-align: center; margin-top: 1.5rem; font-size:0.875rem; }
.form-content .link-container a:hover { text-decoration: underline; }
.form-content small { font-size: 0.8rem; color: #6b7280; display: block; margin-top: -0.5rem; margin-bottom: 1rem;}
.current-image { max-width: 200px; max-height: 100px; display:block; margin-bottom: 5px; border: 1px solid #eee; border-radius: 4px;}

/* --- Message Box & Toast Stijlen --- */
/* ... (blijven hetzelfde) ... */
.message-box { padding: 12px 15px; margin: 20px 0; border-radius:6px; text-align:left; max-width: 100%; font-size: 0.9rem;}
.message-box ul { margin: 0.5rem 0 0 1rem; padding:0; }
.message-box li { margin-bottom: 0.25rem; }
.message-success { background-color:#d1fae5; color:#065f46; border:1px solid #a7f3d0; }
.message-error { background-color:#fee2e2; color:#991b1b; border:1px solid #fecaca; }
.info { background-color: #fefce8; color: #a16207; border: 1px solid #fef08a; } 
.toast-notification { position: fixed; bottom: 20px; right: 20px; color: white; padding: 1rem 1.5rem; border-radius: 0.375rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s; font-size: 0.9rem; min-width: 250px; text-align: left; }
.toast-notification.show { opacity: 1; visibility: visible; transform: translateY(0); }
.toast-notification.hide { opacity: 0; visibility: hidden; transform: translateY(20px); }
.toast-notification.toast-success { background-color: #10B981; }
.toast-notification.toast-error { background-color: #EF4444; }
.toast-notification.toast-info { background-color: #3B82F6; }

/* --- Site Footer Structuur --- */
.site-footer { padding: 2rem 1rem; text-align: center; font-size: 0.875rem; margin-top: auto; }
.footer-content-wrapper { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 1rem; }
.site-footer p { margin-bottom: 0.25rem; }
.footer-links a { margin: 0 0.5rem; }

/* --- Profielpagina Specifieke Layout --- */
.profile-main-container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
.profile-header-wrapper { position: relative; z-index: 10; background-color: white; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.cover-photo-area { height: 300px; background-color: #e2e8f0; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative !important; z-index: 1; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.profile-info-bar { padding: 0 1rem 1rem 1rem; }
@media (min-width: 640px) { .profile-info-bar { padding-left: 2rem; padding-right: 2rem; } }
.profile-details-overlap { display: flex; flex-direction: column; align-items: center; margin-top: -4rem; position: relative; z-index: 2; }
@media (min-width: 640px) { .profile-details-overlap { flex-direction: row; align-items: flex-end; margin-top: -5rem; } }
.profile-picture-wrapper { margin-bottom: 1rem; flex-shrink: 0; }
@media (min-width: 640px) { .profile-picture-wrapper { margin-bottom: 0; margin-right: 1.5rem; } }
.profile-picture-display { width: 168px; height: 168px; background-color: #f0f0f0; border-radius: 9999px; border-width: 4px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
.profile-actions-area { margin-top: 1rem; }
@media (min-width: 640px) { .profile-actions-area { margin-top: 0; margin-left: auto; } }
.photo-upload-trigger { position: absolute; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; line-height: 1; cursor: pointer; border: none; z-index: 10; text-shadow: 0 1px 1px rgba(0,0,0,0.5); }
.cover-photo-area .photo-upload-trigger { bottom: 10px; right: 10px; }
.profile-picture-display .photo-upload-trigger { bottom: 5px; right: 5px; }
.hidden-file-input { display: none; }
.profile-nav-container { border-top-width: 1px; margin-top: 1rem; margin-bottom: 1rem; padding-top: 1rem; }
.profile-nav { display: flex; flex-wrap: wrap; justify-content: center; }
@media (min-width: 640px) { .profile-nav { justify-content: flex-start; } }
.profile-nav a, .profile-nav button { padding: 0.5rem 0.8rem; font-size: 0.9rem; border-radius: 0.375rem; font-weight: 500; margin-right: 0.25rem; margin-bottom: 0.25rem; border-bottom: 3px solid transparent; }
.content-area-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; padding: 0 1rem; }
@media (min-width: 640px) { .content-area-grid { padding-left: 0; padding-right: 0; } }
@media (min-width: 1024px) { .content-area-grid { grid-template-columns: minmax(300px, 1fr) 2fr; } .content-area-grid.full-width { grid-template-columns: 1fr; } }
.profile-content-card { padding: 1rem; border-radius: 0.5rem; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05), 0 1px 2px -1px rgba(0,0,0,0.05); margin-bottom: 1.5rem; }
.section-placeholder { padding:20px; text-align:center; background-color:#f9f9f9; border-radius:8px; margin-top:1rem;}

/* --- Post Creator Specifieke Layout --- */
.post-creator-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem; /* mt-3 */
}
.post-creator-left-buttons {
    display: flex;
    gap: 0.5rem; /* space-x-2 */
}
/* De knoppen hierbinnen (.button-styling.button-subtle, .button-styling.post-button)
   krijgen hun padding en font-size van .button-styling en hun specifieke sub-class.
   Als ze te groot zijn, overweeg een .button-small class. */
.button-small { /* Voor de kleinere actieknoppen zoals Foto/Video */
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

.notifications-page-container {
    /* padding: 2rem 1rem; /* Tailwind py-8 px-4 - Dit zorgt voor ruimte boven/onder de kaart */
    /* Verwijder container en mx-auto uit de HTML class als je wilt dat de kaart zelf centreert */
    /* Of laat het staan als je een bredere responsive container wilt waarbinnen de kaart staat */
    /* Voor nu laten we de HTML class zoals het is, en de kaart centreert zichzelf. */
}

.notifications-content-card {
    background-color: #fff;
    border-radius: 0.375rem; /* 6px-8px, vergelijkbaar met auth-container (8px) */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); /* Zelfde schaduw als auth-container */
    padding: 1.5rem; /* Interne padding, 24px. auth-container heeft 25px 30px */
    
    /* Kernaanpassingen om op auth-container te lijken: */
    max-width: 700px; /* Kies een geschikte breedte. auth-container=450px, profile-edit=768px */
    margin: 2rem auto; /* Verticale marge (bv. 30px of 2rem) en horizontaal centreren */

    /* border-top: 4px solid var(--theme-primary-color); */ /* << Huidige thema is blauw_thema */
    /* Voor notificaties pagina is het thema 'blauw_thema.css' (ingesteld in router.php).
       blauw_thema.css definieert --theme-primary-color. We gebruiken die. */
    border-top: 4px solid var(--theme-primary-color, #2563eb); /* Fallback naar blauw */
}

/* De titel styling binnen de kaart (was al goed, misschien kleine aanpassing margin) */
.notifications-page-title {
    font-size: 1.25rem; /* Tailwind text-xl, iets kleiner dan vorige 1.5rem voor een compactere kaart */
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
    color: var(--theme-text-color, #1f2937);
}

/* De rest van de notificatie-item styling (.notifications-list, .notification-item, etc.)
   blijft zoals in het vorige antwoord, omdat die de inhoud *binnen* de kaart stylen. */

.notifications-empty-state {
    text-align: center;
    color: #6b7280; /* text-gray-500 */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

ul.notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ... (alle .notification-item, .notification-link, etc. stijlen van vorige antwoord hieronder) ... */
.notification-item {
    border-bottom: 1px solid #e5e7eb; /* Lijn tussen items */
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item.unread .notification-link { /* Link binnen ongelezen item */
    /* We kunnen de achtergrond van de link zelf een subtiele kleur geven */
    background-color: #f9fafb; /* Tailwind gray-50 */
}
/* De .notification-unread-indicator (blauwe stip) blijft zoals het was, of kan worden aangepast */
.notification-unread-indicator {
    flex-shrink: 0;
    margin-left: 0.75rem;
    width: 0.6rem; /* Iets duidelijker */
    height: 0.6rem;
    border-radius: 9999px;
    background-color: var(--theme-primary-color, #3b82f6); /* Gebruik thema kleur */
}


.notification-link {
    display: flex;
    align-items: center;
    padding: 1rem 0; /* Verticale padding, horizontale padding komt van .notifications-content-card */
    /* Als je de link over de hele breedte van de kaart-padding wilt: padding: 1rem; */
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease-in-out;
    border-radius: 0.25rem; /* Optioneel: lichte afronding voor hover state */
}
.notification-item:hover .notification-link {
    background-color: #f0f2f5; /* Lichte hover, of var(--theme-page-background) */
}
/* Als de .notification-item.unread al een achtergrond heeft, wil je misschien de hover daar anders:
.notification-item.unread:hover .notification-link {
    background-color: #eef2ff; / * Iets donkerder dan gray-50, bv. indigo-50 * /
}
*/

.notification-icon-area {
    flex-shrink: 0;
    margin-right: 1rem; /* Iets meer ruimte */
    color: #6b7280;
    width: 1.75rem; /* Iets groter voor de iconen */
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-icon-area svg {
    width: 100%;
    height: 100%;
}
.notification-icon-friend-request { color: var(--theme-primary-color, #3b82f6); }
.notification-icon-friend-accept { color: #10b981; /* green-500 */ }


.notification-avatar {
    flex-shrink: 0;
    margin-right: 1rem; /* Iets meer ruimte */
}
.notification-avatar img {
    width: 3rem; /* Tailwind w-12, iets groter */
    height: 3rem; /* Tailwind h-12 */
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.notification-text-area {
    flex-grow: 1;
    min-width: 0;
}

.notification-message {
    font-size: 0.9rem; /* Iets groter voor betere leesbaarheid */
    color: var(--theme-text-color, #374151);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
.notification-actor {
    font-weight: 500; /* Tailwind font-medium, of 600 voor semibold */
    color: var(--theme-link-color, inherit); /* Gebruik link kleur als het klikbaar is, anders standaard */
}
/* .notification-actor:hover { text-decoration: underline; } -- als het geen link is */

.notification-action-text {
    /* Standaard */
}

.notification-timestamp {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem; /* mt-1 */
}

/* Modal Stijlen */
.modal-overlay {
    position: fixed; /* Blijft op zijn plek tijdens scrollen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Donkere, semi-transparante overlay */
    display: none; /* Standaard verborgen, JS zet dit naar 'flex' */
    align-items: center; /* Centreert de modal-content verticaal */
    justify-content: center; /* Centreert de modal-content horizontaal */
    z-index: 1050; /* Zorgt dat de modal boven de meeste andere content komt */
    opacity: 0; /* Voor de fade-in animatie */
    visibility: hidden; /* Standaard niet zichtbaar/interactief */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-overlay.show {
    display: flex; /* Maak het flex container als 'show' wordt toegevoegd */
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 25px 30px; /* Interne padding */
    border-radius: 8px; /* Afgeronde hoeken */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Schaduw voor diepte */
    width: 90%; /* Responsieve breedte */
    max-width: 450px; /* Maximale breedte, pas aan naar wens */
    text-align: left; /* Tekst binnen de modal links uitlijnen */
    transform: scale(0.95); /* Startpunt voor scale-animatie */
    transition: transform 0.3s ease-in-out;
    position: relative; /* Voor eventuele positionering van een sluitknop */
}

.modal-overlay.show .modal-content {
    transform: scale(1); /* Eindpunt voor scale-animatie */
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem; /* Grootte van de titel in de modal */
    color: var(--theme-text-color, #333); /* Gebruik themavariabele indien beschikbaar */
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-options {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #f8f9fa; /* Lichte achtergrond voor de opties sectie */
    border: 1px solid #e9ecef; /* Subtiele rand */
    border-radius: 4px;
}

.modal-options input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    width: 16px; /* Maak checkbox iets groter */
    height: 16px;
}

.modal-options label {
    font-size: 0.9rem;
    vertical-align: middle;
    color: #495057;
}

.modal-actions {
    text-align: right; /* Knoppen aan de rechterkant */
    margin-top: 20px;
}

.modal-actions .button-styling {
    margin-left: 10px; /* Ruimte tussen knoppen */
}

/* Optioneel: een sluitknop (X) in de hoek */
.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.modal-close-button:hover {
    color: #555;
}
