/* ============================================
   PERSONAL BRANDING - DESIGN SYSTEM
   "Tech Leader in Sneakers" - Modern & Bold
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Dark Theme Default
   ============================================ */
:root {
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Dark Theme Colors (Default) */
    --bg-primary: #0a0a0a;
    --bg-surface: #1a1a1a;
    --bg-elevated: #2a2a2a;
    --bg-hover: #333333;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Accent Colors */
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-subtle: rgba(59, 130, 246, 0.12);
    --accent-emerald: #10b981;
    --accent-emerald-subtle: rgba(16, 185, 129, 0.12);

    /* Semantic Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Borders & Shadows */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Layout */
    --container: 1140px;
    --container-narrow: 860px;
    --measure: 72ch;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: clamp(1.75rem, 2.5vw, 2rem);
    --text-4xl: clamp(2rem, 3vw, 2.5rem);
    --text-5xl: clamp(2.5rem, 4vw, 3.25rem);
    --text-hero: clamp(3rem, 5vw, 4rem);

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-normal: 1.6;
    --leading-relaxed: 1.7;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================
   BASE RESET & ELEMENTS
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon svg {
    display: block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--accent-subtle);
    color: var(--text-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
    font-weight: 600;
}

h6 {
    font-size: var(--text-lg);
    font-weight: 600;
}

p {
    margin: 0;
}

.lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.small {
    font-size: var(--text-sm);
}

.muted {
    color: var(--text-secondary);
}

.subtle {
    color: var(--text-muted);
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: min(100% - var(--space-5) * 2, var(--container));
    margin-inline: auto;
}

.container-narrow {
    width: min(100% - var(--space-5) * 2, var(--container-narrow));
    margin-inline: auto;
}

.measure {
    max-width: var(--measure);
}

.section {
    padding: var(--space-9) 0;
}

.section-tight {
    padding: var(--space-7) 0;
}

.section-hero {
    padding: var(--space-8) 0 var(--space-9);
}

/* Stack (vertical spacing) */
.stack > * + * {
    margin-top: var(--space-5);
}

.stack-sm > * + * {
    margin-top: var(--space-3);
}

.stack-lg > * + * {
    margin-top: var(--space-7);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-5);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.text-center {
    text-align: center;
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-4) 0;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.brand-subtitle {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.nav-links a {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: var(--space-4);
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: var(--space-3) var(--space-4);
    }

    .menu-toggle {
        display: block;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-8) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr 360px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: var(--space-7) 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .portrait {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }
}

.hero-content {
    max-width: var(--measure);
}

.hero-statement {
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.hero-statement .line {
    display: block;
}

.hero-statement .highlight {
    color: var(--accent);
}

.hero-title {
    margin-bottom: var(--space-3);
}

.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

.hero-intro {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.hero-meta {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-meta span:first-child::before {
    display: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

@media (max-width: 900px) {
    .hero-actions {
        justify-content: center;
    }
}

.portrait {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

.portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.portrait img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
    filter: grayscale(100%) contrast(1.1);
}

.portrait-placeholder {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.card-flat {
    background: transparent;
    border: none;
    padding: 0;
}

.card-flat:hover {
    transform: none;
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.card-header {
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.card-body {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.card-footer {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

/* Pillar Card (Three Pillars) */
.pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.pillar-icon .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pillar-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.pillar-tagline {
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.pillar-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    flex-grow: 1;
}

.pillar-keywords {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
}

.btn-danger {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-ghost.btn-danger {
    background: transparent;
    color: var(--error);
    border-color: transparent;
}

.btn-ghost.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* ============================================
   BADGES & PILLS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: var(--accent-subtle);
    color: var(--accent);
}

.badge-featured {
    background: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============================================
   KICKER (Section Label)
   ============================================ */
.kicker {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: var(--space-3);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    display: grid;
    gap: var(--space-5);
    padding-left: var(--space-7);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-strong);
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    padding: var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.timeline-item:hover {
    border-color: var(--border-strong);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-7) + 6px);
    top: var(--space-6);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-item:first-child::before {
    background: var(--accent-emerald);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 10px var(--accent-emerald);
}

.timeline-year {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-2);
    font-family: var(--font-mono);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.timeline-company {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.timeline-tagline {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-3);
}

.timeline-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ============================================
   TECH STACK - COMPACT
   ============================================ */
.section--compact {
    padding: var(--space-6) 0;
}

.tech-heading {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.tech-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.tech-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
}

.tech-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    min-width: 90px;
    flex-shrink: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-tag {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.tech-tag--featured {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 500;
}

.tech-years {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: var(--space-1);
}

@media (max-width: 640px) {
    .tech-row {
        flex-direction: column;
        gap: var(--space-2);
    }

    .tech-label {
        min-width: auto;
    }
}

/* ============================================
   ARTICLE CARD
   ============================================ */
.article-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.article-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.article-card.featured {
    border-left: 3px solid var(--accent);
}

.article-magazine {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.article-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
}

.article-title a {
    color: var(--text-primary);
}

.article-title a:hover {
    color: var(--accent);
}

.article-date {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.article-summary {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    flex-grow: 1;
}

.article-link {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ============================================
   GITHUB REPO CARD
   ============================================ */
.repo-card {
    padding: var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.repo-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.repo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.repo-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.repo-name::before {
    content: '';
    font-size: var(--text-xl);
}

.repo-stars {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.repo-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.repo-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.repo-language {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.repo-language::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #178600; /* C# green */
}

/* ============================================
   FUN FACTS BOX
   ============================================ */
.fun-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.fun-fact {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.fun-fact-emoji {
    font-size: 1.5rem;
}

.fun-fact-content {
    font-size: var(--text-sm);
}

.fun-fact-value {
    font-weight: 700;
    color: var(--text-primary);
}

.fun-fact-label {
    color: var(--text-muted);
}

/* ============================================
   VIDEO EMBED
   ============================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-surface);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
    transform: translateY(-1px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   CREDENTIALS
   ============================================ */
.credential-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.credential-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.credential-content {
    flex-grow: 1;
}

.credential-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.credential-issuer {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.credential-year {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-lg);
}

.contact-item-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.input,
select,
textarea {
    font-family: var(--font-body);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    width: 100%;
}

.input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-8) 0;
    background: var(--bg-surface);
}

.footer-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.footer-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.footer-meta a {
    color: var(--text-muted);
}

.footer-meta a:hover {
    color: var(--accent);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-switch button {
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-switch button:hover {
    background: var(--bg-elevated);
}

.lang-switch button.active {
    background: var(--accent);
    color: white;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-5);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================
   DIVIDERS
   ============================================ */
.hr {
    height: 1px;
    border: 0;
    background: var(--border);
    margin: var(--space-6) 0;
}

.hr-strong {
    background: var(--border-strong);
}

/* ============================================
   SEO & ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: var(--space-3) var(--space-5);
    background: var(--accent);
    color: white;
    font-weight: 600;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .nav-actions,
    .btn,
    .filter-bar,
    .lang-switch {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 11pt;
    }

    .card,
    .pillar-card,
    .article-card,
    .repo-card,
    .timeline-item {
        box-shadow: none;
        border-color: #ddd;
        break-inside: avoid;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 9pt;
        color: #666;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease both;
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-slow) ease both;
}

.animate-slide-in {
    animation: slideIn var(--transition) ease both;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }

/* ============================================
   BLAZOR SPECIFIC
   ============================================ */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: var(--error);
    color: white;
    text-align: center;
    z-index: 1000;
}

#blazor-error-ui.show {
    display: block;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success);
}

.invalid {
    outline: 1px solid var(--error);
}

.validation-message {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ============================================
   ADMIN STYLES (Keep existing patterns)
   ============================================ */
.admin-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
}

.admin-nav {
    display: flex;
    gap: var(--space-2);
}

.admin-nav a {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.admin-nav a:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-decoration: none;
}

.admin-nav a.active {
    background: var(--accent);
    color: white;
}

.admin-content {
    padding: var(--space-6) 0;
}

.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.admin-table tr:hover td {
    background: var(--bg-elevated);
}

.admin-actions {
    display: flex;
    gap: var(--space-2);
}

/* ============================================
   OFF THE CLOCK SECTION (Hobbies - Photo First)
   ============================================ */
.off-the-clock {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

@media (max-width: 768px) {
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
}

.hobby-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.hobby-card:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
    text-decoration: none;
}

.hobby-card--featured {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .hobby-card--featured {
        grid-column: span 1;
    }
}

/* Gallery (Hero + Thumbnails) */
.hobby-gallery {
    display: flex;
    flex-direction: column;
}

.hobby-gallery__hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elevated);
}

.hobby-gallery__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.hobby-card:hover .hobby-gallery__hero img {
    transform: scale(1.02);
}

.hobby-gallery__thumbs {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-elevated);
    overflow-x: auto;
}

.hobby-gallery__thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: all var(--transition-fast);
}

.hobby-gallery__thumb:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.hobby-gallery__thumb.active {
    border-color: #f59e0b;
}

.hobby-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Single Image Card */
.hobby-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-elevated);
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.hobby-card:hover .hobby-image img {
    transform: scale(1.02);
}

/* Icon Placeholder */
.hobby-icon {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    font-size: 4rem;
}

.hobby-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Card Content */
.hobby-content {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hobby-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.hobby-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
    flex: 1;
}

.hobby-link {
    font-size: var(--text-sm);
    color: #f59e0b;
    font-weight: 500;
    margin-top: auto;
}

a.hobby-card:hover .hobby-link {
    text-decoration: underline;
}

/* Legacy support for BeyondTheCodeSection - keep for backward compatibility */
.beyond-the-code {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

@media (max-width: 768px) {
    .lifestyle-grid {
        grid-template-columns: 1fr;
    }
}

.lifestyle-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
    text-align: center;
    transition: all var(--transition);
}

.lifestyle-card.clickable {
    cursor: pointer;
}

.lifestyle-card:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.lifestyle-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.lifestyle-image {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f59e0b;
}

.lifestyle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lifestyle-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.lifestyle-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
}

.lifestyle-link {
    font-size: var(--text-sm);
    color: #f59e0b;
    font-weight: 500;
}

a.lifestyle-card {
    text-decoration: none;
    color: inherit;
}

a.lifestyle-card:hover {
    text-decoration: none;
}

/* ============================================
   DOCUMENT DOWNLOAD SECTION
   ============================================ */
.document-section {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.document-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.document-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.document-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.document-card.document-request {
    border-style: dashed;
}

.document-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.document-desc {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.document-action {
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal-content,
.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-content h3,
.modal h3 {
    margin-bottom: var(--space-2);
}

.modal-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-5);
}

/* ============================================
   FORM STYLES (for modal)
   ============================================ */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: var(--space-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-8);
}

.form-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-5);
}

.success-message {
    text-align: center;
    padding: var(--space-6);
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.validation-message {
    color: var(--error);
    font-size: var(--text-xs);
    margin-top: var(--space-1);
}

/* ============================================
   ADMIN - DOCUMENT REQUESTS
   ============================================ */
.header-actions {
    display: flex;
    gap: var(--space-2);
}

.header-actions .btn.active {
    background: var(--accent);
    color: white;
}

.table tr.fulfilled {
    opacity: 0.6;
}

.email-link {
    color: var(--accent);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-fulfilled {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

/* Admin checkbox styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-base);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Admin gallery images */
.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.gallery-image {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-image .btn {
    position: absolute;
    top: var(--space-1);
    right: var(--space-1);
    padding: var(--space-1);
    min-width: auto;
    font-size: var(--text-xs);
}

.pill-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
}

.pill-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.pill-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.pill-gray {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.message-content {
    background: var(--bg-elevated);
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    margin: var(--space-4) 0;
}

/* Admin image preview */
.image-preview {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.input-file {
    padding: var(--space-3);
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.input-file:hover {
    border-color: var(--accent);
}

.external-link {
    color: var(--accent);
    font-size: var(--text-sm);
}

/* ============================================
   ADMIN LAYOUT (Sidebar + Main Content)
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-brand {
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.admin-brand a {
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--text-primary);
    text-decoration: none;
}

.admin-brand a:hover {
    color: var(--accent);
}

.admin-badge {
    background: var(--accent);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-sidebar nav {
    flex: 1;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.admin-nav-link:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-decoration: none;
}

.admin-nav-link.active {
    background: var(--accent);
    color: white;
}

.admin-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-nav-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.admin-logout-btn {
    color: var(--text-muted);
}

.admin-logout-btn:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.admin-main {
    flex: 1;
    min-width: 0;
    background: var(--bg-primary);
    padding: var(--space-6);
    overflow-x: hidden;
}

/* ============================================
   ADMIN PAGE & FORM STYLES
   ============================================ */
.admin-page {
    max-width: 900px;
    margin: 0 auto;
}

.admin-page-header {
    margin-bottom: var(--space-6);
}

.admin-page-header h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-top: var(--space-2);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
}

.form-section h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.input {
    width: 100%;
    padding: var(--space-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
}

.input::placeholder {
    color: var(--text-muted);
}

.input.textarea {
    resize: vertical;
    min-height: 100px;
}

.hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    color: var(--error);
    font-size: var(--text-sm);
}

.validation-summary ul {
    margin: 0;
    padding-left: var(--space-4);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin responsive adjustments */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 220px;
    }

    .admin-main {
        padding: var(--space-4);
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: var(--space-2);
    }

    .admin-nav-link {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .admin-nav-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   ADMIN - DRAG-AND-DROP REORDER
   ============================================ */
.drag-handle {
    width: 28px;
    color: var(--text-muted);
    cursor: grab;
    text-align: center;
    padding: 0 var(--space-2);
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle-col {
    width: 28px;
    padding: 0;
}

tr.dragging {
    opacity: 0.4;
}

tr.dragging td {
    background: var(--bg-elevated);
}

/* ============================================
   ADMIN - TABLE & TABLE WRAPPER
   ============================================ */
.table-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.table tbody td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover td {
    background: var(--bg-elevated);
}

.title-cell .title {
    display: block;
    font-weight: 500;
}

.title-cell .subtitle {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

.actions-cell {
    white-space: nowrap;
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.icon-preview {
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: var(--space-1) var(--space-2);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.muted {
    color: var(--text-muted);
}

/* Loading and empty state */
.loading {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    display: block;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    margin-bottom: var(--space-4);
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.admin-page-header h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: var(--space-1) 0 var(--space-1);
}

.admin-page-header p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}


/* ============================================================
   HOBBY DETAIL GALLERY PAGE
   ============================================================ */

/* ── Hero Band ─────────────────────────────── */

.hobby-detail-hero {
    position: relative;
    padding: var(--space-8) 0 var(--space-7);
    background: linear-gradient(
        160deg,
        var(--bg-primary) 0%,
        rgba(245, 158, 11, 0.06) 60%,
        rgba(245, 158, 11, 0.02) 100%
    );
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hobby-detail-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hobby-detail-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #f59e0b 35%, rgba(245, 158, 11, 0.4) 60%, transparent 100%);
}

.hobby-detail-hero__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-7);
}

.hobby-detail-hero__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
}

.hobby-detail-hero__back:hover {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
    text-decoration: none;
}

.hobby-detail-hero__back:hover svg {
    transform: translateX(-3px);
}

.hobby-detail-hero__back svg {
    transition: transform var(--transition-fast);
}

.hobby-detail-hero__external {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
    padding: var(--space-2) var(--space-4);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.08);
    transition: all var(--transition-fast);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hobby-detail-hero__external:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.6);
    text-decoration: none;
    transform: translateY(-1px);
}

.hobby-detail-hero__body {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
}

.hobby-detail-hero__icon {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-lg);
    color: #f59e0b;
    box-shadow: 0 0 48px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeInUp var(--transition-slow) ease both;
}

.hobby-detail-hero__text {
    flex: 1;
    min-width: 0;
}

.hobby-detail-hero__kicker {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f59e0b;
    margin-bottom: var(--space-3);
    animation: fadeInUp var(--transition-slow) ease 50ms both;
}

.hobby-detail-hero__title {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    animation: fadeInUp var(--transition-slow) ease 100ms both;
}

.hobby-detail-hero__desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 64ch;
    animation: fadeInUp var(--transition-slow) ease 150ms both;
}

.hobby-detail-hero__meta {
    margin-top: var(--space-5);
    animation: fadeInUp var(--transition-slow) ease 200ms both;
}

.hobby-detail-hero__count {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.hobby-detail-hero__count::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hobby-detail-hero {
        padding: var(--space-6) 0;
    }

    .hobby-detail-hero__nav {
        margin-bottom: var(--space-5);
    }

    .hobby-detail-hero__body {
        flex-direction: column;
        gap: var(--space-4);
    }

    .hobby-detail-hero__icon {
        width: 72px;
        height: 72px;
    }

    .hobby-detail-hero__title {
        font-size: var(--text-3xl);
    }

    .hobby-detail-hero__desc {
        font-size: var(--text-base);
    }
}


/* ── Gallery Section ────────────────────────── */

.hobby-gallery-section {
    padding: var(--space-8) 0 var(--space-9);
    background: var(--bg-primary);
}

.hobby-masonry {
    column-count: 3;
    column-gap: var(--space-4);
    animation: fadeIn 400ms ease both;
}

@media (max-width: 1024px) {
    .hobby-masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .hobby-masonry {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: var(--space-4);
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    display: block;
    animation: fadeInUp 400ms ease both;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    border-color: rgba(245, 158, 11, 0.35);
}

.gallery-item:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
}

.gallery-item--image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow), filter var(--transition);
    filter: brightness(0.95);
}

.gallery-item--image:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
    background: rgba(0, 0, 0, 0.22);
}

.gallery-item__overlay-icon {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity var(--transition), transform var(--transition);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.gallery-item:hover .gallery-item__overlay-icon {
    opacity: 1;
    transform: scale(1);
}

.gallery-item__accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, 0.3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.gallery-item:hover .gallery-item__accent {
    transform: scaleX(1);
}

/* ── Video thumbnail items ──────────────────── */

.gallery-item--video-thumb .gallery-item__thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #000;
}

.gallery-item--video-thumb .gallery-item__thumb-wrap img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.75);
    transition: filter var(--transition), transform var(--transition-slow);
}

.gallery-item--video-thumb:hover .gallery-item__thumb-wrap img {
    filter: brightness(0.55);
    transform: scale(1.03);
}

.gallery-item__vimeo-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}

.gallery-item__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-item__play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.5);
}

.gallery-item--video-thumb:hover .gallery-item__play-btn {
    transform: scale(1.12);
    background: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.7);
}

.gallery-item__play-btn svg {
    margin-left: 3px;
}

.gallery-item__type-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-sm);
    background: rgba(10, 10, 10, 0.8);
    color: #f59e0b;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ── Native video items ─────────────────────── */

.gallery-item--native-video {
    cursor: default;
}

.gallery-item--native-video:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.gallery-item--native-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Empty state ─────────────────────────────── */

.hobby-gallery-empty {
    text-align: center;
    padding: var(--space-9) var(--space-5);
    color: var(--text-muted);
}

.hobby-gallery-empty__icon {
    margin-bottom: var(--space-4);
    opacity: 0.25;
}

.hobby-gallery-empty__text {
    font-size: var(--text-lg);
}


/* ── Lightbox ─────────────────────────────────── */

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 200ms ease both;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.lightbox__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 1;
}

.lightbox__counter {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.lightbox__close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--space-7) 80px;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}

.lightbox__video-wrap {
    width: min(90vw, 960px);
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.lightbox__arrow:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: #f59e0b;
    transform: translateY(-50%) scale(1.05);
}

.lightbox__arrow--prev { left: var(--space-5); }
.lightbox__arrow--next { right: var(--space-5); }

.lightbox__hint {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
    opacity: 0.5;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 640px) {
    .lightbox__stage {
        padding: 60px var(--space-3) 60px;
    }

    .lightbox__arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox__arrow--prev { left: var(--space-2); }
    .lightbox__arrow--next { right: var(--space-2); }

    .lightbox__img {
        max-width: 100vw;
        max-height: 80vh;
        border-radius: var(--radius-sm);
    }

    .lightbox__video-wrap {
        width: 100vw;
    }
}

/* ── Lightbox animations ─────────────────────── */

@keyframes lightboxSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes lightboxSlideInReverse {
    from {
        opacity: 0;
        transform: translateX(-24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.lightbox__img.slide-in-next {
    animation: lightboxSlideIn 200ms ease both;
}

.lightbox__img.slide-in-prev {
    animation: lightboxSlideInReverse 200ms ease both;
}


/* ── Admin: video URL thumbnail preview ──────── */

.video-url-thumb {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: block;
}

.video-file-badge {
    display: inline-block;
    padding: 2px var(--space-2);
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
