/* =========================================
   Delivereats — main.css
   Reset + base + layout global
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg:         #0f1419;
    --surface:    #1a2332;
    --surface-2:  #223044;
    --border:     #2d3e54;
    --gold:       #d4a017;
    --gold-light: #e6b534;
    --navy:       #1e3a5f;
    --text:       #e8eaed;
    --text-muted: #9aa5b1;
    --error:      #c53030;
    --success:    #2f855a;
    --warning:    #d69e2e;
    --info:       #3182ce;
    --radius:     6px;
    --transition: 150ms ease;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
    margin: 0 0 .75rem 0;
    font-weight: 600;
    line-height: 1.2;
}

img { max-width: 100%; }

code {
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .85em;
    color: var(--gold-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.brand-gold { color: var(--gold); }

/* --- Navbar --- */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: .75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}
.brand-text {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: .5px;
}
.brand-slogan {
    color: var(--text-muted);
    font-size: .7rem;
    margin-top: 2px;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.navbar-link {
    color: var(--text);
    font-weight: 500;
    padding: .5rem .25rem;
    transition: color var(--transition);
}
.navbar-link:hover { color: var(--gold); }

.navbar-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}
.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.navbar-username {
    color: var(--text);
    font-size: .9rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    flex-direction: column;
    gap: 4px;
}
.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--navy), var(--surface));
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero-title {
    font-size: 3rem;
    margin: 0 0 .5rem;
    letter-spacing: 1px;
}
.hero-subtitle {
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 1.5rem;
}
.hero-text {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Sections --- */
.section {
    padding: 3rem 0;
}
.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--gold);
    padding-left: .75rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: .25rem;
}
.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: 4rem;
    color: var(--text-muted);
    text-align: center;
    font-size: .9rem;
}

/* --- Main --- */
.main-content {
    min-height: calc(100vh - 250px);
}

/* --- Error pages --- */
.error-page {
    text-align: center;
    padding: 4rem 1.5rem;
}
.error-code {
    font-size: 6rem;
    color: var(--gold);
    margin: 0;
}
.error-message {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
}

/* --- Text utils --- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar-toggle { display: flex; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }
    .navbar-menu.open { display: flex; }
    .navbar-user {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 1rem;
        width: 100%;
    }
    .hero-title { font-size: 2rem; }
    .container { padding: 1rem; }
}
