/* public-base.css - Shared CSS for all public-facing pages */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* CSS Variables */
:root {
    --primary: #5865f2;
    --primary-dark: #4752c4;
    --success: #43b581;
    --warning: #faa61a;
    --danger: #ed4245;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-sidebar: #0f1629;
    --bg-card: rgba(255,255,255,0.06);
    --bg-hover: rgba(255,255,255,0.1);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #666;
    --border: rgba(255,255,255,0.08);
    --navbar-height: 64px;
}

/* Body */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
    background: #0a0a19 !important;
}

/* Background Layers */
.bg-image {
    position: fixed; inset: 0;
    background: url('https://shared.cloudflare.steamstatic.com/store_item_assets/steam/apps/682990/header.jpg') center/cover no-repeat;
    z-index: -2; opacity: 0.35; pointer-events: none;
}
.bg-overlay {
    position: fixed; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,25,0.92) 0%, rgba(10,10,25,0.80) 30%, rgba(10,10,25,0.88) 100%),
                linear-gradient(135deg, rgba(15,22,41,0.5) 0%, transparent 50%);
    z-index: -1; pointer-events: none;
}

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10,10,25,0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(88,101,242,0.15) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; min-height: var(--navbar-height); gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(88,101,242,0.5); box-shadow: 0 0 12px rgba(88,101,242,0.24); }
.nav-brand h2 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.nav-links a { color: var(--text-secondary); text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.88rem; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-links a.active { background: rgba(88,101,242,0.2); color: var(--primary); }
.btn-appeal { background: rgba(237,66,69,0.15) !important; color: var(--danger) !important; border: 1px solid rgba(237,66,69,0.2); }
.btn-appeal:hover { background: rgba(237,66,69,0.25) !important; }
.btn-staff { background: rgba(88,101,242,0.15) !important; color: var(--primary) !important; border: 1px solid rgba(88,101,242,0.2); font-weight: 600 !important; }
.btn-staff:hover { background: rgba(88,101,242,0.25) !important; }
.nav-toggle { display: none; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

/* Mobile Navbar */
@media (max-width: 800px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; right: 0; left: 0;
        background: rgba(12,14,30,0.97); backdrop-filter: blur(16px);
        flex-direction: column; padding: 0.5rem;
        border-bottom: 1px solid rgba(88,101,242,0.15);
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 0.8rem 1rem; width: 100%; }
    .navbar { padding: 0.75rem 1rem; position: relative; }
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-drop-toggle { cursor: pointer; display: flex; align-items: center; gap: 0.3rem; }
.nav-dropdown > .nav-drop-toggle::after { content: '▾'; font-size: 0.7rem; opacity: 0.6; }
.nav-drop-menu {
    display: none; position: absolute; top: calc(100% + 0.3rem); left: 50%; transform: translateX(-50%);
    background: rgba(12,14,30,0.97); backdrop-filter: blur(16px); border: 1px solid rgba(88,101,242,0.15);
    border-radius: 10px; padding: 0.4rem; min-width: 170px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 1001;
}
.nav-dropdown:hover > .nav-drop-menu { display: flex; flex-direction: column; }
.nav-drop-menu a { padding: 0.5rem 0.8rem !important; font-size: 0.85rem !important; border-radius: 6px; width: 100%; }
.nav-drop-menu a:hover { background: rgba(88,101,242,0.15) !important; }
@media (max-width: 800px) {
    .nav-drop-menu { position: static; transform: none; background: transparent; border: none; box-shadow: none; backdrop-filter: none; padding: 0 0 0 1rem; }
    .nav-dropdown:hover > .nav-drop-menu { display: flex; }
    .nav-drop-menu a { padding: 0.6rem 1rem !important; }
}

/* Page Header */
.page-header { text-align: center; padding: 3rem 1rem 2rem; }
.page-header h1 {
    font-size: 2.6rem; font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, rgba(88,101,242,0.8) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 0.5rem;
}
.page-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* Container */
.container { max-width: 900px; margin: 0 auto; padding: 2.5rem 2rem; }
.container-wide { max-width: 1100px; }

/* Common Mobile */
@media (max-width: 600px) {
    .page-header h1 { font-size: 1.8rem; }
    .container { padding: 1.5rem 1rem; }
}
