/* ============================================
   foryou.reviews - Styles
   Frutiger-Aero Translucent Editorial
   ============================================ */

/* --- Color Palette ---
   Morning Mist:      #E8F0F8
   Warm Linen:        #F5F0E8
   Deep Ink:          #2B3A4A
   Slate Prose:       #4A5568
   Soft Cerulean:     #7EB8D8
   Warm Terracotta:   #C07850
   Frosted White:     #FFFFFF (45% opacity)
   Blush Cloud:       #F0D9CF
   Deep Lagoon:       #1A5276
   Frost Fallback:    #E8EEF2
*/

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: #4A5568;
    background: linear-gradient(180deg, #E8F0F8 0%, #F0E8E0 50%, #F5F0E8 100%);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0.01em;
    line-height: 1.65;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .site-title, .site-subtitle, .scroll-progress {
        opacity: 1 !important;
    }
}

/* --- Backdrop Filter Support Fallback --- */
@supports not (backdrop-filter: blur(1px)) {
    .card,
    .bubble {
        background: #E8EEF2 !important;
    }
}

/* ============================================
   Frosted Glass Bubbles
   ============================================ */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2), rgba(126, 184, 216, 0.08));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: scale(0);
    opacity: 0;
    transition: none;
}

.bubble.visible {
    animation: bubbleIn 800ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bubbleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   "For You" Watermarks
   ============================================ */
.watermark {
    position: fixed;
    font-family: 'Caveat', cursive;
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 400;
    color: #2B3A4A;
    opacity: 0;
    transform: rotate(-8deg);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
}

.watermark-1 {
    top: 150vh;
    left: 5%;
}

.watermark-2 {
    top: 350vh;
    right: 5%;
    left: auto;
}

.watermark-3 {
    top: 550vh;
    left: 10%;
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */
.scroll-progress {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    z-index: 100;
    opacity: 0;
    transition: opacity 400ms ease;
}

.scroll-progress.visible {
    opacity: 1;
}

.progress-ring {
    width: 36px;
    height: 36px;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    stroke: rgba(126, 184, 216, 0.25);
}

.progress-ring-fill {
    stroke: #7EB8D8;
    stroke-dasharray: 97.39;
    stroke-dashoffset: 97.39;
    stroke-linecap: round;
    transition: stroke-dashoffset 100ms ease;
}

/* ============================================
   Opening Section
   ============================================ */
.opening-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.opening-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.site-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #2B3A4A;
    letter-spacing: 0.06em;
    line-height: 1.18;
    opacity: 0;
    transition: opacity 600ms ease;
}

.site-title.visible {
    opacity: 1;
}

.site-subtitle {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.2rem;
    color: #C07850;
    transform: rotate(-1.5deg);
    margin-top: 16px;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: none;
}

.site-subtitle.visible {
    animation: subtitleReveal 1200ms ease-out forwards;
}

@keyframes subtitleReveal {
    0% {
        opacity: 1;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0% 0 0);
    }
}

/* ============================================
   Envelope Sections
   ============================================ */
.envelope-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 80px 24px;
}

.envelope-content {
    max-width: 680px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.envelope-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.envelope-text {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    color: #2B3A4A;
    line-height: 1.18;
}

/* --- Gift Tag --- */
.gift-tag {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 48px;
    height: 64px;
}

.gift-tag-float {
    animation: giftTagBob 4s ease-in-out infinite;
}

@keyframes giftTagBob {
    0%, 100% {
        transform: translateY(-4px) rotate(-3deg);
    }
    50% {
        transform: translateY(4px) rotate(-3deg);
    }
}

.gift-tag-svg {
    width: 100%;
    height: 100%;
}

/* --- Soft Divider Dots --- */
.envelope-section::after {
    content: '';
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: radial-gradient(circle, #F0D9CF 2px, transparent 2px) 0 0 / 16px 6px no-repeat,
                radial-gradient(circle, #F0D9CF 2px, transparent 2px) 20px 0 / 16px 6px no-repeat,
                radial-gradient(circle, #F0D9CF 2px, transparent 2px) 40px 0 / 16px 6px no-repeat,
                radial-gradient(circle, #F0D9CF 2px, transparent 2px) 60px 0 / 16px 6px no-repeat,
                radial-gradient(circle, #F0D9CF 2px, transparent 2px) 80px 0 / 16px 6px no-repeat;
    opacity: 0;
    transition: opacity 600ms ease 200ms;
}

.envelope-section.dots-visible::after {
    opacity: 1;
}

/* ============================================
   Curation Drawer Sections
   ============================================ */
.drawer-section {
    position: relative;
    padding: 80px 0;
    z-index: 1;
    overflow: visible;
}

.drawer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.drawer-gradient-cerulean {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(126, 184, 216, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 30%, rgba(240, 217, 207, 0.06) 0%, transparent 60%);
}

.drawer-gradient-blush {
    background:
        radial-gradient(ellipse at 60% 40%, rgba(240, 217, 207, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 60%, rgba(126, 184, 216, 0.05) 0%, transparent 60%);
}

.drawer-gradient-linen {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(245, 240, 232, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(126, 184, 216, 0.06) 0%, transparent 60%);
}

.drawer-label {
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.drawer-label-text {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #C07850;
    transform: rotate(-2deg);
    display: inline-block;
}

.drawer-scroll {
    display: flex;
    gap: 32px;
    padding: 16px 32px 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    scrollbar-width: none;
}

.drawer-scroll::-webkit-scrollbar {
    display: none;
}

/* Add padding spacers for centering first/last cards */
.drawer-scroll::before,
.drawer-scroll::after {
    content: '';
    flex-shrink: 0;
    width: max(0px, calc((100vw - 360px) / 2 - 32px));
}

/* ============================================
   Cards (Frosted Glass)
   ============================================ */
.card {
    flex-shrink: 0;
    width: 360px;
    min-height: 480px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(120, 150, 180, 0.12);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 600ms cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 300ms ease;
}

.card.visible {
    opacity: 1;
    transform: translateX(0);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(120, 150, 180, 0.18);
}

/* --- Card Shapes --- */
.card-shape {
    width: 100%;
    height: 120px;
    margin-bottom: 24px;
    border-radius: 12px;
    opacity: 0.3;
}

.card-shape-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(126, 184, 216, 0.5), rgba(126, 184, 216, 0.15));
    margin-left: auto;
    margin-right: auto;
}

.card-shape-roundrect {
    background: radial-gradient(ellipse at 40% 40%, rgba(240, 217, 207, 0.6), rgba(240, 217, 207, 0.15));
    border-radius: 20px;
}

.card-shape-soft-polygon {
    background: radial-gradient(ellipse at 50% 40%, rgba(126, 184, 216, 0.35), rgba(240, 217, 207, 0.2));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* --- Card Typography --- */
.card-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #2B3A4A;
    line-height: 1.18;
    margin-bottom: 12px;
}

.card-description {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: #4A5568;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* --- Card Annotation --- */
.card-annotation {
    display: flex;
    align-items: center;
    gap: 8px;
    transform: rotate(-2deg);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-annotation {
    transform: rotate(-3deg);
}

.card-tag-svg {
    width: 20px;
    height: 26px;
    flex-shrink: 0;
}

.annotation-text {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #C07850;
}

/* ============================================
   Closing Section
   ============================================ */
.closing-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 80px 24px;
}

.closing-content {
    text-align: center;
}

.closing-main {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 2rem;
    color: #C07850;
    opacity: 0;
    transition: opacity 800ms ease;
}

.closing-main.visible {
    opacity: 1;
}

.closing-sub {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.2rem;
    color: #4A5568;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 800ms ease 400ms;
}

.closing-sub.visible {
    opacity: 1;
}

/* ============================================
   Closing Section - Floating Bubbles
   ============================================ */
.closing-section .bubble-closing {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2), rgba(126, 184, 216, 0.08));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: closingFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes closingFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

/* ============================================
   Mobile Responsive (< 768px)
   ============================================ */
@media (max-width: 767px) {
    .drawer-scroll {
        flex-direction: column;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 16px 24px 32px;
        align-items: center;
    }

    .drawer-scroll::before,
    .drawer-scroll::after {
        display: none;
    }

    .card {
        width: 100%;
        max-width: 400px;
        min-height: auto;
        transform: translateY(30px);
    }

    .card.visible {
        transform: translateY(0);
    }

    .card:hover {
        transform: translateY(-4px);
    }

    .gift-tag {
        top: -30px;
        right: 0;
    }

    .watermark {
        font-size: clamp(4rem, 15vw, 8rem);
    }

    .envelope-text {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
}

/* ============================================
   Link Styles (for future use)
   ============================================ */
a {
    color: #7EB8D8;
    text-decoration: none;
    transition: color 200ms ease;
}

a:visited {
    color: #1A5276;
}

a:hover {
    color: #C07850;
}
