/* ===================================
   ETHERIA - ANIME CONTENT WEBSITE
   Dark Anime Theme CSS
   =================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Midnight Galaxy Palette */
    --color-bg-primary: #050511;
    /* Deep Indigo */
    --color-bg-secondary: #0e0b16;
    /* Deep Violet */
    --color-bg-tertiary: #151020;
    /* Dark Purple */
    --color-bg-card: rgba(20, 16, 30, 0.7);
    --color-bg-glass: rgba(40, 30, 60, 0.4);

    --color-accent-primary: #ff2a6d;
    /* Neon Pink */
    --color-accent-secondary: #05d9e8;
    /* Electric Cyan */
    --color-accent-tertiary: #d200ff;
    /* Bright Purple */
    --color-accent-glow: rgba(255, 42, 109, 0.5);
    --color-accent-glow-sec: rgba(5, 217, 232, 0.4);

    --color-text-primary: #ffffff;
    --color-text-secondary: #d1d1e0;
    --color-text-muted: #8f8f9e;

    --color-border: rgba(255, 42, 109, 0.3);
    --color-border-hover: rgba(5, 217, 232, 0.6);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #050511 0%, #1a0b2e 50%, #050511 100%);
    --gradient-card: linear-gradient(160deg, rgba(255, 42, 109, 0.05) 0%, rgba(5, 217, 232, 0.05) 100%);
    --gradient-accent: linear-gradient(135deg, #ff2a6d, #d200ff);
    --gradient-text: linear-gradient(90deg, #ff2a6d, #05d9e8);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    /* Typography */
    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-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;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px var(--color-accent-glow);
    --shadow-glow-strong: 0 0 35px var(--color-accent-glow), 0 0 10px var(--color-accent-secondary);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1240px;
    --container-narrow: 840px;
}

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(255, 42, 109, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 20%, rgba(5, 217, 232, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(210, 0, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(45, 0, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent-secondary);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo-icon svg {
    stroke: var(--color-bg-primary);
    /* Dark stroke inside the glowing box */
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--color-accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(70px + var(--space-3xl)) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(2px);
    transition: transform 10s ease;
    animation: zoomHero 20s infinite alternate;
}

@keyframes zoomHero {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 10, 15, 0.4) 0%,
            rgba(10, 10, 15, 0.7) 50%,
            rgba(10, 10, 15, 1) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: rgba(20, 16, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 42, 109, 0.3);
    border-bottom: 1px solid rgba(5, 217, 232, 0.2);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 0, 0, 0.6);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(155, 77, 255, 0.2);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--color-accent-primary);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--color-accent-primary);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
        box-shadow: 0 0 20px var(--color-accent-primary);
    }
}

.hero-title {
    margin-bottom: var(--space-lg);
    text-shadow: 0 0 30px rgba(155, 77, 255, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d200ff, #ff2a6d);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-strong);
    color: #ffffff;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--color-accent-secondary);
    background: rgba(5, 217, 232, 0.1);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(5, 217, 232, 0.2);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-subtitle {
    display: inline-block;
    color: var(--color-accent-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   ARTICLE CARDS
   =================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.article-card {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.article-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--color-accent-primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 42, 109, 0.2);
}

.article-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.8, 1);
}

.article-card:hover .article-card-image img {
    transform: scale(1.15);
}

.article-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(5, 5, 17, 0.9) 100%);
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.article-card:hover .article-card-overlay {
    opacity: 1;
}

.article-card-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--gradient-accent);
    color: var(--color-text-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.article-card:hover .article-card-title {
    color: var(--color-accent-primary);
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.article-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Featured Article (Large) */
.article-featured {
    grid-column: span 2;
}

.article-featured .article-card-image {
    height: 350px;
}

.article-featured .article-card-title {
    font-size: 1.75rem;
}

/* ===================================
   SIDEBAR
   =================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.sidebar-widget-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.newsletter-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.1);
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
}

/* Social Widget */
.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.social-link.pinterest:hover {
    background: #E60023;
    border-color: #E60023;
}

/* ===================================
   BREADCRUMBS
   =================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-accent-primary);
}

.breadcrumbs-separator {
    color: var(--color-text-muted);
}

.breadcrumbs-current {
    color: var(--color-text-secondary);
}

/* ===================================
   ARTICLE PAGE
   =================================== */
.article-hero {
    padding: calc(70px + var(--space-2xl)) 0 var(--space-xl);
    position: relative;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(10px);
}

/* ===================================
   ANIMATIONS & EFFECTS
   =================================== */

/* Scroll Reveal Base State */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 1, 0.8, 1),
        transform 0.8s cubic-bezier(0.2, 1, 0.8, 1);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays for Grid Items */
.articles-grid .article-card:nth-child(2) {
    transition-delay: 0.1s;
}

.articles-grid .article-card:nth-child(3) {
    transition-delay: 0.2s;
}

.articles-grid .article-card:nth-child(4) {
    transition-delay: 0.3s;
}

.articles-grid .article-card:nth-child(5) {
    transition-delay: 0.4s;
}

/* Hero Entrance Animations */
.hero-content>* {
    opacity: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 1, 0.8, 1) forwards;
}

.hero-badge {
    animation-delay: 0.1s;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.3s;
}

.hero-buttons {
    animation-delay: 0.4s;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Animation */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Glitch/Shake Effect on Click */
.btn:active {
    transform: scale(0.95);
}

/* Shimmer Effect for Loading/Placeholders */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 10, 15, 0.8) 0%,
            rgba(10, 10, 15, 1) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--color-text-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.article-title {
    margin-bottom: var(--space-md);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Article Content */
.article-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.article-featured-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.article-body h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-body p {
    margin-bottom: var(--space-lg);
}

.article-body ul,
.article-body ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article-body li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

.article-body strong {
    color: var(--color-text-primary);
}

.article-body blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--color-bg-glass);
    border-left: 4px solid var(--color-accent-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* Related Articles */
.related-articles {
    background: var(--color-bg-secondary);
    padding: var(--space-3xl) 0;
    margin-top: var(--space-2xl);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent-primary);
    padding-left: var(--space-sm);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===================================
   CATEGORY PAGES
   =================================== */
.page-hero {
    padding: calc(70px + var(--space-2xl)) 0 var(--space-xl);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(155, 77, 255, 0.15) 0%, transparent 60%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-widget {
        flex: 1;
        min-width: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-xl);
        transform: translateX(-100%);
        transition: var(--transition-normal);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        font-size: 1.25rem;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--color-border);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .sidebar {
        flex-direction: column;
    }

    .sidebar-widget {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

/* ===================================
   UTILITIES
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: var(--space-md);
}

.mt-2 {
    margin-top: var(--space-lg);
}

.mt-3 {
    margin-top: var(--space-xl);
}

.mt-4 {
    margin-top: var(--space-2xl);
}

.mb-1 {
    margin-bottom: var(--space-md);
}

.mb-2 {
    margin-bottom: var(--space-lg);
}

.mb-3 {
    margin-bottom: var(--space-xl);
}

.mb-4 {
    margin-bottom: var(--space-2xl);
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   SEARCH FUNCTIONALITY
   =================================== */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--space-xs);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: var(--color-accent-primary);
    transform: scale(1.1);
}

.search-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-sm);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    width: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.search-container.active {
    width: 300px;
    opacity: 1;
    visibility: visible;
    right: -10px;
    /* Slight offset */
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.15);
}

.search-input {
    background: none;
    border: none;
    color: var(--color-text-primary);
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    outline: none;
}

.search-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 var(--space-xs);
    transition: var(--transition-fast);
    line-height: 1;
}

.search-close:hover {
    color: var(--color-accent-primary);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 99;
}

.search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    text-decoration: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 42, 109, 0.05);
}

.search-result-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--color-text-primary);
}

.search-result-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.3;
}

.no-results {
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile Search */
@media (max-width: 768px) {
    .nav-search {
        width: 100%;
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 1px solid var(--color-border);
        justify-content: center;
    }

    .search-toggle {
        display: none;
    }

    .search-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        background: var(--color-bg-tertiary);
        margin: 0;
    }

    .search-close {
        display: none;
    }

    .search-results {
        width: 100%;
        position: relative;
        top: var(--space-sm);
        box-shadow: none;
        max-height: none;
        background: none;
        border: none;
    }
}

/* ===================================
   DISCOVERY SECTION
   =================================== */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.discovery-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.discovery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.05), rgba(210, 0, 255, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.discovery-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-glow);
}

.discovery-card:hover::before {
    opacity: 1;
}

.discovery-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    transition: transform var(--transition-normal);
}

.discovery-card:hover .discovery-icon {
    transform: scale(1.1) rotate(5deg);
}

.discovery-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.discovery-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Mood Tags */
.mood-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.mood-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mood-tag:hover {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Discovery Results */
.discovery-result {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    animation: fadeIn 0.5s ease;
}

.result-card {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.result-image {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.result-content {
    flex: 1;
}

.result-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.result-tags {
    margin-bottom: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-accent-secondary);
}

@media (max-width: 600px) {
    .result-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   DESIGN IMPROVEMENTS (Audit Fixes)
   =================================== */

/* 1. Refined Anime Cards (Ratings & Hover) */
.article-card-rating {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #ffd700;
    /* Gold for star */
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.article-card:hover .article-card-rating {
    background: var(--color-accent-primary);
    color: #fff;
    border-color: var(--color-accent-primary);
}

/* Hover Reveal Icon (Pseudo-element) */
.article-card-image::after {
    content: '▶';
    /* Play icon */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    text-shadow: 0 0 20px rgba(255, 42, 109, 0.8);
    pointer-events: none;
}

.article-card:hover .article-card-image::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 2. Typography & Contrast Improvements */
:root {
    --color-text-muted: #a0a0b0;
    /* Lightened from #8f8f9e */
    --color-bg-card: rgba(20, 16, 30, 0.85);
    /* Increased opacity from 0.7 */
}

/* Fluid Typography Updates */
h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem);
}

p {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.1rem);
}

/* 3. Button Sheen Animation */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 2;
}

.btn-primary:hover::after {
    animation: sheen 0.8s ease;
}

@keyframes sheen {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Micro-interaction: Magnet Lift */
.article-card,
.btn,
.discovery-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.article-card:active,
.btn:active,
.discovery-card:active {
    transform: scale(0.96) translateY(0);
}

/* ===================================
   FOOTER UPGRADES
   =================================== */

/* 1. Footer Texture & CTA Block */
.footer {
    position: relative;
    background: linear-gradient(to top, var(--color-bg-primary), var(--color-bg-secondary));
    padding-top: 100px;
    margin-top: 100px;
    /* Space for negative margin CTA */
}

/* Call to Action Block floating above footer */
.footer-cta {
    background: linear-gradient(135deg, var(--color-bg-tertiary), rgba(20, 16, 30, 0.95));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-xl) * 2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.footer-cta h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.footer-cta p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
        top: -60px;
        padding: var(--space-lg);
    }
}

/* 2. Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--color-accent-primary);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--color-accent-secondary);
}

/* 3. Footer Texture Pattern (CSS Only) */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.3;
    pointer-events: none;
}

/* ===================================
   MOBILE & DESIGN POLISH
   =================================== */

/* 1. Improved Hamburger Menu & Mobile Nav */
@media (max-width: 768px) {
    .nav {
        background: rgba(10, 10, 15, 0.98);
        /* Less transparent */
        backdrop-filter: blur(20px);
        padding-top: 80px;
        /* More space from top */
    }

    .nav-link {
        font-size: 1.5rem;
        /* Larger tap targets */
        padding: var(--space-lg) 0;
        text-align: center;
        border-bottom: none;
        /* Cleaner look */
    }

    .nav-link:hover {
        color: var(--color-accent-primary);
        transform: scale(1.05);
        /* Tap feedback */
    }

    /* Center social links on mobile */
    .nav-social {
        justify-content: center;
        margin-top: var(--space-xl);
    }
}

/* 2. Card Stacking & Touch Targets */
@media (max-width: 768px) {

    .articles-grid,
    .discovery-grid {
        gap: var(--space-2xl);
        /* More space between stacked cards */
    }

    .article-card,
    .discovery-card {
        transform: none !important;
        /* Disable hover lifts on touch */
    }

    .article-card:active,
    .discovery-card:active {
        transform: scale(0.98) !important;
        /* Subtle press effect */
        background: rgba(255, 255, 255, 0.05);
    }

    /* Ensure horizontal scroll for mood tags if they overflow */
    .mood-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .mood-tag {
        flex-shrink: 0;
    }
}

/* 3. Hero Banner & Text Polish */
.hero-content {
    background: rgba(5, 5, 10, 0.6);
    /* Darker backdrop for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    /* stronger shadow */
}

/* Make tagline clearer */
.hero-description {
    color: #e0e0e0;
    /* Brighter than muted text */
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Primary CTA Polish */
.btn-primary {
    /* Ensure accent color pops */
    background: linear-gradient(135deg, #d200ff, #ff2a6d);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 42, 109, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(255, 42, 109, 0.6);
    filter: brightness(1.1);
}

/* Footer Mobile Fix */
@media (max-width: 768px) {
    .footer-cta {
        width: 90%;
        /* Prevent edge touching */
        top: -50px;
    }

    .footer {
        padding-top: 120px;
        /* More space for the CTA */
    }
}

/* ===================================
   FINAL DESIGN POLISH
   =================================== */

/* 1. Card Standardization */
.article-card-image,
.discovery-card-image {
    /* if applicable */
    aspect-ratio: 2 / 3;
    height: auto;
    /* Allow height to adjust based on width */
    width: 100%;
}

.article-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* 2. Global Spacing & Typography */
body {
    line-height: 1.6;
    /* Ensure readability */
}

.section {
    padding: var(--space-3xl) 0;
    /* consistent padding */
}

/* 3. Footer Expansion */
.footer-social {
    gap: var(--space-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    /* Consistent touch targets */
    border-radius: 50%;
    /* Circle icons look more modern */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    margin-top: var(--space-lg);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-legal a:hover {
    color: var(--color-accent-primary);
}

/* 4. Contrast Boost */
.article-card-excerpt,
p {
    color: #b0b0c0;
    /* Lighter grey for better contrast against dark bg */
}

/* 5. Button Visibility */
.btn {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    /* larger touch areas */
}

/* ===================================
   SYSTEM ENFORCEMENT (Professional Polish)
   =================================== */

/* 1. Strict Color Palette Enforcement */
:root {
    /* Brand Colors (Refined) */
    --brand-primary: #ff2a6d;
    /* Neon Pink */
    --brand-secondary: #05d9e8;
    /* Electric Cyan */
    --brand-tertiary: #d200ff;
    /* Bright Purple */

    /* Social Colors */
    --color-social-pinterest: #E60023;
    --color-social-twitter: #1DA1F2;
    --color-social-instagram: #E1306C;
}

/* Override any loose hexes with variables */
.social-link.pinterest:hover {
    background: var(--color-social-pinterest);
    border-color: var(--color-social-pinterest);
}

/* 2. Rhythm & Spacing Normalization */
/* Enforce strict vertical rhythm on all major sections */
.section,
.hero,
.article-hero {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

/* Mobile adjustments using clamp for smoother scaling */
@media (max-width: 768px) {
    :root {
        --space-3xl: 3rem;
        /* Slightly smaller on mobile to reduce gaps */
    }
}

/* 3. Navigation Polish (Glassmorphism & Border) */
.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* sharper border */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* subtle depth */
}

.header.scrolled {
    background: rgba(5, 5, 17, 0.95);
    /* Deeper contrast when scrolled */
    border-bottom: 1px solid var(--color-accent-primary);
    /* Brand accent on scroll */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 4. Focus States (Accessibility & Pro feel) */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-accent-secondary);
    outline-offset: 4px;
}

/* 5. Text Selection (Brand touch) */
::selection {
    background: var(--color-accent-primary);
    color: #fff;
}

/* ===================================
   AESTHETIC BRANDING OVERHAUL
   =================================== */

:root {
    /* Dreamy / Aesthetic Palette */
    --color-bg-primary: #090914;
    /* Darker, richer deep blue */
    --color-bg-secondary: #131224;
    --color-bg-tertiary: #1c1b33;

    /* Soft Neons (More "Aesthetic" than harsh neons) */
    --color-accent-primary: #b084cc;
    /* Pastel Purple/Lilac */
    --color-accent-secondary: #7aa5d2;
    /* Muted Cyan/Blue */
    --color-accent-tertiary: #ff99b3;
    /* Soft Pink */

    --color-text-primary: #f0f0f5;
    /* Soft White */
    --color-text-muted: #a0a0b8;
    /* Cool Grey */

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #b084cc 0%, #7aa5d2 100%);
    --gradient-hero: linear-gradient(180deg, rgba(9, 9, 20, 0) 0%, rgba(9, 9, 20, 1) 100%);

    /* Glows */
    --shadow-glow: 0 0 25px rgba(176, 132, 204, 0.4);
}

/* Logo Styling */
.logo-image {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(176, 132, 204, 0.6));
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(176, 132, 204, 0.9));
}

/* Update Header to match aesthetic */
.header {
    background: rgba(9, 9, 20, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link::after {
    background: var(--color-accent-primary);
    box-shadow: 0 0 8px var(--color-accent-primary);
}

/* Update Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    box-shadow: 0 4px 15px rgba(176, 132, 204, 0.3);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(176, 132, 204, 0.5);
}

/* Hero Badge */
.hero-badge-dot {
    background: var(--color-accent-tertiary);
    box-shadow: 0 0 10px var(--color-accent-tertiary);
}

/* ===================================
   READING PROGRESS BAR
   =================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--color-accent-primary);
}

/* ===================================
   SOCIAL SHARING BUTTONS
   =================================== */
.share-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.share-button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.share-button:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent-primary);
    color: var(--color-text-primary);
}

.share-button.pinterest {
    background: rgba(230, 0, 35, 0.1);
    border-color: rgba(230, 0, 35, 0.3);
}

.share-button.pinterest:hover {
    background: #E60023;
    border-color: #E60023;
    color: #fff;
}

.share-button.twitter {
    background: rgba(29, 161, 242, 0.1);
    border-color: rgba(29, 161, 242, 0.3);
}

.share-button.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: #fff;
}

.share-button.copy-link {
    background: rgba(255, 255, 255, 0.05);
}

.share-button.copy-link:hover {
    background: var(--color-accent-secondary);
    border-color: var(--color-accent-secondary);
    color: #fff;
}

.share-button svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   INLINE NEWSLETTER CTA
   =================================== */
.inline-newsletter {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inline-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.05), rgba(5, 217, 232, 0.05));
    opacity: 0.5;
    z-index: 0;
}

.inline-newsletter-content {
    position: relative;
    z-index: 1;
}

.inline-newsletter h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.inline-newsletter p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.inline-newsletter .newsletter-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-sm);
}

.inline-newsletter .newsletter-input {
    flex: 1;
}

.inline-newsletter .btn {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .inline-newsletter .newsletter-form {
        flex-direction: column;
    }

    .share-buttons {
        justify-content: center;
    }
}