/* ---------------- Algemene layout ---------------- */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

/* ---------------- Header ---------------- */
header {
    background: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: #333;
}

.hamburger {
    font-size: 28px;
    cursor: pointer;
    margin-right: 15px;
}

/* ---------------- Side menu ---------------- */
.side-menu {
    position: fixed;
    top: 70px;          /* direct onder de header */
    left: -250px;
    width: 250px;
    height: calc(100% - 70px); /* full height minus header */
    background: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    padding-top: 10px;
    z-index: 1500;      /* hoger dan header */
}

#menu-toggle:checked + header + .side-menu {
    left: 0;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu ul li {
    border-bottom: 1px solid #eee;
}

.side-menu ul li a,
.side-menu ul li span {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.side-menu ul li a:hover,
.side-menu ul li span:hover {
    background: #f0f0f0;
}

.submenu {
    display: none;
    background: #f9f9f9;
}

.submenu li a {
    padding-left: 40px;
}

/* ---------------- Main content ---------------- */
main {
    margin-top: 70px;
    transition: margin-left 0.3s ease;
}

/* ---------------- Footer ---------------- */
footer {
    background: #fff;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

/* ---------------- Formulier styling ---------------- */
.form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.ad-form label {
    display: block;
    margin: 12px 0 5px;
    font-weight: bold;
}

.ad-form input[type="text"],
.ad-form input[type="email"],
.ad-form input[type="password"],
.ad-form input[type="date"],
.ad-form textarea,
.ad-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ad-form input:focus,
.ad-form textarea:focus,
.ad-form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.ad-form textarea {
    resize: vertical;
    min-height: 80px;
}

.ad-form button {
    margin-top: 15px;
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.ad-form button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.ad-form button:active {
    transform: translateY(0);
}

/* ---------------- Meldingen ---------------- */
.errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    animation: fadeIn 0.4s ease-in-out;
}

.errors p,
.success p {
    margin: 0;
    font-size: 14px;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    animation: fadeIn 0.4s ease-in-out;
}

/* ---------------- File input / plusjes-boxen ---------------- */
.file-inputs {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.file-box {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 24px;
    color: #555;
    transition: background 0.3s, border-color 0.3s;
    overflow: hidden;
}

.file-box:hover {
    background: #e0e0e0;
    border-color: #007bff;
}

.file-box img,
.file-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------- Carousel ---------------- */
.ad-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-top: 10px;
    max-height: 200px;
}

.ad-carousel img.carousel-img {
    width: 100%;
    display: none;
    object-fit: cover;
    max-height: 200px;
}

.ad-carousel img.carousel-img.active {
    display: block;
}

.ad-carousel button { 
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5); 
    color: white; 
    border: none; 
    padding: 5px 10px; 
    cursor: pointer; 
    border-radius: 3px;
}

.ad-carousel .prev { left: 5px; }
.ad-carousel .next { right: 5px; }

/* ---------------- Video ---------------- */
video { 
    background: #000; 
    width: 100%; 
    border-radius: 6px; 
    margin: 10px 0; 
}

/* ---------------- Filters overlay ---------------- */
.filters-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    padding: 20px;
    display: none;
    z-index: 2000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.filters-panel.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.filters-panel .field {
    margin-bottom: 15px;
}

.filters-panel .slider-container {
    height: 16px;
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.filters-panel input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: #ddd;
    border-radius: 1px;
    outline: none;
    transition: background 0.2s;
}

.filters-panel input[type=range]:hover { background:#ccc; }

.filters-panel input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -3px;
    transition: background 0.2s, transform 0.2s;
}

.filters-panel input[type=range]::-moz-range-thumb { width:8px; height:8px; background:#007bff; border-radius:50%; cursor:pointer; }
.filters-panel input[type=range]::-ms-thumb { width:8px; height:8px; background:#007bff; border-radius:50%; cursor:pointer; }

/* ---------------- Apply button ---------------- */
.apply-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.apply-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* ---------------- Media Queries ---------------- */
@media (max-width: 768px) {
    .ads-grid { grid-template-columns: 1fr; }
    .filters-panel { width: 90%; right: 5%; top: 70px; }
}

/* ---------------- Avatar safety sizing ---------------- */
.inbox-avatar,
.thread-avatar {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 999px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

.thread-avatar {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
}

@media (max-width: 480px) {
    body { padding: 10px; }
    .top-controls { flex-direction: column; align-items: flex-start; gap: 10px; }
    .apply-btn { float: none; width: 100%; }
}

/* ---------------- Hero sectie - moderner ---------------- */
.hero-section {
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* van roze -> paars/blauw gradient */
    color: #fff;
    padding: 100px 20px 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hero-section h1 span {
    color: #fff;
}

.hero-tagline {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.hero-subtext {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-btn {
    padding: 14px 30px;
    font-size: 18px;
    background: #fff;
    color: #2575fc;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ---------------- Populaire categorieën grid ---------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: #f0f4ff;
    color: #2575fc;
}

/* ---------------- Responsiveness ---------------- */
@media (max-width: 768px) {
    .hero-section { padding: 70px 15px 40px 15px; }
    .hero-section h1 { font-size: 36px; }
    .hero-tagline { font-size: 16px; }
    .hero-subtext { font-size: 13px; }
    .hero-btn { font-size: 16px; }

    .category-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
/* ---------------- Animaties ---------------- */
@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-section h1,
.hero-tagline,
.hero-subtext,
.hero-btn {
    opacity: 0;
    animation: fadeSlideUp 0.8s forwards;
}

.hero-section h1 { animation-delay: 0.2s; }
.hero-tagline { animation-delay: 0.4s; }
.hero-subtext { animation-delay: 0.6s; }
.hero-btn { animation-delay: 0.8s; }

.category-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s forwards;
}

.category-card:nth-child(1) { animation-delay: 0.2s; }
.category-card:nth-child(2) { animation-delay: 0.3s; }
.category-card:nth-child(3) { animation-delay: 0.4s; }
.category-card:nth-child(4) { animation-delay: 0.5s; }
.category-card:nth-child(5) { animation-delay: 0.6s; }
.category-card:nth-child(6) { animation-delay: 0.7s; }
/* etc. voor meer categorieën */
