/* site-header.css — Shared header for Hemklipp customer + barber pages */
/* Do NOT load on admin.html or admin-login.html */

.site-header {
    overflow-x: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    border-bottom: 1px solid var(--border-soft, #1e1e1e);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Inter', sans-serif;
}

.site-header a {
    text-decoration: none;
}

.site-header-logo img {
    height: 34px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.site-header .nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header .nav-actions a,
.site-header .nav-actions button {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft, #a8a49b);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 6px 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.site-header .nav-actions a:hover,
.site-header .nav-actions button:hover {
    color: var(--gold, #c9a227);
}

.site-header .nav-actions .nav-login-btn {
    border: 1px solid var(--gold-dark, #9a7b1a);
    color: var(--gold, #c9a227);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.site-header .nav-actions .nav-login-btn:hover {
    background: rgba(201, 162, 39, 0.06);
    border-color: var(--gold, #c9a227);
}

/* Role badge */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.role-badge.badge-customer {
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: var(--gold, #c9a227);
}

.role-badge.badge-barber {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.role-badge.badge-admin {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

/* Hamburger menu for mobile */
.site-header .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.site-header .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-soft, #a8a49b);
    border-radius: 2px;
    transition: all 0.3s;
}

.site-header .hamburger:hover span {
    background: var(--gold, #c9a227);
}

/* Logout button styling */
.site-header .nav-logout-btn {
    color: var(--text-muted, #6a6660) !important;
    font-size: 12px !important;
}

.site-header .nav-logout-btn:hover {
    color: var(--red, #c94a27) !important;
}

/* ── Step indicator ────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 24px 12px;
    max-width: 520px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.step-indicator-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.step-indicator-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

/* Future (dimmed) step */
.step-indicator-item.step-future .step-indicator-circle {
    background: var(--card, #161616);
    border: 1px solid var(--border, #262626);
    color: var(--text-muted, #6a6660);
}

.step-indicator-item.step-future .step-indicator-name {
    color: var(--text-muted, #6a6660);
}

/* Active step */
.step-indicator-item.step-active .step-indicator-circle {
    background: var(--gold, #c9a227);
    border: 2px solid var(--gold, #c9a227);
    color: var(--black, #080808);
}

.step-indicator-item.step-active .step-indicator-name {
    color: var(--text, #ede9e0);
    font-weight: 600;
}

/* Done step */
.step-indicator-item.step-done .step-indicator-circle {
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--gold-dark, #9a7b1a);
    color: var(--gold, #c9a227);
}

.step-indicator-item.step-done .step-indicator-name {
    color: var(--text-soft, #a8a49b);
}

.step-indicator-item.step-done a {
    text-decoration: none;
    color: inherit;
}

.step-indicator-item.step-done a:hover .step-indicator-circle {
    background: rgba(201, 162, 39, 0.25);
}

.step-indicator-item.step-done a:hover .step-indicator-name {
    color: var(--gold, #c9a227);
}

.step-indicator-name {
    font-size: 11px;
    margin-left: 6px;
    white-space: nowrap;
    transition: color 0.2s;
}

.step-indicator-line {
    flex: 0 0 24px;
    height: 1px;
    background: var(--border, #262626);
    margin: 0 4px;
}

.step-indicator-line.line-done {
    background: var(--gold-dark, #9a7b1a);
}

.step-indicator-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted, #6a6660);
    padding: 0 24px 12px;
    font-family: 'Inter', sans-serif;
}

/* ── Mobile ────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header {
    overflow-x: hidden;
        padding: 12px 20px;
        /* The backdrop-filter makes the header the containing block for its
           fixed children: the mobile menu panel is position:fixed with
           top:0/bottom:0, so against the 59px header it collapsed into a
           96px box in the corner instead of a full-screen panel. The header
           is 95% opaque on a phone, so the blur was invisible anyway. */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header-logo img {
        height: 26px;
    }

    /* 44x44 is the minimum tap target */
    .site-header .hamburger {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        margin-right: -10px;
        flex-shrink: 0;
    }

    .site-header .nav-actions {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 260px;
        max-width: 80vw;
        background: var(--card, #161616);
        border-left: 1px solid var(--border, #262626);
        flex-direction: column;
        align-items: flex-start;
        padding: 72px 24px 24px;
        gap: 4px;
        z-index: 1000;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .site-header .nav-actions.open {
        display: flex;
    }

    .site-header .nav-actions a,
    .site-header .nav-actions button {
        font-size: 15px;
        padding: 14px 0;
        min-height: 48px;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
    }

    .site-header .nav-actions .nav-login-btn {
        margin-top: 8px;
        text-align: center;
        justify-content: center;
        min-height: 48px;
    }

    /* Overlay behind mobile menu */
    .site-header-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .site-header-overlay.open {
        display: block;
    }

    /* Keep badge visible in mobile menu */
    .role-badge {
        margin: 4px 0;
    }

    /* Step indicator mobile */
    .step-indicator {
        padding: 12px 16px 8px;
    }

    .step-indicator-name {
        display: none;
    }

    .step-indicator-line {
        flex: 0 0 16px;
    }

    .step-indicator-label {
        padding: 0 16px 8px;
    }
}


/* Prevent horizontal overflow from mobile menu */
html.menu-open {
    overflow-x: hidden;
    overflow-y: hidden;
}
