/* assets/css/public-header.css
   Clean, mobile-first navbar for all pre-login pages.
   ────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

/* ── Header Shell ── */
.pub-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-bottom: 1px solid #dde8d8;
    box-shadow: 0 2px 16px rgba(10, 107, 8, 0.08);
}

/* ── Nav Row ── */
.pub-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 68px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
}

/* ── Logo ── */
.pub-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.pub-logo i {
    color: #14900a;
    font-size: 1.4rem;
}

.pub-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0a6b08;
    letter-spacing: -0.5px;
}

.pub-logo-text em {
    font-style: normal;
    color: #c8963a;
}

/* ── Desktop Links ── */
.pub-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}

.pub-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: #5a6e56;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.pub-link:hover,
.pub-link.active {
    background: #e8f5e9;
    color: #0a6b08;
}

.pub-link i {
    font-size: 0.85rem;
    margin-right: 4px;
    color: #0a6b08;
}

/* ── Login Button ── */
.pub-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0a6b08, #14900a);
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(10, 107, 8, 0.25);
}

.pub-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(10, 107, 8, 0.35);
}

/* ── Hamburger ── */
.pub-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #dde8d8;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 8px;
}

.pub-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1a2a18;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.pub-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.pub-burger.open span:nth-child(2) { opacity: 0; }
.pub-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Overlay ── */
.pub-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;
    backdrop-filter: blur(3px);
}

.pub-overlay.show { display: block; }

/* ══════════════════════════════════════
   BODY OFFSET — compensates for fixed header
   ══════════════════════════════════════ */
body {
    padding-top: 68px;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* Tablet: shrink link text */
@media (max-width: 1024px) {
    .pub-link { font-size: 0.85rem; padding: 8px 10px; }
}

/* Mobile: show hamburger, hide links */
@media (max-width: 768px) {
    .pub-burger { display: flex; }

    .pub-links {
        /* Slide-down mobile drawer */
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        border-bottom: 1px solid #dde8d8;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        transform: translateY(-110%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index: 9999;
    }

    .pub-links.open { transform: translateY(0); }

    .pub-link {
        display: block;
        padding: 14px 5%;
        border-radius: 0;
        border-bottom: 1px solid #f0f4ef;
        font-size: 0.95rem;
    }

    .pub-btn-login {
        margin: 12px 5%;
        justify-content: center;
        border-radius: 12px;
    }
}
