/* ============================================
   Frost Arcanum — Main Stylesheet
   Dark navy · Fuchsia · Indigo editorial theme
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors — Deep navy + fuchsia/indigo palette */
    --color-bg: #07080f;
    --color-bg-secondary: #0c0d1a;
    --color-bg-tertiary: #13152a;
    --color-bg-card: #0f1020;
    --color-bg-card-hover: #161830;

    --color-text: #f0f0ff;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #4a5568;

    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-dark: #2563eb;

    --color-gradient-start: #3b82f6;
    --color-gradient-end: #06b6d4;

    --color-border: rgba(6, 182, 212, 0.12);
    --color-border-hover: rgba(59, 130, 246, 0.28);

    /* Navbar backgrounds */
    --color-navbar-base: rgba(7, 8, 15, 0.5);
    --color-navbar-scrolled: rgba(7, 8, 15, 0.95);
    --color-nav-mobile: rgba(7, 8, 15, 0.99);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

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

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
}

/* ---------- Light Mode ---------- */
html[data-theme="light"] {
    --color-bg: #fdfcff;
    --color-bg-secondary: #f5f3ff;
    --color-bg-tertiary: #ede9fe;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #faf8ff;

    --color-text: #0f0820;
    --color-text-secondary: #3b3260;
    --color-text-muted: #6b6080;

    --color-border: rgba(29, 78, 216, 0.1);
    --color-border-hover: rgba(29, 78, 216, 0.22);

    --color-navbar-base: rgba(253, 252, 255, 0.5);
    --color-navbar-scrolled: rgba(253, 252, 255, 0.95);
    --color-nav-mobile: rgba(253, 252, 255, 0.99);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.1);
}


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

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-gradient-end);
}

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

::selection {
    background: var(--color-accent);
    color: #fff;
}


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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50.1% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.65rem 0;
    transition: all var(--transition-base);
    background: var(--color-navbar-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background: var(--color-navbar-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-xl);
}

.nav-logo {
    text-decoration: none;
}

.logo-short { display: none; }

.logo-frost {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-xl);
    margin-left: auto;
}

.nav-link {
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    transition: width var(--transition-base);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

/* Nav CTA button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

html[data-theme="light"] .nav-cta {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .nav-cta:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--color-text);
    color: var(--color-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--color-text);
    border-color: var(--color-border-hover);
    background: var(--color-bg-card);
}

.theme-icon {
    display: none;
    width: 16px;
    height: 16px;
}

html[data-theme="dark"] .theme-icon--sun { display: block; }
html[data-theme="light"] .theme-icon--moon { display: block; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: left center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg); }


/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% -5%, rgba(59, 130, 246, 0.18) 0%, transparent 65%),
        linear-gradient(180deg, #07080f 0%, #130825 45%, #07080f 100%);
}

html[data-theme="light"] .hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% -5%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #fdfcff 0%, #f5f3ff 100%);
}

/* Dot grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(6, 182, 212, 0.3) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.18;
    pointer-events: none;
}

html[data-theme="light"] .hero::before {
    background-image: radial-gradient(circle, rgba(29, 78, 216, 0.25) 1px, transparent 1px);
    opacity: 0.12;
}

/* Split layout container */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Text side */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    font-weight: 900;
    line-height: 1.04;
    color: #fff;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

html[data-theme="light"] .hero-title {
    color: var(--color-text);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 46ch;
    margin-bottom: var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap;
}

/* Legacy hero classes (kept for non-home pages that use post-hero) */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--space-xl);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    margin: var(--space-xl) auto 0;
    border-radius: 2px;
}

/* Visual orb side */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero-orb--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(6, 182, 212, 0.2) 50%, transparent 75%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 9s;
}

.hero-orb--2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.65) 0%, transparent 70%);
    bottom: 12%;
    left: 5%;
    animation-duration: 6s;
    animation-direction: reverse;
}

.hero-orb--3 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
    top: 8%;
    right: 8%;
    animation-duration: 7s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.65rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    color: #fff;
}

html[data-theme="light"] .btn-outline {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .btn-outline:hover {
    border-color: var(--color-text);
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent-light), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}


/* ---------- Section Layout ---------- */
.posts-section {
    padding: var(--space-4xl) 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}


/* ---------- Posts Grid ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.posts-list .post-card {
    display: flex;
    flex-direction: row;
    height: 160px;
}

.posts-list .post-card-image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.posts-list .post-card-body {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.posts-list .post-card-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.posts-list .post-card-excerpt {
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.posts-list .post-card-tags,
.posts-list .post-card-link {
    display: none;
}

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--color-border-hover);
}

.post-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(7, 8, 15, 0.7));
    transition: opacity var(--transition-base);
}

.post-card-image--placeholder {
    background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-bg-secondary));
}

.placeholder-pattern {
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.post-card-body {
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.meta-separator {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.post-card-author {
    color: var(--color-accent-light);
    font-weight: 500;
    white-space: nowrap;
}

.post-card-author:hover {
    color: var(--color-gradient-end);
}

.post-card-title {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-card-title a:hover {
    color: var(--color-accent-light);
}

.post-card-excerpt {
    font-size: 0.925rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-accent-light);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.tag--light {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--color-accent-light);
    letter-spacing: 0.02em;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.post-card-link:hover {
    gap: 10px;
    color: var(--color-gradient-end);
}


/* ---------- Pagination ---------- */
.pagination {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
}

.step-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.pagination-link,
.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    font-size: 0.85rem;
}

.pagination-link {
    color: var(--color-accent-light);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.pagination-link:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    color: var(--color-gradient-end);
}

.pagination-link--disabled {
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.current {
    color: var(--color-text-secondary);
}


/* ---------- Post Detail Hero ---------- */
.post-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.post-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 8, 15, 0.3) 0%,
        rgba(7, 8, 15, 0.65) 50%,
        rgba(7, 8, 15, 0.97) 100%
    );
}

.post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
}

.post-hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.post-hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: var(--space-xl);
}

.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.post-hero-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-hero-author:hover {
    color: var(--color-accent-light);
}

html[data-theme="light"] .post-hero-meta { color: rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .post-hero-author { color: rgba(255, 255, 255, 0.9); }
html[data-theme="light"] .post-hero-author:hover { color: var(--color-accent-light); }
html[data-theme="light"] .author-hero-about { color: rgba(255, 255, 255, 0.8); }

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}


/* ---------- Post Content ---------- */
.post-content-section {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.post-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.post-body .lead {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    font-style: italic;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-lg);
}

.post-body p {
    margin-bottom: var(--space-lg);
}

.post-body ul,
.post-body ol {
    margin: var(--space-sm) 0 var(--space-lg) 0;
    padding-left: 1.5em;
}

.post-body p + ul,
.post-body p + ol {
    margin-top: calc(var(--space-sm) - var(--space-lg));
}

.post-body li {
    margin-bottom: 0.35em;
}

.post-body li p {
    margin-bottom: 0;
}

.post-body li:last-child {
    margin-bottom: 0;
}

.inline-image-container {
    margin: var(--space-2xl) 0;
    text-align: center;
}

.inline-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

.post-body p:first-child::first-letter {
    font-family: var(--font-serif);
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: var(--color-accent-light);
    font-weight: 700;
}


/* ---------- Gallery ---------- */
.post-gallery {
    margin-top: var(--space-3xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.gallery-title {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.gallery-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--color-bg-secondary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 15, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}


/* ---------- Images Gallery ---------- */
.image-gallery-section {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.image-gallery-section .section-container {
    max-width: none;
    padding: 0;
}

.image-gallery-section .section-header {
    text-align: center;
    width: min(1200px, calc(100% - 3rem));
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
}

.image-gallery-section .section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 0;
}

.image-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: var(--color-bg-card);
    aspect-ratio: 16 / 11;
    cursor: zoom-in;
}

.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-base);
}

.image-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(7, 8, 15, 0.95) 0%, rgba(7, 8, 15, 0.15) 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.image-tile-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    line-height: 1.3;
    color: #fff;
}

.image-tile-meta {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    margin-top: var(--space-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.image-tile:hover img {
    transform: scale(1.08);
    filter: saturate(1.1);
}

.image-tile:hover .image-tile-overlay {
    opacity: 1;
}


/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 15, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    height: 90vh;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-spring);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2010;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.1);
}

.lightbox-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close {
    top: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
}

.lightbox-nav--prev { left: var(--space-xl); }
.lightbox-nav--next { right: var(--space-xl); }

.lightbox-nav:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: translateY(-50%);
}


/* ---------- Author Card (Post Detail) ---------- */
.author-card {
    margin-top: var(--space-3xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.author-card-inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base);
}

.author-card-inner:hover {
    border-color: var(--color-border-hover);
}

.author-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-border);
}

.author-card-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
}

.author-card-name {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.author-card-name a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.author-card-name a:hover {
    color: var(--color-accent-light);
}

.author-card-about {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.author-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent-light);
}


/* ---------- Author Hero ---------- */
.author-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.author-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 8, 15, 0.5) 0%,
        rgba(7, 8, 15, 0.88) 100%
    );
}

.author-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-4xl) var(--space-xl);
}

.author-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-xl);
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.author-hero-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: #fff;
    font-weight: 800;
    font-size: 3rem;
}

.author-hero-name {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
}

.author-hero-about {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 600px;
}

.author-hero-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-gradient-start);
    border-color: var(--color-gradient-start);
    transform: translateY(-2px);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* ---------- Back Link ---------- */
.post-back {
    margin-top: var(--space-3xl);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast), gap var(--transition-fast);
}

.back-link:hover {
    color: var(--color-accent-light);
    gap: var(--space-md);
}


/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.empty-state-icon {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}


/* ---------- Footer ---------- */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 6rem 1.5rem 3rem;
        gap: 2.5rem;
    }

    .hero-visual {
        height: 280px;
    }

    .hero-orb--1 {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .logo-full { display: none; }
    .logo-short { display: inline; }

    .navbar { padding: 0.4rem 0; }
    .navbar.scrolled { padding: 0.3rem 0; }

    .nav-container {
        width: min(1200px, calc(100% - 3rem));
    }

    .nav-cta { display: none; }

    .nav-actions {
        gap: var(--space-md);
        margin-left: auto;
    }

    .nav-toggle {
        display: flex;
        width: 22px;
        height: 15px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-nav-mobile);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-2xl);
        transition: right var(--transition-base);
        z-index: 1000;
        padding: var(--space-4xl) var(--space-xl);
    }

    .nav-links.active { right: 0; }

    .nav-link { font-size: 1.2rem; }

    .posts-grid { grid-template-columns: 1fr; }

    .posts-list .post-card {
        flex-direction: column;
        height: auto;
    }

    .posts-list .post-card-image {
        width: 100%;
        height: 180px;
    }

    .author-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }

    .post-hero { min-height: 60vh; }
    .author-hero { min-height: 50vh; }

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

@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn { justify-content: center; }

    .post-card-image { height: 180px; }

    .gallery-grid { grid-template-columns: 1fr; }

    .image-grid { grid-template-columns: 1fr; }

    .step-links {
        gap: var(--space-xs);
    }

    .pagination-link,
    .current {
        font-size: 0.78rem;
        padding: 0.35rem 0.6rem;
        min-height: 32px;
    }
}
