/* ============================================
   All Time Draft — Base Styles
   Extracted from base.html inline CSS
   ============================================ */

/* --- Design Tokens --- */
:root {
    --bg-body: #0b0b0f;
    --bg-card: #151922;
    --bg-input: #0f1117;
    --bg-topbar: #11151f;
    --border: #222938;
    --border-input: #374151;
    --border-accent: #2a3345;
    --accent: #22c55e;
    --accent-dark: #052e16;
    --accent-border: #166534;
    --danger: #ef4444;
    --danger-bg: #3b0d0d;
    --danger-border: #7f1d1d;
    --warning-bg: #3f2206;
    --warning-border: #92400e;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-subtle: #cbd5e1;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-2xl: 16px;
    --radius-pill: 999px;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* --- Shell Layout --- */
.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Topbar --- */
.topbar {
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.desktop-nav a {
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.desktop-nav a:hover,
.topbar-right a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
    color: var(--text-primary);
}

.nav-primary {
    color: var(--accent) !important;
    font-weight: bold;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.topbar-right a {
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.account-link {
    color: var(--accent) !important;
    font-weight: bold;
}

.divider {
    width: 1px;
    height: 18px;
    background: #2b3447;
}

/* --- Main Content --- */
.page-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 90px 16px;
    flex: 1;
}

/* --- Flash Messages --- */
.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.flash.success {
    background: var(--accent-dark);
    border-color: var(--accent-border);
}

.flash.error {
    background: var(--danger-bg);
    border-color: var(--danger-border);
}

.flash.info {
    background: #111827;
    border-color: var(--border-input);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-topbar);
    padding: 18px 16px 90px 16px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.site-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Mobile Nav --- */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-topbar);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 6px;
    z-index: 100;
}

.mobile-nav a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    flex: 1;
    line-height: 1.2;
}

.mobile-nav .nav-primary {
    color: var(--accent) !important;
}
