/* ===============================
   AuraOlympiad – Global UI
   (Header, Nav, Base)
================================ */

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
    color: #0f172a;
    background: #ffffff;
}

/* ================= HEADER ================= */

.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 50;
}

/* Header layout */
.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 6px 14px;          /* 🔑 tighter */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 52px;           /* 🔒 prevents logo stretch */
}

/* ================= LOGO ================= */

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

/* 🔥 ABSOLUTE LOGO LOCK (OVERRIDE EVERYTHING) */
.app-logo img,
.site-logo {
    height: 28px !important;
    max-height: 28px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Text */
.logo-text {
    line-height: 1;
    font-size: 16px;
}

/* ================= NAV ================= */

.app-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.nav-btn {
    padding: 6px 14px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
    transition: all .2s ease;
}

.nav-btn.primary {
    background: #14b8a6;
    color: #ffffff;
}

.nav-btn.secondary {
    background: #e5e7eb;
    color: #0f172a;
}

.nav-btn.logout {
    background: #fee2e2;
    color: #b91c1c;
}

.nav-btn:hover {
    transform: translateY(-1px);
    opacity: .95;
}

/* ================= MOBILE (CENTERED) ================= */
@media (max-width: 600px) {

    .header-inner {
        justify-content: center;
        text-align: center;
    }

    .app-logo {
        width: 100%;
        justify-content: center;
    }

    .app-nav {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
}
