/* CSS Styling for TJ Organic Countdown Plugin */

:root {
    --primary-color: #3D5A34; /* Deep organic green */
    --accent-gold: #B59461;   /* Rich warm gold */
    --text-dark: #2A3325;     /* Soft dark green/black */
    --bg-cream: #FCFAF6;      /* Premium warm ivory */
    --card-bg: rgba(255, 255, 255, 0.92); /* Semi-transparent background */
    --font-serif: 'Playfair Display', 'Cinzel', serif;
    --font-sans: 'Outfit', 'Inter', sans-serif;
}

/* Base resets scoped to plugin container */
.landing-bg * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Plugin container setting height dynamically */
.landing-bg {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow: hidden;
    font-family: var(--font-sans);
    color: var(--text-dark);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(252, 250, 246, 0.97) 0%,
        rgba(252, 250, 246, 0.93) 50%,
        rgba(252, 250, 246, 0.82) 100%
    );
    z-index: 1;
}

.main-wrapper {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Stretches elements across viewport height */
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

/* Floating Leaves (Slow, Mild & Graceful CSS Animation) */
.leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    border-radius: 0 100px;
    transform-origin: center;
    animation: floatLeaf 26s linear infinite;
}

@keyframes floatLeaf {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: var(--leaf-opacity, 0.35);
    }
    90% {
        opacity: var(--leaf-opacity, 0.35);
    }
    100% {
        transform: translateY(105vh) translateX(var(--drift-x, 80px)) rotate(var(--target-rotation, 360deg));
        opacity: 0;
    }
}

/* Header Section */
.header-section {
    width: 100%;
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.logo-svg {
    width: 44px;
    height: 34px;
    animation: leafSway 4s ease-in-out infinite;
}

.brand-logo-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
    width: 100%;
}

.brand-logo-img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    animation: leafSway 6s ease-in-out infinite;
}

@keyframes leafSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.launching-soon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.launching-soon-wrapper .line {
    height: 1.5px;
    width: 35px;
    background-color: var(--accent-gold);
}

.launching-text {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-gold);
}

/* Hero Section */
.hero-section {
    width: 100%;
    padding: 0 5px;
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 6px;
}

/* Golden Shimmer */
.gold-shimmer {
    background: linear-gradient(
        to right,
        #B59461 0%,
        #e5c596 25%,
        #B59461 50%,
        #e5c596 75%,
        #B59461 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 5s linear infinite;
    font-weight: 700;
    display: inline-block;
}

@keyframes shineText {
    to { background-position: -200% center; }
}

.italic-gold {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.decorative-separator {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.separator-svg {
    width: 100px;
    height: 15px;
}

.hero-desc {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: #353D30;
    font-weight: 500;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Countdown Section */
.countdown-section {
    width: 100%;
    flex-shrink: 0;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.countdown-card-wrapper {
    flex: 1;
    max-width: 90px;
}

.countdown-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px 6px;
    box-shadow: 0 8px 24px rgba(61, 90, 52, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-style: preserve-3d;
}

.countdown-card:hover {
    box-shadow: 0 12px 30px rgba(61, 90, 52, 0.12);
}

.countdown-card .number {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    height: 2.1rem;
    overflow: hidden;
    display: block;
    transform: translateZ(20px);
}

.digit-box {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.digit-val {
    height: 2.1rem;
    line-height: 2.1rem;
    display: block;
}

.countdown-card .label {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #616F5A;
    margin-top: 2px;
    transform: translateZ(10px);
}

.card-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.dot-sep {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dot-sep::before,
.dot-sep::after {
    content: '';
    display: block;
    width: 3.5px;
    height: 3.5px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.8;
}

/* Features Section */
.features-section {
    width: 100%;
    padding: 0 5px;
    flex-shrink: 0;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    max-width: 440px;
    margin: 0 auto;
}

.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.feature-icon {
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

.feature-title {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.feature-subtitle {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

/* Product Showcase */
.products-section {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    align-items: center;
    min-height: 180px;
    max-height: 30vh;
    margin: 5px 0;
}

.products-container {
    height: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(42, 51, 37, 0.12);
    background-color: transparent;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
}

.products-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shine Sweep */
.shine-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 9;
    animation: shineSweep 8s infinite ease-in-out;
}

@keyframes shineSweep {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

/* Bottle Hotspots */
.bottle-hotspot {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(181, 148, 97, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(181, 148, 97, 0.6);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(181, 148, 97, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(181, 148, 97, 0);
    }
}

.bottle-hotspot:hover .pulse-dot {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Glassmorphism Tooltip Display */
.product-tooltip {
    position: absolute;
    bottom: 10px;
    left: 8px;
    right: 8px;
    background: rgba(26, 32, 23, 0.94);
    border: 1px solid var(--accent-gold);
    color: #F9F7F4;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.95;
    z-index: 15;
    pointer-events: none;
    transform: translateZ(25px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    font-family: var(--font-sans);
}

.product-tooltip.active {
    background: var(--primary-color);
    border-color: #FFF;
    transform: scale(1.02) translateZ(30px);
}

/* Footer Section */
.footer-section {
    width: 100%;
    flex-shrink: 0;
    padding-bottom: 5px;
}

.footer-separator {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.copyright {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 1px;
    opacity: 0.9;
}

.tagline {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
}

/* Sequential Staggered Entrance Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-logo { animation-delay: 0.1s; }
.delay-brand { animation-delay: 0.25s; }
.delay-launch { animation-delay: 0.4s; }

.delay-title { animation-delay: 0.55s; }
.delay-separator { animation-delay: 0.68s; }
.delay-desc { animation-delay: 0.8s; }

.delay-card-1 { animation-delay: 1.0s; }
.delay-card-2 { animation-delay: 1.1s; }
.delay-card-3 { animation-delay: 1.2s; }
.delay-card-4 { animation-delay: 1.3s; }

.delay-feat-1 { animation-delay: 1.5s; }
.delay-feat-2 { animation-delay: 1.58s; }
.delay-feat-3 { animation-delay: 1.66s; }
.delay-feat-4 { animation-delay: 1.74s; }
.delay-feat-5 { animation-delay: 1.82s; }

.delay-prod { animation-delay: 2.0s; }
.delay-foot { animation-delay: 2.25s; }

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

/* Height Responsive adjustments */
@media (max-height: 650px) {
    .main-wrapper {
        padding: 5px 0;
    }
    .brand-logo-img {
        max-height: 40px;
    }
    .brand-name {
        font-size: 1.5rem;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-desc {
        font-size: 0.8rem;
    }
    .countdown-card {
        padding: 8px 4px;
    }
    .countdown-card .number {
        font-size: 1.5rem;
        height: 1.8rem;
    }
    .digit-val {
        height: 1.8rem;
        line-height: 1.8rem;
    }
    .feature-title {
        font-size: 0.58rem;
    }
    .feature-subtitle {
        font-size: 0.48rem;
    }
    .feature-icon {
        width: 18px;
        height: 18px;
    }
    .products-section {
        max-height: 25vh;
    }
}

@media (max-width: 480px) {
    .landing-bg {
        padding: 10px;
    }
    .brand-logo-img {
        max-height: 40px;
    }
    .brand-name {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-desc {
        font-size: 0.8rem;
    }
    .countdown-container {
        gap: 4px;
    }
    .countdown-card {
        padding: 8px 2px;
        border-radius: 8px;
    }
    .countdown-card .number {
        font-size: 1.5rem;
        height: 1.8rem;
    }
    .digit-val {
        height: 1.8rem;
        line-height: 1.8rem;
    }
    .countdown-card .label {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }
    .features-grid {
        gap: 4px;
    }
    .feature-title {
        font-size: 0.58rem;
    }
    .feature-subtitle {
        font-size: 0.48rem;
    }
    .feature-icon {
        width: 18px;
        height: 18px;
    }
}
