/* ============================================
   Shared Theme (Light/Dark-ready)
   Unified palette + base components
   ============================================ */

:root {
    --primary: #0ea5e9;
    --primary-strong: #0284c7;
    --accent: #f59e0b;
    --surface: #0f172a;
    --card: #0b1220;
    --muted: #94a3b8;
    --line: #1f2937;
    --success: #22c55e;
    --danger: #ef4444;
    --warn: #facc15;
    --info: #38bdf8;
    --bg: #0b1220;
    --elevated: rgba(255, 255, 255, 0.04);
    --radius: 14px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --font-base: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;
    --transition: all 0.2s ease;
}

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

body {
    font-family: var(--font-base);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333333;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* Centering helper for simple pages */
.centered { display: flex; justify-content: center; align-items: center; }

/* Card container for simple pages */
.container {
    width: min(780px, 92vw);
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 44px 36px;
    text-align: center;
}

h1 { font-size: 34px; margin-bottom: 14px; color: #333; }
p { font-size: 16px; color: #666; margin-bottom: 22px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: #ffffff;
    background: #667eea;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: #ffffff; box-shadow: 0 12px 30px rgba(118,75,162,0.25); }
.btn-secondary { background: rgba(255,255,255,0.06); color: #e2e8f0; border-color: var(--line); }
.btn-link { background: transparent; color: var(--primary); border: none; padding: 0; box-shadow: none; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* Utility */
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }

/* Code snippet styling (shared) */
code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e2e8f0;
}

/* Responsive tweaks for simple pages */
@media (max-width: 520px) {
    h1 { font-size: 28px; }
    .container { padding: 32px 24px; }
}
