/*
 * assets/css/header.css — Shared App Header Styles
 * Include di setiap halaman yang menggunakan includes/header.php
 */

/* ── Header Shell ── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 500;
    height: 52px;
    background: #111;
    border-bottom: 1px solid #222;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 0.75rem;
    gap: 0.5rem;
}

/* ── Brand (Center) ── */
.hdr-brand {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.hdr-brand:hover { opacity: 0.75; color: #fff; }

/* ── Left / Right Slots ── */
.hdr-side {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}
.hdr-left  { justify-content: flex-start; }
.hdr-right { justify-content: flex-end; }

/* ── Header Buttons (shared style) ── */
.hdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 34px;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.hdr-btn i { font-size: 0.9rem; }

/* Variants */
.hdr-btn-ghost {
    background: transparent;
    color: #bbb;
    border: 1.5px solid #333;
}
.hdr-btn-ghost:hover {
    background: #222;
    color: #fff;
    border-color: #555;
}

.hdr-btn-icon {
    background: transparent;
    color: #bbb;
    border: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}
.hdr-btn-icon:hover {
    background: #222;
    color: #fff;
}
.hdr-btn-icon i { font-size: 1.1rem; }

.hdr-btn-primary {
    background: #fff;
    color: #111;
}
.hdr-btn-primary:hover {
    background: #e8e8e8;
    color: #111;
    transform: translateY(-1px);
}

/* ── Desktop tweak ── */
@media (min-width: 768px) {
    .app-header {
        height: 58px;
        padding: 0 2rem;
    }
    .hdr-brand { font-size: 1.15rem; letter-spacing: 4px; }
    .hdr-btn   { height: 36px; font-size: 0.8rem; }
}
