/* ==========================================================================
   ReOrder Theme — Design System
   Spec: docs/superpowers/specs/2026-03-19-reorderdj-website-design.md §2
   ========================================================================== */

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

/* ---------- Design Tokens ---------- */
:root {
    /* Backgrounds */
    --bg-primary: #08080a;
    --bg-card: #111114;
    --bg-card-2: #1a1a1f;
    --bg-hover: #222228;

    /* Text */
    --text-primary: #f0f0f2;
    --text-dim: #8a8a96;
    --text-muted: #55555f;

    /* Accent — Violet / Iris */
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-glow: rgba(139, 92, 246, 0.15);

    /* UI */
    --border: #1e1e24;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 30px;

    /* Typography */
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Syne', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --container-padding: 24px;
    --section-padding: 80px;
    --grid-gap: 20px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-btn: 0.25s ease;
}

/* ---------- Base Elements ---------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Typography ---------- */
.reo-display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 72px;
    letter-spacing: -2px;
    line-height: 1.1;
}

h1, .reo-h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

h2, .reo-h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -1px;
    line-height: 1.2;
}

h3, .reo-h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.reo-body-sm {
    font-size: 14px;
    font-weight: 500;
}

.reo-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ---------- Layout ---------- */
.reo-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.reo-section {
    padding: var(--section-padding) 0;
}

.reo-section-header {
    margin-bottom: 40px;
}

.reo-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.reo-section-sub {
    color: var(--text-dim);
    font-size: 16px;
    max-width: 600px;
}

/* ---------- Grid ---------- */
.reo-grid {
    display: grid;
    gap: var(--grid-gap);
}

.reo-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.reo-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ---------- Buttons ---------- */
.reo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition-btn);
    text-decoration: none;
    line-height: 1;
}

.reo-btn--primary {
    background: var(--accent);
    color: #fff;
}

.reo-btn--primary:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-2px);
}

.reo-btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.reo-btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.reo-btn--sm {
    padding: 8px 18px;
    font-size: 13px;
}

.reo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Cards ---------- */
.reo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.reo-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.reo-card__body {
    padding: 20px;
}

/* ---------- Badges ---------- */
.reo-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    background: var(--accent-glow);
    color: var(--accent-light);
}

/* ---------- Page Hero ---------- */
.reo-page-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.reo-page-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.reo-page-hero__desc {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Empty State ---------- */
.reo-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-dim);
}

.reo-empty__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.reo-empty__text {
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ---------- Skeleton Loading ---------- */
.reo-skeleton {
    background: var(--bg-card);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.reo-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--bg-hover) 50%,
        transparent 100%
    );
    animation: reo-shimmer 1.5s infinite;
}

@keyframes reo-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---------- Skip Link (Accessibility) ---------- */
.reo-skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.reo-skip-link:focus {
    top: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }

    .reo-display { font-size: 48px; }
    h1, .reo-h1 { font-size: 36px; }
    h2, .reo-h2 { font-size: 28px; }

    .reo-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .reo-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
        --container-padding: 16px;
    }

    .reo-display { font-size: 36px; letter-spacing: -1px; }
    h1, .reo-h1 { font-size: 28px; }
    h2, .reo-h2 { font-size: 24px; }

    .reo-grid--3,
    .reo-grid--4 { grid-template-columns: 1fr; }

    .reo-page-hero { padding: 100px 0 40px; }
    .reo-page-hero__title { font-size: 36px; }
}

@media (max-width: 480px) {
    .reo-display { font-size: 28px; }
    h1, .reo-h1 { font-size: 24px; }
}
