/* ============================================
   foryou.reviews - Dopamine Neon Candy Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-base: #0F0F23;
    --bg-hue: 240;
    --surface-elevated: #1A1A3E;
    --surface-muted: #2A2A4E;
    --neon-pink: #FF6BB5;
    --neon-lime: #BFFF00;
    --neon-cyan: #00F5FF;
    --neon-peach: #FFAB76;
    --white-glow: #F0F0FF;
    --muted-lavender: #8B8BAE;
    --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    background: linear-gradient(135deg, #0F0F23 0%, #1A0A2E 40%, #0A1A2E 70%, #0F0F23 100%);
    color: var(--white-glow);
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

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

.bubble {
    position: absolute;
    bottom: -80px;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(0,245,255,0.1), transparent);
    opacity: var(--opacity);
    animation: floatUp var(--duration) var(--delay) linear infinite;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: var(--opacity);
    }
    50% {
        transform: translateY(-50vh) translateX(15px);
    }
    100% {
        transform: translateY(-110vh) translateX(-10px);
        opacity: 0;
    }
}

/* --- Floating Navigation --- */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 12px;
    transition: transform 0.4s var(--smooth-ease), opacity 0.4s var(--smooth-ease);
}

.floating-nav.hidden {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

.nav-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 90vw;
}

.nav-pills::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 50px;
    white-space: nowrap;
    color: var(--white-glow);
    background: transparent;
    transition: background 0.3s var(--smooth-ease), color 0.3s var(--smooth-ease), transform 0.2s var(--spring-ease);
}

.nav-pill:hover {
    background: rgba(0, 245, 255, 0.15);
    color: var(--neon-cyan);
}

.nav-pill:active {
    transform: scale(0.95);
}

.nav-pill.active {
    background: var(--neon-pink);
    color: var(--bg-base);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.hero-illustration {
    position: relative;
    width: clamp(250px, 40vw, 400px);
    height: auto;
    margin-bottom: 2rem;
    animation: gentleFloat 6s ease-in-out infinite;
}

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

.gift-box {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(255, 107, 181, 0.3));
}

/* Floating product icons animation */
.floating-icon {
    animation: iconOrbit 8s ease-in-out infinite;
}

.icon-1 { animation-delay: 0s; }
.icon-2 { animation-delay: -1.6s; }
.icon-3 { animation-delay: -3.2s; }
.icon-4 { animation-delay: -4.8s; }
.icon-5 { animation-delay: -6.4s; }

@keyframes iconOrbit {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-12px) translateX(8px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-15px) translateX(3px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2.4rem, 5vw + 1rem, 4.8rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #FF6BB5, #BFFF00, #00F5FF);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroTitleIn 1s 0.3s var(--spring-ease) forwards, gradientShift 8s ease infinite;
}

@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
    color: var(--muted-lavender);
    opacity: 0;
    transform: translateY(20px);
    animation: heroSubIn 0.8s 0.8s var(--smooth-ease) forwards;
}

@keyframes heroSubIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 1s 1.5s var(--smooth-ease) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    transform: rotate(45deg);
    animation: bounceDown 2s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes bounceDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white-glow);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    border-radius: 2px;
    margin: 12px auto 0;
}

/* --- Card Grid Section --- */
.card-grid-section {
    position: relative;
    z-index: 1;
    padding: 80px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Bubble Cards --- */
.bubble-card {
    background: var(--surface-elevated);
    border-radius: 28px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: transform 0.4s var(--spring-ease), box-shadow 0.4s var(--spring-ease), opacity 0.6s var(--smooth-ease);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.bubble-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Random rotation via nth-child */
.bubble-card:nth-child(6n+1) { transform: rotate(-1deg) translateY(40px) scale(0.9); }
.bubble-card:nth-child(6n+2) { transform: rotate(0.8deg) translateY(40px) scale(0.9); }
.bubble-card:nth-child(6n+3) { transform: rotate(-0.5deg) translateY(40px) scale(0.9); }
.bubble-card:nth-child(6n+4) { transform: rotate(1.2deg) translateY(40px) scale(0.9); }
.bubble-card:nth-child(6n+5) { transform: rotate(-1.5deg) translateY(40px) scale(0.9); }
.bubble-card:nth-child(6n+6) { transform: rotate(0.5deg) translateY(40px) scale(0.9); }

.bubble-card.visible:nth-child(6n+1) { transform: rotate(-1deg) translateY(0) scale(1); }
.bubble-card.visible:nth-child(6n+2) { transform: rotate(0.8deg) translateY(0) scale(1); }
.bubble-card.visible:nth-child(6n+3) { transform: rotate(-0.5deg) translateY(0) scale(1); }
.bubble-card.visible:nth-child(6n+4) { transform: rotate(1.2deg) translateY(0) scale(1); }
.bubble-card.visible:nth-child(6n+5) { transform: rotate(-1.5deg) translateY(0) scale(1); }
.bubble-card.visible:nth-child(6n+6) { transform: rotate(0.5deg) translateY(0) scale(1); }

/* Gradient border via pseudo-element */
.bubble-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(var(--border-angle, 135deg), var(--neon-pink), var(--neon-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    transition: opacity 0.4s var(--smooth-ease);
    pointer-events: none;
}

.bubble-card:hover::before {
    opacity: 0.8;
}

/* Card accent shadow based on --accent */
.bubble-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 60px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Adjacent card lean-away on hover */
.bubble-card:hover + .bubble-card {
    transform: rotate(-0.5deg) !important;
}

.card-illustration {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.card-illustration svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--white-glow);
    margin-bottom: 8px;
}

/* --- Rating Bubbles --- */
.card-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s var(--spring-ease), box-shadow 0.3s var(--smooth-ease);
}

.rating-bubble.filled {
    background: var(--neon-lime);
    box-shadow: 0 0 6px rgba(191, 255, 0, 0.3);
}

.rating-bubble.empty {
    background: var(--surface-muted);
}

.rating-bubble.filled.pop {
    animation: ratingPop 0.4s var(--spring-ease);
}

@keyframes ratingPop {
    0% { transform: scale(1); box-shadow: 0 0 6px rgba(191, 255, 0, 0.3); }
    50% { transform: scale(1.4); box-shadow: 0 0 12px #BFFF00; }
    100% { transform: scale(1); box-shadow: 0 0 6px rgba(191, 255, 0, 0.3); }
}

.card-body {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--white-glow);
    margin-bottom: 16px;
    opacity: 0.9;
}

.card-category {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
}

/* --- Connection Path SVG --- */
.connection-path {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 200px;
    display: block;
    margin: -40px 0;
}

.dashed-connection {
    stroke-dasharray: 8 8;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 0.1s linear;
}

/* --- Spotlight Strips --- */
.spotlight-strip {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 80px 5%;
    min-height: 450px;
    overflow: hidden;
    background: radial-gradient(ellipse at 40% 50%, rgba(255, 107, 181, 0.15) 0%, transparent 70%);
}

.spotlight-strip-alt {
    flex-direction: row-reverse;
    background: radial-gradient(ellipse at 60% 50%, rgba(0, 245, 255, 0.12) 0%, transparent 70%);
}

.spotlight-illustration {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.spotlight-illustration svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(255, 107, 181, 0.2));
}

.spotlight-strip-alt .spotlight-illustration svg {
    filter: drop-shadow(0 15px 40px rgba(0, 245, 255, 0.2));
}

.spotlight-content {
    flex: 0 0 45%;
    padding: 0 40px;
}

.spotlight-badge {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-base);
    background: var(--neon-lime);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
}

.spotlight-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white-glow);
    margin-bottom: 12px;
}

.spotlight-body {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--white-glow);
    opacity: 0.9;
    margin-bottom: 16px;
}

.spotlight-category {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-peach);
    background: rgba(255, 171, 118, 0.12);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
}

/* --- Cluster Pod Section --- */
.cluster-section {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 100px 5%;
    flex-wrap: wrap;
}

.cluster-pod {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(26, 26, 62, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cluster-label {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white-glow);
    z-index: 2;
    text-align: center;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    animation: orbit var(--orbit-speed) var(--orbit-delay) linear infinite;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg);
    }
}

.orbit-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -22px;
    margin-top: -22px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s var(--spring-ease);
}

.orbit-thumb:hover {
    transform: scale(1.2);
}

.orbit-thumb svg {
    width: 30px;
    height: 30px;
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 80px 5% 60px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 35, 0.9) 100%);
}

.footer-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #FF6BB5, #BFFF00, #00F5FF);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--muted-lavender);
    margin-bottom: 24px;
}

.footer-bubbles {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-bubble {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--hue);
    opacity: 0.7;
    animation: footerBubblePulse 3s ease-in-out infinite;
}

.footer-bubble:nth-child(2) { animation-delay: 0.5s; }
.footer-bubble:nth-child(3) { animation-delay: 1s; }
.footer-bubble:nth-child(4) { animation-delay: 1.5s; }

@keyframes footerBubblePulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spotlight-strip,
    .spotlight-strip-alt {
        flex-direction: column;
        padding: 60px 5%;
    }

    .spotlight-illustration {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 30px;
    }

    .spotlight-content {
        flex: 0 0 auto;
        padding: 0 20px;
        text-align: center;
    }

    .cluster-section {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .bubble-card {
        padding: 24px;
    }

    .floating-nav {
        top: 10px;
        padding: 6px 8px;
    }

    .nav-pill {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .cluster-section {
        flex-direction: column;
        gap: 30px;
    }

    .cluster-pod {
        width: 180px;
        height: 180px;
    }

    .hero-illustration {
        width: 70vw;
    }

    .spotlight-illustration svg {
        max-width: 300px;
    }
}

/* --- Link underline draw animation --- */
a {
    color: var(--neon-cyan);
    text-decoration: none;
    background-image: linear-gradient(var(--neon-cyan), var(--neon-cyan));
    background-size: 0% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s var(--smooth-ease);
}

a:hover {
    background-size: 100% 2px;
}

/* --- Selection --- */
::selection {
    background: rgba(255, 107, 181, 0.3);
    color: var(--white-glow);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-lavender);
}
