/* ════════════════════════════════════════════════════════════════
   Thema: tummysoother
   ════════════════════════════════════════════════════════════════ */

/* ── Reset & basis ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
    font-family: 'BerlinSans';
    src: url('/themes/tummysoother/assets/fonts/BRLNSDB.woff') format('woff'),
         url('/themes/tummysoother/assets/fonts/BRLNSDB.otf') format('opentype');
    font-weight: bold;
}

body {
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #222;
    background: #fff;
    min-height: 100vh;
}

/* ── Admin bar (alleen zichtbaar als ingelogd) ───────────────── */
#admin-bar {
    background: #222;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    display: flex;
    gap: 16px;
    align-items: center;
}
#admin-bar a { color: #ccc; text-decoration: none; }
#admin-bar a:hover { color: #fff; }
#admin-bar button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}
#admin-bar button:hover { color: #fff; }

/* ── Header ──────────────────────────────────────────────────── */
#l2-header {
    text-align: center;
    padding: 24px 20px 12px;
}

.site-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* ── Menu ────────────────────────────────────────────────────── */
#l3-menu {
    border: 1px solid #000;
    border-radius: 8px;
    margin: 12px auto;
    max-width: 1000px;
    overflow: hidden;
}

#l3-menu nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

#l3-menu nav a {
    font-family: 'BerlinSans', Arial, sans-serif;
    font-size: 15px;
    color: #000;
    padding: 9px 28px;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#l3-menu nav a:hover {
    background: #f0f0f0;
}

#l3-menu nav a.active {
    border: 1px solid #000;
    border-radius: 5px;
    margin: 4px;
    padding: 5px 24px;
}

#l3-menu .menu-login {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 12px;
    font-size: 13px;
}

#l3-menu .menu-login a { color: #000; text-decoration: none; font-size: 13px; }
#l3-menu .menu-login a:hover { text-decoration: underline; }
#l3-menu .menu-login form { display: inline; }
#l3-menu .menu-login button {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}
#l3-menu .menu-login button:hover { text-decoration: underline; }

/* ── Inhoud ──────────────────────────────────────────────────── */
#l4-content {
    max-width: 1000px;
    margin: 20px auto;
    padding: 24px 30px;
    border: 1px solid #000;
    border-radius: 8px;
}

/* ── Footer ──────────────────────────────────────────────────── */
#l5-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* ── Basic content ───────────────────────────────────────────── */
.basic-content h1 { font-family: 'BerlinSans', Arial, sans-serif; font-size: 28px; margin-bottom: 16px; }
.basic-content h2 { font-size: 20px; margin: 20px 0 8px; }
.basic-content p  { margin-bottom: 12px; line-height: 1.7; }
.basic-content img { max-width: 100%; height: auto; }
.basic-content img[style*="float: left"]  { float: left;  margin: 4px 16px 8px 0; }
.basic-content img[style*="float: right"] { float: right; margin: 4px 0 8px 16px; }
.basic-content::after { content: ''; display: table; clear: both; }
.basic-content a { color: #000; }
.basic-content a:hover { text-decoration: none; }

/* ── Songs ───────────────────────────────────────────────────── */
.song-list { display: flex; flex-direction: column; gap: 30px; padding-top: 10px; }
.song-item { display: flex; gap: 24px; align-items: center; justify-content: center; }
.song-item img { width: 200px; height: 200px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.song-info { flex: 1; max-width: 360px; }
.song-info h2 { font-family: 'BerlinSans', Arial, sans-serif; font-size: 20px; margin-bottom: 12px; }
.song-info audio { width: 100%; }

/* ── Knoppen ─────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 6px 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}
.btn:hover { background: #333; color: #fff; }
.btn-secondary { background: #888; }
.btn-secondary:hover { background: #666; color: #fff; }
.btn-sm { padding: 3px 9px; font-size: 12px; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #962d22; color: #fff; }
.btn-success { background: #27ae60; }
.btn-success:hover { background: #1e8449; color: #fff; }

/* ── Flash berichten ─────────────────────────────────────────── */
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 13px; }
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Login pagina ────────────────────────────────────────────── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; padding: 32px; border: 1px solid #ddd; border-radius: 10px; width: 320px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); text-align: center; }
.login-box h1 { font-size: 20px; margin-bottom: 20px; }
.login-box label { display: block; text-align: left; font-size: 12px; font-weight: bold; margin-bottom: 4px; margin-top: 12px; }
.login-box input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.login-box button { width: 100%; margin-top: 20px; padding: 10px; font-size: 14px; }
.login-box .error { color: #c0392b; font-size: 13px; margin-top: 8px; }

/* ── Edit toolbar ────────────────────────────────────────────── */
.edit-toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 0; margin-bottom: 4px; }

/* ── Admin layout ────────────────────────────────────────────── */
.admin-page { background: #f4f4f4; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; background: #111; color: #fff; padding: 10px 16px; border-radius: 0 0 5px 5px; margin-bottom: 24px; }
.admin-title { font-weight: bold; font-size: 15px; }
.admin-nav { display: flex; gap: 16px; align-items: center; }
.admin-nav a { color: #fff; font-size: 13px; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.active { color: #aaa; }
.admin-nav form { display: inline; }
.admin-nav button { background: none; border: none; color: #fff; cursor: pointer; font-size: 13px; padding: 0; }
.admin-nav button:hover { color: #aaa; }
.admin-main { padding-bottom: 40px; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-page-header h1 { font-size: 20px; }
.admin-form-box { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 20px; margin-bottom: 24px; max-width: 480px; }
.admin-form-box h2 { font-size: 16px; margin-bottom: 16px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 4px; color: #555; }
.form-row input, .form-row select { width: 100%; padding: 7px 9px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.form-row small { color: #888; font-weight: normal; }
.form-actions { margin-top: 16px; display: flex; gap: 8px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.admin-table th { background: #111; color: #fff; padding: 9px 12px; text-align: left; font-size: 12px; }
.admin-table td { padding: 9px 12px; border-bottom: 1px solid #eee; font-size: 13px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.row-inactive td { color: #aaa; }
.actions { display: flex; gap: 6px; align-items: center; }

/* ── Contact formulier ───────────────────────────────────────── */
.contact-form { max-width: 520px; }
.contact-row { margin-bottom: 16px; }
.contact-row label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 4px; }
.contact-row input, .contact-row textarea { width: 100%; padding: 8px 10px; border: 1px solid #000; border-radius: 4px; font-size: 14px; font-family: Arial, sans-serif; }
.contact-row textarea { resize: vertical; }
.req { color: #c00; }
.hp-field { display: none; }
.contact-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 12px 16px; border-radius: 4px; }
.contact-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }

/* ── Responsive: mobiel ──────────────────────────────────────── */
@media (max-width: 600px) {
    #l3-menu, #l4-content {
        margin: 8px 10px;
        border-radius: 6px;
    }

    #l3-menu nav {
        flex-wrap: wrap;
    }

    #l3-menu nav a {
        padding: 10px 16px;
        font-size: 14px;
    }

    #l4-content {
        padding: 16px;
    }

    .site-logo {
        max-width: 280px;
    }

    .song-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .song-item img {
        width: 100%;
        height: auto;
    }

    .song-info {
        max-width: 100%;
    }
}
