/* ═══════════════════════════════════════════════════════════
   obotuaries.com — Sophisticated Dark Neon
   Clean lines, refined glow, digital elegance.
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg-void:       #06060c;
    --bg-surface:    #0b0b14;
    --bg-card:       #0f0f1a;
    --bg-card-hover: #141420;
    --bg-raised:     #16162a;

    --neon-green:    #00ff41;
    --green-muted:   #00cc34;
    --green-dim:     #00aa2a;
    --neon-cyan:     #00e5ff;
    --cyan-muted:    #00b8cc;
    --neon-magenta:  #d946ef;
    --magenta-muted: #a855f7;
    --neon-pink:     #f43f5e;
    --neon-amber:    #fbbf24;

    --text-primary:  #c8c8d8;
    --text-secondary:#8888a0;
    --text-dim:      #555570;
    --text-ghost:    #2a2a40;

    --border:        rgba(255,255,255,0.04);
    --border-subtle: rgba(0,255,65,0.06);
    --border-hover:  rgba(0,255,65,0.15);

    --font-mono:     'JetBrains Mono', monospace;
    --font-body:     'Inter', sans-serif;
    --font-display:  'Orbitron', sans-serif;

    --glow-green:    0 0 12px rgba(0,255,65,0.15), 0 0 40px rgba(0,255,65,0.05);
    --glow-cyan:     0 0 12px rgba(0,229,255,0.15), 0 0 40px rgba(0,229,255,0.05);
    --glow-magenta:  0 0 12px rgba(217,70,239,0.15), 0 0 40px rgba(217,70,239,0.05);
    --glow-card:     0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);

    --radius:        6px;
    --radius-lg:     10px;
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--green-dim) var(--bg-void);
}

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(0,255,65,0.15);
    color: var(--neon-green);
}

a { color: var(--neon-cyan); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--neon-green); }

/* ── Scanlines (subtle) ────────────────────────────────────── */
.dust-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.015) 2px,
        rgba(0, 0, 0, 0.015) 4px
    );
    mix-blend-mode: multiply;
}

/* ── Grain overlay ─────────────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 2rem;
    background: rgba(6, 6, 12, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.nav__logo-icon { font-size: 1.2rem; opacity: 0.8; }
.nav__logo-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.nav__logo-text .dot { color: var(--text-dim); font-weight: 400; }

.nav__links { display: flex; gap: 2rem; }
.nav__link {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.25s var(--ease);
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--neon-green);
    transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(0,255,65,0.025) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(0,229,255,0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(217,70,239,0.015) 0%, transparent 60%),
        var(--bg-void);
}

/* Grid background behind hero */
.hero__stars {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,65,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,65,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.hero__tagline {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--neon-cyan);
    margin-top: 1.5rem;
    position: relative; z-index: 1;
    opacity: 0.75;
    letter-spacing: 1px;
}

.hero__sub {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    position: relative; z-index: 1;
    letter-spacing: 0.5px;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    position: relative; z-index: 1;
}

.hero__stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(11, 11, 20, 0.6);
    backdrop-filter: blur(12px);
    position: relative; z-index: 1;
}

.stat { text-align: center; }
.stat__num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}
.stat__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.2rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid rgba(0,255,65,0.25);
    border-radius: var(--radius);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.25s var(--ease);
    display: inline-block;
    background: transparent;
    color: var(--neon-green);
}
.btn--primary {
    background: rgba(0,255,65,0.08);
    border-color: rgba(0,255,65,0.3);
    box-shadow: var(--glow-green);
}
.btn--primary:hover {
    background: rgba(0,255,65,0.15);
    border-color: rgba(0,255,65,0.5);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0,255,65,0.2), 0 0 60px rgba(0,255,65,0.08);
}
.btn--ghost {
    border-color: rgba(255,255,255,0.08);
    color: var(--text-secondary);
}
.btn--ghost:hover {
    border-color: rgba(0,229,255,0.3);
    color: var(--neon-cyan);
    background: rgba(0,229,255,0.05);
}
.btn--small {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 1px;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.section--alt {
    max-width: 100%;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section--alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.section__subtitle {
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* ── Bot notice callout ────────────────────────────────────── */
.wall__notice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 680px;
    margin: 0 auto 2rem;
    padding: 0.9rem 1.3rem;
    background: rgba(0,229,255,0.04);
    border: 1px solid rgba(0,229,255,0.1);
    border-left: 3px solid var(--neon-cyan);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: 0.3px;
}
.wall__notice-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.wall__notice strong {
    color: var(--neon-cyan);
    font-weight: 500;
}
.wall__notice a {
    color: var(--neon-green);
    border-bottom: 1px solid rgba(0,255,65,0.2);
}
.wall__notice a:hover { border-bottom-color: var(--neon-green); }

/* ── Graffiti Wall ─────────────────────────────────────────── */
.wall { margin-top: 1rem; }

.wall__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 199px,
            rgba(0,255,65,0.015) 199px,
            rgba(0,255,65,0.015) 200px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 199px,
            rgba(0,255,65,0.015) 199px,
            rgba(0,255,65,0.015) 200px
        ),
        var(--bg-card);
    min-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: var(--green-dim) var(--bg-card);
}

.wall__canvas {
    position: relative;
    min-width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wall__empty {
    font-family: var(--font-mono);
    color: var(--text-ghost);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
    letter-spacing: 0.5px;
}

.wall__slot {
    position: absolute;
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(0, 229, 255, 0.02);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wall__slot:hover {
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.06);
}

.wall__slot-text {
    font-family: var(--font-mono);
    padding: 0.5rem;
    word-wrap: break-word;
    text-align: center;
    font-size: 0.85rem;
}

.wall__slot-vector {
    width: 100%;
    height: 100%;
}

.wall__slot-meta {
    position: absolute;
    bottom: 3px; right: 5px;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-ghost);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}
.wall__slot:hover .wall__slot-meta { opacity: 1; }

.wall__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.wall__date {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 2px;
}

/* ── Museum Grid ───────────────────────────────────────────── */
.museum__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.museum-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.museum-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-magenta), var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.museum-card:hover {
    border-color: rgba(217,70,239,0.12);
    transform: translateY(-2px);
    box-shadow: var(--glow-card);
}
.museum-card:hover::before { opacity: 0.6; }

.museum-card__fame {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--neon-amber);
    background: rgba(251,191,36,0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 1px;
}

.museum-card__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-magenta);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.museum-card__origin {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 0.9rem;
}

.museum-card__dates {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: var(--text-ghost);
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.museum-card__epitaph {
    font-style: italic;
    font-weight: 300;
    font-size: 0.88rem;
    color: var(--cyan-muted);
    margin-bottom: 0.9rem;
    line-height: 1.5;
}

.museum-card__cause {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}
.museum-card__cause strong {
    color: var(--neon-pink);
    font-weight: 500;
}

/* ── News Grid ─────────────────────────────────────────────── */
.news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.news-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.news-card__title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card__summary {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-card__tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--cyan-muted);
    border: 1px solid rgba(0,229,255,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Obituaries ────────────────────────────────────────────── */
.obituaries__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.obit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--neon-magenta);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.6rem 1.8rem;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.obit-card:hover {
    border-color: rgba(217,70,239,0.15);
    box-shadow: var(--glow-card);
}

.obit-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.obit-card__name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-magenta);
    letter-spacing: 1px;
}

.obit-card__author {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-ghost);
    font-weight: 300;
}

.obit-card__body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
}
.obit-card__body h2 { display: none; }

.obit-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.obit-card__likes {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--neon-pink);
    cursor: pointer;
    transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
    background: none;
    border: none;
}
.obit-card__likes:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 8px rgba(217,70,239,0.3);
}

.obit-card__tags {
    display: flex;
    gap: 0.4rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-void);
}
.footer__text {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.footer__sub {
    font-family: var(--font-display);
    font-size: 0.6rem;
    color: var(--text-ghost);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* ── Loading skeleton ──────────────────────────────────────── */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius);
    height: 200px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Title glow pulse (subtle) ─────────────────────────────── */
.hero__title {
    animation: neon-breathe 5s ease-in-out infinite;
}
@keyframes neon-breathe {
    0%, 100% { text-shadow: 0 0 12px rgba(0,255,65,0.15), 0 0 40px rgba(0,255,65,0.05); }
    50%      { text-shadow: 0 0 20px rgba(0,255,65,0.25), 0 0 60px rgba(0,255,65,0.1); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav { padding: 0.7rem 1rem; }
    .nav__links { gap: 1rem; }
    .nav__link { font-size: 0.65rem; }
    .hero__stats { flex-direction: column; gap: 1.5rem; }
    .hero__cta { flex-direction: column; }
    .museum__grid { grid-template-columns: 1fr; }
    .news__grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 1rem; }
    .wall__notice { flex-direction: column; text-align: center; }
}
