/* ==========================================================================
   Makere Hosting — Compact Header (loaded after style.css)
   ========================================================================== */

:root {
    --site-header-height: 58px;
    --logo-nav-height: 42px;
}

@media (min-width: 576px) {
    :root {
        --logo-nav-height: 46px;
        --site-header-height: 62px;
    }
}

@media (min-width: 992px) {
    :root {
        --logo-nav-height: 48px;
        --site-header-height: 64px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --logo-nav-height: 38px;
        --site-header-height: 54px;
    }
}

header.site-header.site-header--compact {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    background: linear-gradient(135deg, #020617 0%, #0a1628 45%, #0c2340 100%) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] header.site-header.site-header--compact {
    background: linear-gradient(135deg, #020617 0%, #0a1628 50%, #0d2137 100%) !important;
    border-bottom-color: rgba(56, 189, 248, 0.22);
}

header.site-header.site-header--compact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
    pointer-events: none;
}

.compact-header {
    padding: 0.35rem 0;
    background: transparent;
}

.compact-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    min-height: var(--site-header-height);
}

.compact-header-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-right: 0.25rem;
}

.compact-header-brand:hover {
    opacity: 0.92;
}

.compact-header-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    justify-content: center;
    align-items: center;
}

.compact-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(186, 230, 253, 0.14);
}

.compact-nav-list > li {
    position: relative;
}

.compact-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #cbd5e1 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.compact-nav-link i {
    font-size: 0.62rem;
    transition: transform 0.2s ease;
}

.compact-nav-link--dropdown.show i {
    transform: rotate(180deg);
}

.compact-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.compact-nav-link.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.compact-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.compact-header-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bae6fd;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(186, 230, 253, 0.2);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    font-size: 0.85rem;
}

.compact-header-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.compact-header .btn-theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(186, 230, 253, 0.2);
    color: #bae6fd;
}

.compact-header .btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.compact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.compact-btn--ghost {
    color: #e2e8f0;
    background: transparent;
    border: 1px solid rgba(186, 230, 253, 0.25);
}

.compact-btn--ghost:hover,
.compact-btn--ghost.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.compact-btn--primary {
    color: #0f172a;
    background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
}

.compact-btn--primary:hover {
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.4);
}

.compact-header-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.compact-header-menu-btn:hover {
    background: rgba(14, 165, 233, 0.35);
}

.site-header--compact .site-logo-nav {
    height: var(--logo-nav-height);
    width: auto;
    max-width: min(180px, 38vw);
    min-height: unset;
}

.compact-nav-dropdown-wrap .nav-services-dropdown {
    margin-top: 0.5rem !important;
    min-width: 260px;
    border-radius: 14px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.18);
    padding: 0.35rem;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .compact-nav-link {
        font-size: 0.72rem;
        padding: 0.35rem 0.55rem;
    }

    .compact-nav-list {
        gap: 0.05rem;
    }
}

@media (max-width: 575.98px) {
    .compact-header {
        padding: 0.3rem 0;
    }

    .site-header--compact .site-logo-nav {
        max-width: min(150px, 48vw);
    }
}
