/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    --bg-gradient: linear-gradient(135deg, #fff5fa, #fde2f3, #f8c8dc);
    --accent: #d04a6d;
    --dark: #2a1b22;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.7);
    --primary-pink: #ff1493;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

/* =========================================
   1. THE DREAM WAKING OVERLAY
========================================= */
#dream-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #fde2f3 0%, #fff5fa 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), filter 1.5s ease, transform 1.5s ease;
}

.overlay-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 4px;
    animation: pulseGlow 2s infinite alternate;
}

/* Added by JS to trigger the fade */
#dream-overlay.wake-up {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.1);
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 10px rgba(208, 74, 109, 0.2)); }
    100% { filter: drop-shadow(0 0 25px rgba(208, 74, 109, 0.6)); }
}

/* =========================================
   2. DREAMY BACKGROUND ASSETS
========================================= */
.ambient-blob {
    position: fixed; border-radius: 50%; filter: blur(90px);
    z-index: -2; opacity: 0.7;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 { width: 50vw; height: 50vw; background: rgba(255, 182, 193, 0.6); top: -10%; left: -10%; }
.blob-2 { width: 40vw; height: 40vw; background: rgba(208, 74, 109, 0.3); bottom: -10%; right: -10%; animation-delay: -10s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 15vh) scale(1.1); }
}

/* The Flying Butterflies & Petals */
.dream-assets-container {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}

.flying-asset {
    position: absolute;
    color: rgba(255, 182, 193, 0.4); /* Soft frosted pink */
    width: 60px;
    height: 60px;
    top: var(--y);
    left: -10vw;
    animation: floatAcross var(--d) linear infinite;
    animation-delay: var(--t);
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.3));
}

.butterfly svg {
    animation: flap 1.5s infinite alternate ease-in-out;
}

.petal svg {
    animation: spin 8s infinite linear;
}

.sparkle-star svg {
    animation: twinkle 3s infinite alternate;
}

@keyframes floatAcross {
    0% { transform: translateX(-10vw) translateY(0) scale(0.8) rotate(-10deg); }
    50% { transform: translateX(50vw) translateY(-50px) scale(1.2) rotate(10deg); }
    100% { transform: translateX(110vw) translateY(0) scale(0.8) rotate(-20deg); }
}

@keyframes flap { 0% { transform: scaleY(0.6); } 100% { transform: scaleY(1.1); } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes twinkle { 0% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.3); } }

/* =========================================
   3. NAVIGATION
========================================= */
.editorial-nav {
    position: fixed; top: 0; width: 100%; display: flex;
    justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
}
.editorial-nav .logo { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.logo-icon-circle { width: 45px; height: 45px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(248, 200, 220, 0.8); background: #fff; box-shadow: 0 0 10px rgba(208, 74, 109, 0.2); }
.nav-logo-img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--accent); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: 0.3s; }
.nav-links a.active, .nav-links a:hover { color: var(--primary-pink); }

/* =========================================
   4. HERO TEXT CINEMATIC REVEAL
========================================= */
.blog-hero {
    min-height: 50vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding-top: 100px;
}

.cinematic-text {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
    transition: opacity 1.5s ease 0.5s, transform 1.5s ease 0.5s, filter 1.5s ease 0.5s;
}

.cinematic-text.focus {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 4.5rem; color: var(--dark); margin-bottom: 20px; line-height: 1.1; }
.hero-content h1 span { color: var(--accent); font-style: italic; }
.hero-content p { font-size: 1.2rem; font-weight: 500; color: #555; max-width: 600px; margin: 0 auto; }

/* =========================================
   5. GLASS BLOG GRID & SCROLL REVEAL
========================================= */
.blog-container {
    max-width: 1200px; margin: 0 auto; padding: 40px 5% 100px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; position: relative; z-index: 10;
}

.glass-blog-card {
    background: var(--glass-bg); backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 25px;
    padding: 20px; box-shadow: 0 15px 35px rgba(208, 74, 109, 0.05);
    transition: all 0.4s ease; display: flex; flex-direction: column; cursor: pointer;
}

.glass-blog-card:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(208, 74, 109, 0.15); background: rgba(255, 255, 255, 0.6); }
.card-image-wrap { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
.card-image-wrap img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.glass-blog-card:hover .card-image-wrap img { transform: scale(1.05); }

.category-badge {
    position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.85); backdrop-filter: blur(5px);
    padding: 6px 15px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--accent);
}

.card-content { display: flex; flex-direction: column; flex-grow: 1; padding: 0 10px; }
.post-date { font-size: 0.8rem; color: #888; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.card-content h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--dark); margin-bottom: 10px; }
.card-content p { font-size: 0.95rem; line-height: 1.6; color: #555; margin-bottom: 20px; flex-grow: 1; }

.read-more { font-weight: 700; color: var(--accent); text-decoration: none; text-transform: uppercase; font-size: 0.85rem; }

.scroll-reveal { opacity: 0; transform: translateY(50px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

.blog-status-card {
    width: 100%;
    padding: 28px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 35px rgba(208, 74, 109, 0.08);
    color: #5a4a53;
    font-weight: 600;
}

.post-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 120px 5% 100px;
}

.post-detail-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(208, 74, 109, 0.08);
}

.post-hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.post-detail-content {
    padding: 40px;
}

.inline-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 16px;
}

.post-detail-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.post-detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: #7a6570;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.post-lead {
    font-size: 1.12rem;
    line-height: 1.8;
    color: #5a4a53;
    margin-bottom: 28px;
}

.post-body {
    display: grid;
    gap: 18px;
    line-height: 1.9;
    color: #463740;
    margin-bottom: 28px;
}

.post-body p {
    margin: 0;
}

/* MOBILE */
@media(max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .nav-links { display: none; }
    .post-detail-content {
        padding: 28px 20px;
    }
    .post-detail-content h1 {
        font-size: 2.4rem;
    }
    .post-hero-image img {
        height: 260px;
    }
}
