/*
Theme Name: 嬰粉實驗室
Author: WordPress Telex
Description: A playful, modern maternity and baby product showcase theme designed for Hong Kong Chinese audiences. Features soft pink backgrounds, mint green and sky blue accents, coral red CTAs, and rounded typography.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: babypink-lab
Tags: block-theme, full-site-editing, e-commerce, baby, maternity

嬰粉實驗室 — 聰明育兒新世代
*/

/* Dot pattern background */
.dot-pattern-bg {
    position: relative;
}
.dot-pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffffff 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.dot-pattern-bg > * {
    position: relative;
    z-index: 1;
}

/* Circular hero image */
.hero-circle-image img {
    border-radius: 50% !important;
    border: 12px solid #ffffff;
    box-shadow:
        -15px 20px 0 #A8D8C8,
        25px -15px 0 #B8D4E8,
        0 30px 60px rgba(0,0,0,0.08);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.hero-circle-image:hover img {
    transform: scale(1.02) rotate(2deg);
}
.hero-circle-image figure {
    max-width: clamp(300px, 50vw, 600px);
    margin: 0 auto;
}

/* Floating tag cards */
.floating-tag {
    background: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.floating-tag:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.floating-tag::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.floating-tag.tag-mint::before { background-color: #A8D8C8; }
.floating-tag.tag-blue::before { background-color: #B8D4E8; }
.floating-tag.tag-coral::before { background-color: #FF6B6B; }

/* Circular CTA button */
.circle-cta .wp-block-button__link {
    width: clamp(110px, 14vw, 160px);
    height: clamp(110px, 14vw, 160px);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    line-height: 1.2;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #FFF0EE;
    padding: 0;
    text-align: center;
}
.circle-cta .wp-block-button__link:hover {
    transform: scale(1.1) rotate(-8deg);
    background-color: #1A1A1A !important;
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.3);
}

/* Pill navigation links */
.pill-nav .wp-block-navigation-item a {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pill-nav .wp-block-navigation-item a:hover {
    background-color: #ffffff;
    color: #FF6B6B;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* Product cards */
.product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.product-card a {
    text-decoration: none;
    color: inherit;
}
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Category pill badges */
.category-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Equal cards layout */
.equal-cards > .wp-block-column {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.equal-cards .cta-bottom {
    margin-top: auto;
    justify-content: center;
}

/* Section divider wave */
.wave-divider {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #A8D8C8 0%, #B8D4E8 100%);
    clip-path: polygon(0 0, 100% 40%, 100% 100%, 0% 60%);
}

/* Vertical text for hero */
.vertical-slogan {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: -2px;
    text-shadow: 4px 4px 0px #ffffff;
}

/* Bounce animation for hero elements */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float-gentle 3s ease-in-out infinite;
}
.animate-float-delay {
    animation: float-gentle 3s ease-in-out 1s infinite;
}
.animate-float-delay-2 {
    animation: float-gentle 3s ease-in-out 2s infinite;
}

/* Feature section icons */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Testimonial cards */
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: #A8D8C8;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
    font-family: serif;
}

/* Price tag styling */
.price-tag {
    font-weight: 900;
    color: #FF6B6B;
}

/* Footer styling */
.wp-site-blocks > footer {
    margin-block-start: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile responsive adjustments */
@media (max-width: 782px) {
    .vertical-slogan {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        text-align: center;
        letter-spacing: normal;
    }
    .hero-circle-image figure {
        max-width: 280px;
    }
}