/* ═══════════════════════════════════════════════════════════
   BLOG PREMIUM LIGHT BACKGROUND
   Soft mesh gradient with slow drifting stardust particles
   ═══════════════════════════════════════════════════════════ */

/* Light Premium Theme Override for Blog */
body {
    /* Set colors back to light theme standards */
    --black: #f0ede8;
    --white: #1a1815;
    --grey-100: #2e2b28;
    --grey-200: #504c47;
    --grey-400: #7a7570;
    --grey-600: #b0aba3;
    --grey-800: #e8e5e0;
    --accent: #7c5cfa;
    --accent-dim: rgba(124, 92, 250, 0.10);

    background: #ffffff !important;
    color: var(--white) !important;
}

/* Redefine nav for light mode */
nav {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nav-links a { color: var(--grey-200) !important; }
.nav-links a:hover, .nav-links a.active { color: var(--white) !important; }
.nav-logo { color: var(--white) !important; }
.nav-hamburger span { background: var(--white) !important; }

/* The Animated Background Mesh (Light) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Soft, premium light mesh gradient */
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(124, 92, 250, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(46, 168, 84, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(245, 242, 238, 0.6) 0%, transparent 60%);
    background-color: #ffffff;
    animation: breath-light 20s ease-in-out infinite alternate;
}

/* Noise overlay (more subtle on white) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

@keyframes breath-light {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* Ensure content sits above the background */
main, footer {
    position: relative;
    z-index: 10;
}

/* Blog specific components for light mode */
.blog-entry {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.blog-week-badge {
    color: var(--accent) !important;
    border-color: rgba(124, 92, 250, 0.2) !important;
    background: rgba(124, 92, 250, 0.03) !important;
}

.blog-read-more {
    color: var(--accent) !important;
    font-weight: 600;
}

.blog-read-more:hover {
    color: #5b3bd3 !important;
}

.blog-card-category {
    background: rgba(0, 0, 0, 0.01) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.blog-card-cat-label {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--grey-200) !important;
}

/* Animated Particles (Slightly darker for visibility on white) */
#blog-particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.blog-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(124, 92, 250, 0.25);
    box-shadow: 0 0 8px rgba(124, 92, 250, 0.1);
    animation: blogParticleDrift linear infinite;
}

@keyframes blogParticleDrift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-particle { animation: none !important; opacity: 0.1 !important; }
    body::before { animation: none !important; }
}
