/**
 * @file explore.css
 * @filepath css/explore.css
 * @version 1.0.0
 * @updated 2026-02-24 08:30:00 PM CDT
 * @author Greg Paskal
 * @company MissionWares®
 * 
 * @description Shared design system for MissionWares Explore platform.
 *              Tokens, typography, base styles, and reusable components.
 * 
 * @changeLog:
 * Date        Author          Version  Description
 * ----------  --------------  -------  --------------------------
 * 2026-02-24  Greg Paskal     1.0.0    Initial creation — Alpha Release
 *                                      - Design tokens (colors, spacing, radii)
 *                                      - Typography system (Cormorant Garamond + IBM Plex Sans)
 *                                      - Base reset and body styles
 *                                      - Reusable components: cards, badges, category pills
 *                                      - Stat counters, dividers, status indicators
 *                                      - Hebrew/Greek display classes
 *                                      - Animation keyframes (fadeUp, fadeIn, pulse)
 *                                      - Responsive breakpoints
 */
/* ═══ CSS Variables ═══════════════════════════════════════ */
:root {
    /* Backgrounds */
    --bg-deep: #0a0c10;
    --bg-surface: #12151c;
    --bg-surface-hover: #181c26;
    --bg-elevated: #1e2230;
    --bg-overlay: rgba(10, 12, 16, 0.85);

    /* Gold accent */
    --gold: #c8a44e;
    --gold-soft: rgba(200, 164, 78, 0.25);
    --gold-glow: rgba(200, 164, 78, 0.09);

    /* Text */
    --text-primary: #e8e4dc;
    --text-secondary: #9a9590;
    --text-dim: #5c5752;
    --text-inverse: #0a0c10;

    /* Accent */
    --accent-spirit: #4a7fb5;
    --accent-spirit-soft: rgba(74, 127, 181, 0.12);

    /* Aliases for backward compat */
    --bg-card: var(--bg-surface);
    --bg-card-hover: var(--bg-surface-hover);

    /* Category colors */
    --cat-gods-spirit: #5C6BC0;
    --cat-gods-spirit-person: #42A5F5;
    --cat-human-spirit: #66BB6A;
    --cat-evil-spirit: #EF5350;
    --cat-characterizing: #FFA726;
    --cat-departed: #78909C;
    --cat-realm-beings: #AB47BC;

    /* Borders */
    --border: rgba(255, 255, 255, 0.04);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(200, 164, 78, 0.2);

    /* Typography */
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'IBM Plex Sans', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', 'SF Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-med: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    /* Layout */
    --max-width: 900px;
    --max-width-wide: 1100px;
}

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

/* --- Base --- */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-deep);
    min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.25;
}

h1 { font-size: clamp(2.8rem, 7vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
h4 { font-size: 1rem; }

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--gold);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

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

.container--wide {
    max-width: var(--max-width-wide);
}

/* --- Section Labels --- */
.section-label {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: var(--space-lg);
}

/* --- Cards --- */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color var(--transition-med),
                background var(--transition-med);
}

.card:hover {
    border-color: var(--border-light);
    background: var(--bg-surface-hover);
}

/* --- Badges --- */
.badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.3em 0.7em;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    background: transparent;
}

.badge--gold {
    border-color: var(--border-gold);
    color: var(--gold);
}

.badge--public {
    border-color: rgba(102, 187, 106, 0.2);
    color: #66BB6A;
}

/* --- Category Pills --- */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.72rem;
    font-weight: 400;
    padding: 0.3em 0.65em;
    border-radius: 3px;
    border: 1px solid;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cat-pill[data-cat="gods_spirit"]          { color: var(--cat-gods-spirit); border-color: rgba(92, 107, 192, 0.3); }
.cat-pill[data-cat="gods_spirit_in_person"]{ color: var(--cat-gods-spirit-person); border-color: rgba(66, 165, 245, 0.3); }
.cat-pill[data-cat="human_spirit"]         { color: var(--cat-human-spirit); border-color: rgba(102, 187, 106, 0.3); }
.cat-pill[data-cat="evil_spirit"]          { color: var(--cat-evil-spirit); border-color: rgba(239, 83, 80, 0.3); }
.cat-pill[data-cat="characterizing_spirit"]{ color: var(--cat-characterizing); border-color: rgba(255, 167, 38, 0.3); }
.cat-pill[data-cat="departed_spirit"]      { color: var(--cat-departed); border-color: rgba(120, 144, 156, 0.3); }
.cat-pill[data-cat="spirit_realm_beings"]  { color: var(--cat-realm-beings); border-color: rgba(171, 71, 188, 0.3); }

/* --- Stat Counters --- */
.stat-group {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__number {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.stat__label {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}

/* --- Hebrew/Greek display --- */
.hebrew {
    font-size: 0.85em;
    color: var(--gold);
    opacity: 0.7;
    direction: rtl;
    unicode-bidi: bidi-override;
}

.greek {
    font-size: 0.85em;
    color: var(--gold);
    opacity: 0.7;
}

/* --- Dividers --- */
.divider {
    width: 60px;
    height: 1px;
    background: var(--gold-soft);
    margin: var(--space-xl) 0;
}

/* --- Status indicator --- */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.animate-in {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }
    .stat-group {
        gap: var(--space-md);
    }
}

/* --- Utility --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}