/* ==========================================================================
   MZOO Premium Landing Page - Advanced Custom CSS
   Palette: Emerald/Mint Green (from original prompt)
   Features: Glassmorphism, Aurora Blobs, Deep Shadows, Custom CSS Logic
   ========================================================================== */

/* --- 1. CSS Variables & Theming --- */
:root {
    /* Base HSL Palette - Deep Greens and Emeralds */
    --hue-primary: 152;
    --sat-primary: 70%;
    
    --color-primary-darkest: hsl(var(--hue-primary), var(--sat-primary), 15%);
    --color-primary-dark: hsl(var(--hue-primary), var(--sat-primary), 25%);
    --color-primary: hsl(var(--hue-primary), var(--sat-primary), 40%);
    --color-primary-light: hsl(var(--hue-primary), var(--sat-primary), 90%);
    --color-primary-lightest: hsl(var(--hue-primary), var(--sat-primary), 96%);
    
    --color-primary-alpha: hsla(var(--hue-primary), var(--sat-primary), 40%, 0.15);
    --color-primary-alpha-strong: hsla(var(--hue-primary), var(--sat-primary), 40%, 0.3);
    
    /* Neutral Palette for contrast */
    --color-bg-body: hsl(var(--hue-primary), 15%, 98%);
    --color-surface: hsla(0, 0%, 100%, 0.85);
    --color-text-main: hsl(220, 15%, 20%);
    --color-text-muted: hsl(220, 10%, 45%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-cta: linear-gradient(135deg, hsl(var(--hue-primary), 85%, 45%), hsl(var(--hue-primary), 90%, 30%));
    
    /* Shadows */
    --shadow-glass: 0 20px 40px -10px hsla(var(--hue-primary), 40%, 20%, 0.1), 
                    0 10px 20px -5px hsla(var(--hue-primary), 40%, 20%, 0.05);
    --shadow-card: 0 30px 60px -15px hsla(var(--hue-primary), 30%, 15%, 0.15);
    --shadow-btn: 0 10px 25px -5px hsla(var(--hue-primary), 80%, 35%, 0.4);
    --shadow-btn-hover: 0 15px 35px -5px hsla(var(--hue-primary), 80%, 35%, 0.5);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- 2. Base Setup & Resets --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
}

::selection {
    background-color: var(--color-primary-alpha-strong);
    color: var(--color-primary-darkest);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
    border: 2px solid var(--color-bg-body);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- 3. Utilities & Global Components --- */
.text-primary { color: var(--color-primary); }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-light { background-color: var(--color-primary-light); }
.text-primary-dark { color: var(--color-primary-dark); }

/* --- 4. Ambient Aurora Background Elements --- */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-image: radial-gradient(circle at 50% 0%, hsla(var(--hue-primary), 60%, 95%, 1) 0%, transparent 70%);
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.aurora-blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, hsla(var(--hue-primary), 80%, 85%, 0.8), transparent 70%);
    animation-delay: 0s;
}

.aurora-blob-2 {
    bottom: 10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, hsla(var(--hue-primary), 50%, 90%, 0.7), transparent 70%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.aurora-blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, hsla(120, 40%, 90%, 0.6), transparent 70%);
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.9); }
    100% { transform: translate(0, -5%) scale(1.05); }
}

/* --- 5. Glassmorphism Header --- */
.glass-header {
    background: hsla(0, 0%, 100%, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.5);
    box-shadow: 0 4px 30px hsla(var(--hue-primary), 20%, 10%, 0.03);
}

.header-highlight-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.site-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 10px hsla(var(--hue-primary), 50%, 40%, 0.1);
}

/* --- 6. Main Product Card (Glass UI) --- */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsla(0, 0%, 100%, 0.8);
    box-shadow: var(--shadow-card), inset 0 0 0 1px hsla(0, 0%, 100%, 0.5);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.glass-card:hover {
    box-shadow: 0 40px 80px -20px hsla(var(--hue-primary), 40%, 15%, 0.2), inset 0 0 0 1px hsla(0, 0%, 100%, 0.8);
}

.inner-glow {
    box-shadow: inset 0 0 100px hsla(0, 0%, 100%, 0.8);
}

/* Product Title Styling */
.title-underline {
    background: var(--gradient-primary);
    transform-origin: left;
    animation: scaleInLeft 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes scaleInLeft {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Feature List Blocks */
.feature-item {
    background: linear-gradient(180deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0.5) 100%);
    border: 1px solid transparent;
}
.feature-item:hover {
    border-color: var(--color-primary-alpha);
    box-shadow: 0 4px 15px -3px hsla(var(--hue-primary), 30%, 10%, 0.05);
    transform: translateX(4px);
}

.feature-icon {
    background: var(--gradient-primary);
    box-shadow: 0 4px 10px hsla(var(--hue-primary), 60%, 40%, 0.3);
}

/* SEO Box */
.seo-box {
    background-color: var(--color-primary-lightest);
    border-color: var(--color-primary-light);
    color: var(--color-primary-darkest);
    position: relative;
    overflow: hidden;
}
.seo-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

/* --- 7. CSS-Only Interactive Gallery --- */
.gallery-wrapper {
    position: relative;
    user-select: none;
}

/* Main Display Dimensions */
.main-image-frame {
    aspect-ratio: 4/3;
    background: var(--color-bg-body);
    box-shadow: inner 0 0 20px rgba(0,0,0,0.03);
}

.img-view {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    z-index: 1;
}

/* Thumbnail Styling */
.thumb-label {
    aspect-ratio: 1;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.thumb-overlay {
    background: rgba(255,255,255,0.4);
}

.thumb-label:hover .thumb-overlay {
    opacity: 0;
}

.thumb-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* State Logic based on Radio Inputs */

/* Show image 1 */
#img-1:checked ~ .main-image-frame .img-view-1 {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    z-index: 2;
}
#img-1:checked ~ .thumbnails-container .thumb-label-1 {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-alpha-strong);
}
#img-1:checked ~ .thumbnails-container .thumb-label-1 .thumb-overlay { opacity: 0; }

/* Show image 2 */
#img-2:checked ~ .main-image-frame .img-view-2 {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    z-index: 2;
}
#img-2:checked ~ .thumbnails-container .thumb-label-2 {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-alpha-strong);
}
#img-2:checked ~ .thumbnails-container .thumb-label-2 .thumb-overlay { opacity: 0; }

/* Show image 3 */
#img-3:checked ~ .main-image-frame .img-view-3 {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    z-index: 2;
}
#img-3:checked ~ .thumbnails-container .thumb-label-3 {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-alpha-strong);
}
#img-3:checked ~ .thumbnails-container .thumb-label-3 .thumb-overlay { opacity: 0; }

/* Show image 4 */
#img-4:checked ~ .main-image-frame .img-view-4 {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    z-index: 2;
}
#img-4:checked ~ .thumbnails-container .thumb-label-4 {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-alpha-strong);
}
#img-4:checked ~ .thumbnails-container .thumb-label-4 .thumb-overlay { opacity: 0; }


/* --- 8. CTA Section & Button Animation --- */
.cta-section {
    background: var(--color-primary-darkest);
    box-shadow: 0 25px 50px -12px hsla(var(--hue-primary), 50%, 10%, 0.5);
}

.cta-bg-elements {
    background-image: 
        radial-gradient(circle at 20% 150%, var(--color-primary-dark) 0%, transparent 50%),
        radial-gradient(circle at 80% -50%, var(--color-primary) 0%, transparent 50%);
    opacity: 0.8;
}

.btn-primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: var(--shadow-btn);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-btn-hover);
    color: white;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px -5px hsla(var(--hue-primary), 80%, 35%, 0.4);
}

/* Shine Animation effect on CTA */
.btn-shine {
    background: linear-gradient(120deg, transparent, hsla(0,0%,100%,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    animation: shine 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shine {
    0% { transform: translateX(-100%) skewX(-15deg); }
    20% { transform: translateX(200%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--color-bg-body), 0 0 0 8px var(--color-primary);
}


/* --- 9. Reviews Section (Amazon-Style Premium) --- */
.reviews-section {
    position: relative;
    z-index: 10;
}

.review-item {
    border: 1px solid transparent;
}

.review-item:hover {
    border-color: var(--color-primary-alpha);
    transform: translateY(-2px);
}

.review-bg {
    background: linear-gradient(to right, var(--color-primary-lightest), transparent);
    border-radius: 1rem;
    z-index: 0;
}

.verified-badge {
    background-color: var(--color-primary-light);
    color: var(--color-primary-darkest);
}

.avatar-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
}

/* Custom Dividers */
.divider {
    opacity: 0.6;
    margin: 1rem 0;
}


/* --- 10. Footer Styling --- */
.footer-wrapper {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top-color: var(--color-primary-light);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer-link:hover {
    color: var(--color-primary-dark);
}


/* --- 11. Responsive Media Queries (Mobile First approach enhancement) --- */

/* Super small devices */
@media (max-width: 359px) {
    .site-title { font-size: 1.5rem; }
    .btn-primary { min-width: 100%; padding-left: 1rem; padding-right: 1rem; }
    .thumbnails-container { gap: 0.5rem; }
}

/* Tablet / MD */
@media (min-width: 768px) {
    .product-section {
        box-shadow: var(--shadow-card), inset 0 0 0 1px hsla(0, 0%, 100%, 0.6);
    }
    .gallery-wrapper {
        position: sticky;
        top: 6rem;
    }
    .review-item {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Desktop / LG */
@media (min-width: 1024px) {
    .main-image-frame {
        aspect-ratio: 1 / 1; /* More squared on large screens */
    }
    .content-wrapper {
        padding-top: 1rem;
    }
    h1 {
        line-height: 1.1;
    }
}

/* High Contrast & Accessibility Settings */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .aurora-blob {
        display: none;
    }
}