/* ═══════════════════════════════════════════════
   index.css  –  Soekmekaar / Helpmekaar Kollege
   ═══════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
    --hm-green: #c0a75a;
    --hm-green-dark: #8a7438;
    --hm-green-light: #f7f1e0;
    --hm-gold: #c0a75a;
    --hm-gold-light: #f7f1e0;
    --hm-surface: #faf8f3;
    --hm-text: #2a2215;
    --hm-muted: #7f7254;
    --hm-border: #e0d5b8;
    --hm-white: #ffffff;

    --hm-font-display: 'Playfair Display', Georgia, serif;
    --hm-font-body: 'Source Sans 3', sans-serif;

    --hm-radius: 0.5rem;
    --hm-radius-lg: 1rem;
    --hm-shadow: 0 4px 24px rgba(192, 167, 90, 0.14);
    --hm-shadow-sm: 0 2px 8px rgba(192, 167, 90, 0.10);
}

/* ── Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--hm-font-body);
    font-size: 1rem;
    color: var(--hm-text);
    background: var(--hm-surface);
    margin: 0;
}


/* ════════════════════════════════
   NAVBAR
   ════════════════════════════════ */
.hm-navbar {
    background: var(--hm-green-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.hm-logo {
    border-radius: 10px;
    border: 1px solid var(--hm-gold);
    object-fit: cover;
    padding: 0px;
}

.hm-brand-name {
    font-family: var(--hm-font-display);
    font-size: 1.25rem;
    color: var(--hm-gold);
    letter-spacing: .03em;
    margin: 0;
}

/* nav links */
.hm-navbar .nav-link,
.hm-navbar .nav-link.dropdown-toggle {
    color: rgba(255, 255, 255, .85) !important;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .45rem .75rem;
    border-radius: var(--hm-radius);
    transition: background .18s, color .18s;
}

.hm-navbar .nav-link:hover,
.hm-navbar .nav-link.dropdown-toggle:hover {
    background: rgba(255, 255, 255, .12);
    color: var(--hm-white) !important;
}

.hm-nav-title {
    color: var(--hm-gold) !important;
    font-family: var(--hm-font-display);
    font-size: 1.05rem;
    cursor: default;
    pointer-events: none;
}

.hm-active {
    color: var(--hm-gold) !important;
}

.hm-views {
    font-size: .75rem;
    /* color: rgba(255, 255, 255, .5) !important; */
    cursor: default;
    padding: .45rem .75rem;
    border-radius: var(--hm-radius);
}

/* dropdown */
.hm-dropdown {
    background: var(--hm-green-dark);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--hm-radius);
    padding: .35rem 0;
    min-width: 180px;
}

.hm-dropdown .dropdown-item {
    color: rgba(255, 255, 255, .82);
    font-size: .875rem;
    padding: .45rem 1.1rem;
    transition: background .15s;
}

.hm-dropdown .dropdown-item:hover,
.hm-dropdown .dropdown-item:focus {
    background: rgba(255, 255, 255, .12);
    color: var(--hm-white);
}

/* toggler */
.hm-toggler {
    border-color: rgba(255, 255, 255, .4);
}

.hm-toggler .navbar-toggler-icon {
    filter: invert(1);
}


/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
.hm-hero {
    min-height: 38vh;
    background:
        linear-gradient(160deg, var(--hm-green-dark) 0%, #a8913e 60%, var(--hm-green) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem;
}

/* subtle texture overlay */
.hm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(192, 167, 90, .18) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .07) 0%, transparent 50%);
    pointer-events: none;
}

.hm-hero-title {
    font-family: var(--hm-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--hm-white);
    letter-spacing: .06em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
    position: relative;
    margin: 0;
}

.hm-hero-link {
    display: inline-block;
    position: relative;
    color: gold;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-decoration: none;
    border-bottom: 2px solid var(--hm-gold);
    padding-bottom: 2px;
    transition: opacity .2s, letter-spacing .2s;
}

.hm-hero-link:hover {
    opacity: .8;
    letter-spacing: .13em;
    color: var(--hm-gold);
}


/* ════════════════════════════════
   SEARCH SECTION
   ════════════════════════════════ */
.hm-search-section {
    background: var(--hm-white);
    border-bottom: 1px solid var(--hm-border);
}

.hm-section-title {
    font-family: var(--hm-font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--hm-green-dark);
}

/* search type buttons */
.hm-search-btn {
    background: var(--hm-green-light);
    color: var(--hm-green-dark);
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    font-weight: 700;
    font-size: .875rem;
    letter-spacing: .08em;
    padding: .55rem 1.4rem;
    transition: background .18s, border-color .18s, color .18s, transform .12s;
}

.hm-search-btn:hover,
.hm-search-btn:focus {
    background: var(--hm-green);
    border-color: var(--hm-green);
    color: var(--hm-white);
    transform: translateY(-2px);
    outline: none;
}

.hm-search-btn:active {
    transform: translateY(0);
}

/* input wrapper */
.hm-input-wrapper {
    max-width: 560px;
}

.hm-search-input {
    border: 2px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: .7rem 1rem;
    font-size: 1rem;
    transition: border-color .18s, box-shadow .18s;
}

.hm-search-input:focus {
    border-color: var(--hm-green);
    box-shadow: 0 0 0 3px rgba(26, 107, 60, .15);
    outline: none;
}

/* autocomplete box */
.hm-autobox {
    max-width: 560px;
    background: var(--hm-white);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
}

/* subject / lokale grid */
.hm-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
}

.hm-grid-col {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 160px;
}

/* subject tags */
.hm-tag {
    background: var(--hm-green-light);
    color: var(--hm-green-dark);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: .4rem .9rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background .15s, border-color .15s, color .15s;
}

.hm-tag:hover {
    background: var(--hm-green);
    border-color: var(--hm-green);
    color: var(--hm-white);
}

/* lokale links */
.hm-lokaal {
    padding: .3rem .5rem;
    border-radius: var(--hm-radius);
    transition: background .15s;
}

.hm-lokaal:hover {
    background: var(--hm-green-light);
}

.hm-lokaal a {
    color: var(--hm-green-dark);
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
}

.hm-lokaal a:hover {
    color: var(--hm-green);
    text-decoration: underline;
}


/* ════════════════════════════════
   RESULTS SECTION
   ════════════════════════════════ */
.hm-results-section {
    background: var(--hm-surface);
    min-height: 2rem;
}


/* ════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════ */
.hm-how-section {
    background: var(--hm-gold-light);
    border-top: 1px solid rgba(201, 168, 76, .25);
    border-bottom: 1px solid rgba(201, 168, 76, .25);
}

.hm-how-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--hm-text);
    margin-bottom: 1rem;
}

.hm-how-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-how-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: .85rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hm-text);
}

.hm-how-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--hm-green);
    font-weight: 700;
}


/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.hm-footer {
    background: var(--hm-green-dark);
    color: rgba(255, 255, 255, .75);
}

.hm-footer-heading {
    font-family: var(--hm-font-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hm-gold);
    margin-bottom: .75rem;
}

.hm-footer-link {
    display: block;
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
    text-decoration: none;
    margin-bottom: .4rem;
    transition: color .15s;
}

.hm-footer-link:hover {
    color: var(--hm-white);
}

.hm-footer-divider {
    border-color: rgba(255, 255, 255, .12);
}

.hm-copyright {
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
}

.hm-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    transition: background .18s;
}

.hm-social-link:hover {
    background: rgba(255, 255, 255, .2);
}

.hm-social-link img {
    filter: invert(1) brightness(1);
}


/* ════════════════════════════════
   RESPONSIVE TWEAKS
   ════════════════════════════════ */
@media (max-width: 768px) {
    .hm-hero {
        min-height: 28vh;
        padding: 2.5rem 1rem;
    }
    .hm-hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .hm-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .hm-search-btn {
        width: 100%;
        font-size: .8rem;
        padding: .5rem 1rem;
    }
    .hm-input-wrapper,
    .hm-autobox {
        max-width: 100%;
    }
    .hm-search-section {
        padding: 2rem 0;
    }
    .hm-section-title {
        font-size: 1.3rem;
    }
    .hm-how-section {
        padding: 2rem 1rem;
    }
    .hm-footer .row > div {
        text-align: center;
    }
    .hm-footer .d-flex {
        justify-content: center;
    }

    /* ── Subject/lokale tags ── */
    .hm-tag {
        width: 100%;
        text-align: center;
        font-size: .8rem;
        padding: .5rem;
    }

    /* ── Admin pages ── */
    .table-responsive table {
        font-size: .8rem;
    }
    .table-responsive .btn {
        font-size: .75rem;
        padding: .25rem .5rem;
    }
    .card-body h6.card-title {
        font-size: .75rem;
        word-break: break-all;
    }
    .card-body .btn-sm {
        font-size: .7rem;
        padding: .2rem .5rem;
    }
}

/* ── Admin dashboard cards ── */
@media (max-width: 768px) {
    .container.py-5 .row.g-4 .col-md-4 {
        width: 100%;
    }
    .container.py-5 h1 {
        font-size: 1.3rem;
    }
    .container.py-5 .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    .container.py-5 .d-flex.gap-2 .btn {
        font-size: .8rem;
    }
}

@media (max-width: 576px) {
    .hm-hero {
        min-height: 22vh;
        padding: 2rem 1rem;
    }
    .tc-grid {
        grid-template-columns: 1fr;
    }
    .tc-wrap {
        flex-direction: column;
    }
    .tc-avatar-panel {
        width: 100%;
        height: 200px;
    }
    .tc-avatar-initials {
        width: 100%;
        height: 200px;
    }

    .hm-navbar .container {
        padding-left: .5rem;
        padding-right: .5rem;
    }
    .hm-brand-name {
        font-size: 1rem;
    }

    .hm-how-list li {
        font-size: .9rem;
        padding-left: 1.2rem;
    }
    .hm-how-text {
        font-size: .95rem;
    }
}