/* ==========================================================================
   HEADER — Slanke donkerblauwe balk (alle pagina's behalve dashboard)
   ========================================================================== */

.wk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0a1f5c 0%, #1a3a8f 100%);
    color: #fff;
    position: relative;
    z-index: 100;
}

.wk-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wk-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.wk-header-right {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   HERO USERBAR — Rechtsboven in hero banner
   ========================================================================== */

.wk-hero-userbar {
    position: absolute;
    top: 12px;
    right: 24px;
    z-index: 20;
}

/* ==========================================================================
   GEDEELDE USER BLOCK — Gebruikt in header EN hero
   ========================================================================== */

/* Ingelogd */
.wk-user-block {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 40px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2);
    transition: background .15s;
    user-select: none;
}

.wk-user-block:hover {
    background: rgba(255,255,255,.2);
}

.wk-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.wk-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.wk-user-name {
    font-weight: 600;
    font-size: .88rem;
    color: #fff;
}

.wk-user-chevron {
    font-size: .7rem;
    color: rgba(255,255,255,.6);
    transition: transform .2s;
}

.wk-user-block.open .wk-user-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.wk-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    min-width: 210px;
    z-index: 999;
    overflow: hidden;
}

.wk-user-block.open .wk-user-dropdown {
    display: block;
}

.wk-user-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.wk-user-dropdown-name  { font-weight: 700; font-size: .9rem; color: #111827; }
.wk-user-dropdown-email { font-size: .78rem; color: #9ca3af; margin-top: 2px; }

.wk-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: .88rem;
    color: #374151;
    text-decoration: none;
    transition: background .15s;
}

.wk-user-dropdown a:hover        { background: #f9fafb; }
.wk-user-dropdown a.logout       { color: #ef4444; border-top: 1px solid #f3f4f6; }
.wk-user-dropdown a.logout:hover { background: #fef2f2; }

/* Niet ingelogd */
.wk-user-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wk-user-login-btn {
    padding: 8px 20px;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}

.wk-user-login-btn:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

.wk-user-register-btn {
    padding: 8px 20px;
    font-size: .85rem;
    font-weight: 600;
    color: #0a1f5c;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}

.wk-user-register-btn:hover {
    background: #e0e7ff;
}

/* Responsive */
@media (max-width: 600px) {
    .wk-header { padding: 12px 16px; }
    .wk-header-title { font-size: .95rem; }
    .wk-user-name { display: none; }
    .wk-hero-userbar { top: 10px; right: 12px; }
}
