/**
 * onof.online - Clean Documentation-Style Dark Theme
 * Minimal, elegant cards and numbered steps as requested
 */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Palette */
    --bg: #0f172a;                /* page background */
    --panel: #111827;             /* card background */
    --panel-alt: #0e1117;         /* subtle alt tone */
    --border: rgba(255,255,255,0.06);
    --text: #e5e7eb;              /* primary text */
    --muted: #9ca3af;            /* secondary text */
    --muter: #6b7280;            /* tertiary */
    --blue: #3b82f6;             /* CTA blue */
    --yellow: #f59e0b;           /* important */

    --radius: 12px;
    --shadow: 0 8px 24px rgba(0,0,0,0.25);

    --space-1: .5rem;  /* 8px */
    --space-2: .75rem; /* 12px */
    --space-3: 1rem;   /* 16px */
    --space-4: 1.5rem; /* 24px */
    --space-5: 2rem;   /* 32px */
    --space-6: 3rem;   /* 48px */

    --fs-12: 12px;
    --fs-13: 13px;
    --fs-14: 14px;
    --fs-16: 16px;
    --fs-18: 18px;
    --fs-22: 22px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Particle background layer */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.header, .main, .footer { position: relative; z-index: 1; }

.container { max-width: 980px; margin: 0 auto; padding: 0 var(--space-3); }

/* Header */
.header { border-bottom: 1px solid var(--border); background: rgba(14,17,23,0.6); position: sticky; top: 0; backdrop-filter: blur(8px); }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; }
.brand { font-weight: 700; font-size: var(--fs-18); color: var(--text); }
.brand a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.brand .brand-icon { width: 18px; height: 18px; color: var(--muted); }
.language-switcher { display: inline-flex; align-items: center; gap: .5rem; }
.language-switcher .lang-icon { width: 18px; height: 18px; color: var(--muted); }
.language-switcher select { background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: .5rem .75rem; border-radius: 8px; font-size: var(--fs-14); }

/* Main */
.main { padding: var(--space-6) 0; }
.hero { text-align: center; margin-bottom: var(--space-5); }
.hero h2 { font-size: 26px; font-weight: 700; margin-bottom: var(--space-2); }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: var(--fs-14); }

/* Server Status */
.server-status { margin-bottom: var(--space-5); }
.status-card { background: linear-gradient(180deg, var(--panel), var(--panel-alt)); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow); }
.status-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.status-title { font-size: 18px; font-weight: 700; }
.status-icon { width: 20px; height: 20px; color: #22c55e; }
.status-badge { margin-inline-start: auto; padding: .3rem .6rem; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.status-message { color: var(--muted); font-size: var(--fs-14); }
.status-cta { margin-top: .75rem; }

/* Variants */
.status--online .status-icon { color: #22c55e; }
.status--online .status-badge { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.35); }

.status--eta .status-icon { color: #eab308; }
.status--eta .status-badge { background: rgba(234,179,8,.15); color: #fde68a; border: 1px solid rgba(234,179,8,.35); }

.status--down .status-icon { color: #ef4444; }
.status--down .status-badge { background: rgba(239,68,68,.15); color: #fecaca; border: 1px solid rgba(239,68,68,.35); }

/* Steps */
.steps { display: flex; flex-direction: column; gap: var(--space-4); }
.step-card {
    background: linear-gradient(180deg, var(--panel), var(--panel-alt));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow);
    position: relative;
}
.step-header { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.step-number { width: 26px; height: 26px; border-radius: 6px; background: rgba(59,130,246,.12); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-12); }
.step-icon { width: 18px; height: 18px; color: var(--muted); opacity: .9; }
.step-card h3 { font-size: var(--fs-13); color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: .2px; }

.step-content { margin-top: var(--space-2); }
.step-content p { color: var(--muted); font-size: var(--fs-14); margin-bottom: var(--space-2); }

.requirements, .instructions { list-style: none; margin: var(--space-2) 0 var(--space-3); }
.requirements li, .instructions li { color: #dbe1ea; font-size: var(--fs-14); display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .5rem; }
.li-icon { width: 16px; height: 16px; color: #9ec1ff; flex: 0 0 16px; margin-top: 3px; }

.important-note { border: 1px solid rgba(245,158,11,.35); background: rgba(245,158,11,.08); color: #fde68a; padding: .75rem; border-radius: 8px; font-size: var(--fs-13); }
.important-note strong { color: var(--yellow); display: inline-flex; align-items: center; gap: .4rem; margin-right: .35rem; }
.important-note .note-icon { width: 16px; height: 16px; color: #f59e0b; flex: 0 0 16px; }

/* Buttons */
.btn { display: inline-block; border: 1px solid transparent; padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: var(--fs-14); text-decoration: none; transition: filter .2s ease, box-shadow .2s ease, transform .05s ease; }
.btn:hover { filter: brightness(1.06); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 6px 16px rgba(59,130,246,.25); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(59,130,246,.35); }
.btn-dark { color: #ffffff; background: #1e3a8a; box-shadow: 0 6px 16px rgba(30,58,138,.35); }
.btn-dark:hover { box-shadow: 0 8px 20px rgba(30,58,138,.5); }
.btn-light { color: #111827; background: #ffffff; border-color: rgba(255,255,255,0.12); box-shadow: 0 6px 16px rgba(255,255,255,.08); }
.btn-light:hover { filter: none; box-shadow: 0 8px 20px rgba(255,255,255,.15); }
.btn:active { transform: translateY(1px); }

/* Links */
.steps a:not(.btn) { color: var(--blue); }
.steps a:not(.btn):hover { text-decoration: underline; }

/* Icon inside button */
.btn svg { margin-right: .5rem; display: inline-block; vertical-align: -2px; color: #ffffff; }
.rtl .btn svg { margin-right: 0; margin-left: .5rem; }
/* Light button icon color override */
.btn-light svg { color: #111827; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: var(--space-4) 0; margin-top: var(--space-6); }
.footer p { text-align: center; color: var(--muter); font-size: 11px; }

/* RTL */
.rtl { direction: rtl; }
.rtl .requirements li, .rtl .instructions li { padding-left: 0; padding-right: 1.1rem; }
.rtl .requirements li::before, .rtl .instructions li::before { left: auto; right: 0; }

/* Responsive */
@media (max-width: 768px) {
    .main { padding: var(--space-5) 0; }
    .step-card { padding: var(--space-3); }
    .btn { width: 100%; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Focus */
.btn:focus, .language-switcher select:focus { outline: 2px solid rgba(59,130,246,.6); outline-offset: 2px; }

/* Loading */
.btn:disabled { opacity: .65; cursor: not-allowed; }

/* Print */
@media print { .header, .footer { display: none; } .step-card { box-shadow: none; border: 1px solid #d1d5db; } }

/* macOS-like window dots (top-right) */
.card-dots { position: absolute; top: 12px; right: 14px; display: flex; gap: 8px; }
.card-dots .dot { width: 12px; height: 12px; border-radius: 50%; opacity: .9; }
.card-dots .dot.red { background: #7f1d1d; }
.card-dots .dot.yellow { background: #78350f; }
.card-dots .dot.green { background: #14532d; }
.rtl .card-dots { right: auto; left: 14px; }
