/* ============================================================
   SEARCHONIX - Shared Page Styles
   Matches front search page (index.php) exactly
   All content pages must include this CSS
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    background: #0a0a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-top: 60px;
}

/* ── Navbar ───────────────────────────────────────────────── */
.onix-navbar {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.08);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
    display: flex;
    align-items: center;
    height: 60px;
}
/* Override Bootstrap .container breakpoint jumps — fluid width */
.onix-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    max-width: 1400px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.onix-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}
.onix-navbar .nav-link {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.onix-navbar .nav-link:hover {
    color: #fff;
    background: rgba(108, 92, 231, 0.1);
}
.onix-navbar .navbar-nav.ms-auto {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}
.avatar-image {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Sign Up button ───────────────────────────────────────── */
.btn-signup {
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    color: #fff !important;
    border-radius: 20px;
    padding: 5px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.btn-signup:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, #6C5CE7, #a29bfe) !important;
    color: #fff !important;
}

/* ── Dropdown ─────────────────────────────────────────────── */
.dropdown-menu {
    background: rgba(18, 18, 42, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 92, 231, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.dropdown-item {
    color: rgba(255,255,255,0.75);
    border-radius: 6px;
    margin: 2px 6px;
    padding: 8px 14px;
    font-size: 0.88rem;
}
.dropdown-item:hover {
    background: rgba(108, 92, 231, 0.15);
    color: #fff;
}
.dropdown-divider {
    border-color: rgba(108, 92, 231, 0.12);
}

/* ── Content Card ─────────────────────────────────────────── */
.onix-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108,92,231,0.12);
    border-radius: 18px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 820px;
}
.onix-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.onix-card .last-updated {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 2rem;
}
.onix-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #a29bfe;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(108,92,231,0.1);
}
.onix-card h2:first-of-type { margin-top: 0; }
.onix-card p, .onix-card li {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
}
.onix-card ul { padding-left: 1.25rem; }
.onix-card ul li { margin-bottom: 0.4rem; }
.onix-card strong { color: rgba(255,255,255,0.8); }
.onix-card a { color: #a29bfe; text-decoration: none; }
.onix-card a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────── */
.onix-footer {
    background: rgba(10, 10, 26, 0.7);
    border-top: 1px solid rgba(108, 92, 231, 0.06);
    padding: 0.85rem 0;
    text-align: center;
    margin-top: auto;
}
.onix-footer a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.onix-footer a:hover {
    color: #a29bfe;
}
.onix-footer .footer-divider {
    color: rgba(255,255,255,0.1);
    margin: 0 0.75rem;
}

/* ── Form Controls (shared) ───────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.form-control-dark {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(108,92,231,0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}
.form-control-dark::placeholder { color: rgba(255,255,255,0.25); }
.form-control-dark:focus {
    border-color: rgba(108,92,231,0.5);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}
select.form-control-dark {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
select.form-control-dark option { background: #16163a; color: #e0e0e0; }
textarea.form-control-dark { resize: vertical; min-height: 120px; }

.btn-submit {
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}
.btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,92,231,0.3);
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .onix-navbar {
        height: auto;
        min-height: 48px;
    }
    .onix-navbar .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .onix-navbar .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
    .onix-navbar .nav-link .nav-label {
        display: none;
    }
    .onix-footer a {
        font-size: 0.78rem;
    }
    .onix-footer .footer-divider {
        margin: 0 0.5rem;
    }
    .onix-card {
        padding: 1.5rem;
        margin: 1rem 0.5rem;
        border-radius: 14px;
    }
    .onix-card h1 {
        font-size: 1.4rem;
    }
    .onix-card h2 {
        font-size: 1.05rem;
    }
    .onix-card p, .onix-card li {
        font-size: 0.88rem;
    }
    /* Footer mobile: wrap links */
    .onix-footer .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem 0;
    }
    .onix-footer .footer-divider {
        display: none;
    }
    .onix-footer a {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 400px) {
    .onix-navbar .navbar-brand {
        font-size: 0.95rem;
    }
    .onix-card {
        padding: 1.25rem;
        margin: 0.75rem 0.25rem;
    }
    .onix-card h1 {
        font-size: 1.25rem;
    }
}
