/* ============================================
   KERASTON - Custom Styles
   Premium Haircare Landing Page
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1e1e1e;
    --accent: #00d4aa;
    --accent-hover: #00b894;
    --amber: #d4a574;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #787878;
    
    /* Gender-specific accent colors */
    --accent-men: #00d4aa;
    --accent-men-hover: #00b894;
    --accent-women: #e8a07a;
    --accent-women-hover: #d4896a;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.15);
    --shadow-glow-women: 0 0 40px rgba(232, 160, 122, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.75;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.02em;
}

/* Gender-specific theme: Men (default) */
body[data-gender="men"], body:not([data-gender]) {
    --accent: var(--accent-men);
    --accent-hover: var(--accent-men-hover);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.15);
}

/* Gender-specific theme: Women */
body[data-gender="women"] {
    --accent: var(--accent-women);
    --accent-hover: var(--accent-women-hover);
    --shadow-glow: 0 0 40px rgba(232, 160, 122, 0.15);
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: var(--line-height-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   TYPOGRAPHY IMPROVEMENTS
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    line-height: var(--line-height-relaxed);
}

/* Improved text contrast for secondary text */
.text-text-secondary {
    color: var(--text-secondary) !important;
}

/* Better readability for small text */
small, .text-sm {
    letter-spacing: var(--letter-spacing-wide);
}

/* FAQ and list text improvements */
.faq-content p,
.text-text-secondary {
    line-height: var(--line-height-relaxed);
}

/* ============================================
   TAILWIND ACCENT OVERRIDES
   Ensure accent utilities follow gender theme
   ============================================ */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

.bg-accent-hover {
    background-color: var(--accent-hover) !important;
}

.hover\:text-accent:hover {
    color: var(--accent) !important;
}

.hover\:bg-accent-hover:hover {
    background-color: var(--accent-hover) !important;
}

.hover\:border-accent:hover {
    border-color: var(--accent) !important;
}

.focus\:border-accent:focus {
    border-color: var(--accent) !important;
}

.focus\:ring-accent:focus {
    --tw-ring-color: var(--accent) !important;
}

/* Selection */
::selection {
    background-color: var(--accent);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   GENDER TOGGLE
   ============================================ */
.gender-toggle {
    position: relative;
    background: var(--bg-card);
    border-radius: 9999px;
    padding: 4px;
    overflow: hidden;
}

/* Sliding background indicator */
.gender-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--accent);
    border-radius: 9999px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    z-index: 0;
}

/* Move indicator to right when women is selected */
body[data-gender="women"] .gender-toggle::before {
    transform: translateX(100%);
    background: var(--accent-women);
}

.toggle-btn {
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.15s ease;
}

.toggle-btn.active {
    color: var(--bg-primary);
    background: transparent;
}

.toggle-btn:not(.active):hover {
    color: var(--text-primary);
}

.toggle-btn:active {
    transform: scale(0.95);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-glow {
    background: radial-gradient(
        ellipse 80% 50% at 50% 50%,
        rgba(0, 212, 170, 0.15) 0%,
        transparent 70%
    );
    transition: background var(--transition-slow);
}

.hero-left-dim {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0) 80%);
    opacity: 0;
    transition: opacity 300ms ease;
    transform: translateX(-20px);
    width: calc(100% + 20px);
    z-index: 1;
}

#hero:hover .hero-left-dim {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-product-image {
        display: none;
    }
}

@media (max-width: 640px) {
    body[data-gender="men"] #hero,
    body:not([data-gender]) #hero {
        background-image: url('../images/f0da68a5-aa7a-4c96-becf-129cf5abe052.webp') !important;
    }

    body[data-gender="women"] #hero {
        background-image: url('../images/963f4770-7568-4967-8c4c-b45e957fe4ce.webp') !important;
    }

    #hero {
        background-size: cover !important;
        background-position: center 70% !important;
        min-height: 560px;
    }

    .hero-left-dim {
        opacity: 1;
        transform: none;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.25) 100%);
    }

    #hero .grid {
        gap: 2rem;
        align-items: flex-start;
    }

    #hero .text-center {
        text-align: center;
    }

    #hero #hero-headline,
    #hero #hero-subheadline,
    #hero #hero-subheadline + p,
    #hero #hero-benefits,
    #hero #hero-benefits li {
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    #hero #hero-subheadline,
    #hero #hero-subheadline + p,
    #hero #hero-benefits span.text-text-secondary,
    #hero #hero-benefits [data-benefit] {
        color: #ffffff !important;
    }

    #hero .space-y-4 {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Gender-specific hero glow */
body[data-gender="women"] .hero-glow {
    background: radial-gradient(
        ellipse 80% 50% at 50% 50%,
        rgba(232, 160, 122, 0.15) 0%,
        transparent 70%
    );
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item.active {
    border-color: rgba(0, 212, 170, 0.3);
}

/* Gender-specific FAQ active state */
body[data-gender="women"] .faq-item.active {
    border-color: rgba(232, 160, 122, 0.3);
}

.faq-trigger {
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-trigger:hover {
    color: var(--accent);
}

.faq-trigger span.font-semibold {
    font-weight: 600;
    line-height: 1.4;
}

.faq-icon {
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    animation: fadeIn var(--transition-normal);
}

.faq-content p {
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */
#mobile-sticky-cta {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

#mobile-sticky-cta.visible {
    transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: all var(--transition-normal);
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    transition: all var(--transition-normal);
    letter-spacing: 0.01em;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.08);
}

/* "Scopri di più" secondary button in hero - improved visibility */
a[href="#come-funziona"].border {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

a[href="#come-funziona"].border:hover {
    border-color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* CTA Button improvements (inline buttons in HTML) */
a[href="#contatti"].bg-accent,
a[href="#acquista"].bg-accent,
button[type="submit"].bg-accent {
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 12px rgba(0, 212, 170, 0.25);
}

a[href="#contatti"].bg-accent:hover,
a[href="#acquista"].bg-accent:hover,
button[type="submit"].bg-accent:hover {
    box-shadow: 0 4px 24px rgba(0, 212, 170, 0.4);
    transform: translateY(-2px);
}

/* Gender-specific button shadows */
body[data-gender="women"] .btn-primary {
    box-shadow: 0 2px 8px rgba(232, 160, 122, 0.2);
}

body[data-gender="women"] .btn-primary:hover {
    box-shadow: 0 4px 20px rgba(232, 160, 122, 0.35);
}

body[data-gender="women"] a[href="#contatti"].bg-accent,
body[data-gender="women"] a[href="#acquista"].bg-accent,
body[data-gender="women"] button[type="submit"].bg-accent {
    box-shadow: 0 2px 12px rgba(232, 160, 122, 0.25);
}

body[data-gender="women"] a[href="#contatti"].bg-accent:hover,
body[data-gender="women"] a[href="#acquista"].bg-accent:hover,
body[data-gender="women"] button[type="submit"].bg-accent:hover {
    box-shadow: 0 4px 24px rgba(232, 160, 122, 0.4);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: var(--shadow-card);
}

/* Gender-specific card hover */
body[data-gender="women"] .card:hover {
    border-color: rgba(232, 160, 122, 0.3);
}

/* Card title improvements */
.card h3,
.bg-bg-card h3,
.bg-bg-card\/50 h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Card text improvements */
.card p,
.bg-bg-card p {
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
input, textarea {
    transition: all var(--transition-fast);
    font-size: 1rem;
    line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

/* Form labels */
label {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Gender-specific form focus */
body[data-gender="women"] input:focus,
body[data-gender="women"] textarea:focus {
    box-shadow: 0 0 0 3px rgba(232, 160, 122, 0.15);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effect */
.glow {
    box-shadow: var(--shadow-glow);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }

    h1 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2.1rem);
    }

    h3 {
        font-size: clamp(1.15rem, 4.2vw, 1.35rem);
    }

    #hero-subheadline {
        font-size: 1rem;
    }

    #hero-benefits {
        margin-bottom: 2rem;
    }

    #hero a[href="#contatti"],
    #hero a[href="#come-funziona"] {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    #hero .flex.flex-col.sm\:flex-row {
        gap: 0.75rem;
    }

    #hero .gender-toggle .toggle-btn {
        padding: 0.45rem 1rem;
        font-size: 0.875rem;
    }

    #perche,
    #come-funziona,
    #come-usare,
    #risultati,
    #faq,
    #acquista {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    #benefits-image,
    #faq-image {
        max-height: 280px;
        object-position: center;
    }

    .product-purchase-card {
        padding: 1.5rem;
    }

    .product-purchase-card .product-image-wrapper {
        margin: 0 auto;
    }

    .product-purchase-card .product-image-wrapper .relative {
        width: 10rem;
        height: 14rem;
    }

    .product-purchase-card .product-image-wrapper .absolute.-top-2.-right-2 {
        top: -0.4rem;
        right: -0.4rem;
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .product-purchase-card .text-5xl {
        font-size: 2.5rem;
        line-height: 1;
    }

    .product-purchase-card .text-xl {
        font-size: 1rem;
    }

    .product-purchase-card .flex.items-baseline {
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-purchase-card a[href="#contatti"] {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    #risultati .space-y-4 > li {
        padding: 0.75rem;
        gap: 0.75rem;
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}


/* ============================================
   ACCESSIBILITY
   ============================================ */
/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Gender-specific focus visible */
body[data-gender="women"] :focus-visible {
    outline-color: var(--accent-women);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================
   PRODUCT PURCHASE CARD - ACQUISTA SECTION
   ============================================ */
.product-purchase-card {
    background: linear-gradient(
        145deg,
        rgba(25, 25, 25, 1) 0%,
        rgba(18, 18, 18, 1) 50%,
        rgba(0, 212, 170, 0.05) 100%
    );
}

body[data-gender="women"] .product-purchase-card {
    background: linear-gradient(
        145deg,
        rgba(25, 25, 25, 1) 0%,
        rgba(18, 18, 18, 1) 50%,
        rgba(232, 160, 122, 0.05) 100%
    );
}

/* Product image wrapper glow */
.product-image-wrapper > div:first-child {
    background: rgba(0, 212, 170, 0.15);
}

body[data-gender="women"] .product-image-wrapper > div:first-child {
    background: rgba(232, 160, 122, 0.15);
}

/* Product image container border */
.product-image-wrapper .border-2 {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 212, 170, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-gender="women"] .product-image-wrapper .border-2 {
    border-color: rgba(232, 160, 122, 0.3);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(232, 160, 122, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hero product image glow effect */
.hero-section img[alt*="Keraston"] {
    filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.2));
}

body[data-gender="women"] .hero-section img[alt*="Keraston"] {
    filter: drop-shadow(0 0 20px rgba(232, 160, 122, 0.2));
}

/* Hero product shadow - under 10.png (hidden by default) */
/* Dark shadow/vignette effect for both modes */
.hero-product-glow {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.9) 25%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.35) 70%,
        transparent 85%
    );
    filter: blur(40px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show shadow on hero section hover */
#hero:hover .hero-product-glow {
    opacity: 1;
}

/* Info cards on the right */
#acquista .space-y-6 > .p-6.bg-bg-card {
    background: rgba(22, 22, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

#acquista .space-y-6 > .p-6.bg-bg-card:hover {
    background: rgba(28, 28, 28, 1);
    border-color: rgba(0, 212, 170, 0.2);
    transform: translateY(-2px);
}

body[data-gender="women"] #acquista .space-y-6 > .p-6.bg-bg-card:hover {
    border-color: rgba(232, 160, 122, 0.2);
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */
.contact-form-card {
    max-width: 700px;
    margin: 0 auto;
}

/* Form inputs styling */
.form-input {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

body[data-gender="women"] .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 160, 122, 0.1);
}

/* Form group label icons */
.form-group label svg {
    opacity: 0.8;
}

/* Contact form card glow - gender specific */
body[data-gender="women"] .contact-form-card > div:first-child {
    background: linear-gradient(to right, rgba(232, 160, 122, 0.2), rgba(232, 160, 122, 0.05), rgba(232, 160, 122, 0.2));
}

/* Background decorations - gender specific */
body[data-gender="women"] #contatti > div:first-child,
body[data-gender="women"] #contatti > div:nth-child(2) {
    background: rgba(232, 160, 122, 0.05);
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--accent);
    transition: all var(--transition-normal);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Gender-specific trust badge */
body[data-gender="women"] .trust-badge {
    background: rgba(232, 164, 184, 0.1);
}

/* Section badges/labels */
.bg-accent\/10.text-accent {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Inline badges in HTML */
span.inline-block.px-4.py-1\.5.bg-accent\/10 {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
}

/* ============================================
   TOOLTIP
   ============================================ */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   NOTIFICATION BADGE
   ============================================ */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ============================================
   PRICE DISPLAY
   ============================================ */
.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.price-original {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.price-discount {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* Gender-specific price discount */
body[data-gender="women"] .price-discount {
    background: rgba(232, 164, 184, 0.2);
}

/* Inline price styling in product cards */
.text-4xl.font-bold.text-accent {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============================================
   TAILWIND OVERRIDES FOR GENDER-SPECIFIC COLORS
   ============================================ */
/* Override Tailwind bg-accent with CSS variable */
body[data-gender="women"] .bg-accent {
    background-color: var(--accent-women) !important;
}

body[data-gender="women"] .hover\:bg-accent-hover:hover {
    background-color: var(--accent-women-hover) !important;
}

/* Override Tailwind text-accent with CSS variable */
body[data-gender="women"] .text-accent {
    color: var(--accent-women) !important;
}

/* Override Tailwind border-accent with CSS variable */
body[data-gender="women"] .border-accent {
    border-color: var(--accent-women) !important;
}

/* Override accent backgrounds with opacity */
body[data-gender="women"] .bg-accent\/10,
body[data-gender="women"] [class*="bg-accent/10"] {
    background-color: rgba(232, 164, 184, 0.1) !important;
}

body[data-gender="women"] .bg-accent\/20,
body[data-gender="women"] [class*="bg-accent/20"] {
    background-color: rgba(232, 164, 184, 0.2) !important;
}

body[data-gender="women"] .bg-accent\/25,
body[data-gender="women"] [class*="bg-accent/25"] {
    background-color: rgba(232, 164, 184, 0.25) !important;
}

/* Override accent borders with opacity */
body[data-gender="women"] .border-accent\/20,
body[data-gender="women"] [class*="border-accent/20"] {
    border-color: rgba(232, 164, 184, 0.2) !important;
}

body[data-gender="women"] .border-accent\/30,
body[data-gender="women"] [class*="border-accent/30"] {
    border-color: rgba(232, 164, 184, 0.3) !important;
}

/* Override hover states */
body[data-gender="women"] .hover\:border-accent\/20:hover,
body[data-gender="women"] [class*="hover:border-accent/20"]:hover {
    border-color: rgba(232, 164, 184, 0.2) !important;
}

body[data-gender="women"] .hover\:border-accent\/30:hover,
body[data-gender="women"] [class*="hover:border-accent/30"]:hover {
    border-color: rgba(232, 164, 184, 0.3) !important;
}

/* Override shadow-accent */
body[data-gender="women"] .shadow-accent\/25,
body[data-gender="women"] [class*="shadow-accent/25"] {
    --tw-shadow-color: rgba(232, 164, 184, 0.25) !important;
}

body[data-gender="women"] .hover\:shadow-accent\/25:hover,
body[data-gender="women"] [class*="hover:shadow-accent/25"]:hover {
    --tw-shadow-color: rgba(232, 164, 184, 0.25) !important;
}

/* Override gradient from-accent */
body[data-gender="women"] .from-accent\/20,
body[data-gender="women"] [class*="from-accent/20"] {
    --tw-gradient-from: rgba(232, 164, 184, 0.2) var(--tw-gradient-from-position) !important;
}

body[data-gender="women"] .from-accent\/5,
body[data-gender="women"] [class*="from-accent/5"] {
    --tw-gradient-from: rgba(232, 164, 184, 0.05) var(--tw-gradient-from-position) !important;
}

body[data-gender="women"] .to-accent\/5,
body[data-gender="women"] [class*="to-accent/5"] {
    --tw-gradient-to: rgba(232, 164, 184, 0.05) var(--tw-gradient-to-position) !important;
}

body[data-gender="women"] .to-accent\/50,
body[data-gender="women"] [class*="to-accent/50"] {
    --tw-gradient-to: rgba(232, 164, 184, 0.5) var(--tw-gradient-to-position) !important;
}

body[data-gender="women"] .from-accent,
body[data-gender="women"] [class*="from-accent"]:not([class*="from-accent/"]) {
    --tw-gradient-from: var(--accent-women) var(--tw-gradient-from-position) !important;
}

body[data-gender="women"] .to-accent,
body[data-gender="women"] [class*="to-accent"]:not([class*="to-accent/"]) {
    --tw-gradient-to: var(--accent-women) var(--tw-gradient-to-position) !important;
}

/* Smooth transition for all accent-colored elements */
.bg-accent,
.text-accent,
.border-accent,
[class*="bg-accent/"],
[class*="text-accent/"],
[class*="border-accent/"] {
    transition: all var(--transition-normal);
}

/* ============================================
   ADDITIONAL TYPOGRAPHY & UI IMPROVEMENTS
   ============================================ */

/* Section headers improvements */
section h2 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

section h2 .text-accent {
    font-weight: 700;
}

/* List items in cards and sections */
ul.space-y-2 li,
ul.space-y-4 li {
    line-height: 1.5;
}

/* Benefits list styling */
ul.space-y-4 li span.text-text-secondary {
    line-height: 1.5;
}

/* Info cards list items */
.bg-bg-card ul li {
    line-height: 1.6;
}

/* Step numbers in how-to section */
.w-20.h-20 span.text-2xl {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Step titles */
.text-center h3.text-lg {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Mobile sticky CTA improvements */
#mobile-sticky-cta a {
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 2px 12px rgba(0, 212, 170, 0.25);
}

body[data-gender="women"] #mobile-sticky-cta a {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 2px 12px rgba(232, 160, 122, 0.25);
}

/* Footer text improvements */
footer p {
    line-height: var(--line-height-relaxed);
}

footer h4 {
    font-weight: 600;
    letter-spacing: 0.01em;
}

footer ul li a {
    line-height: 1.6;
}

/* Header CTA button */
header a.bg-accent {
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Toggle buttons */
.toggle-btn {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.toggle-btn.active {
    font-weight: 600;
}

/* Product card title */
.bg-bg-card h3.text-2xl {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Disclaimer text */
p.text-text-muted.text-sm.italic {
    line-height: 1.6;
    font-style: italic;
}

/* Pro tip box */
.border-accent\/20 h4 {
    font-weight: 600;
}

.border-accent\/20 p {
    line-height: var(--line-height-relaxed);
}

/* ============================================
   SECTION BACKGROUNDS & TRANSITIONS
   ============================================ */

/* Smooth gradient transitions between sections */
section.bg-bg-secondary {
    position: relative;
}

/* Top gradient fade for secondary sections */
section.bg-bg-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        var(--bg-primary) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Bottom gradient fade for secondary sections */
section.bg-bg-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to top,
        var(--bg-primary) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Primary sections with subtle top glow */
section.bg-bg-primary {
    position: relative;
}

section.bg-bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(0, 212, 170, 0.03) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Gender-specific section glow */
body[data-gender="women"] section.bg-bg-primary::before {
    background: linear-gradient(
        to bottom,
        rgba(232, 160, 122, 0.03) 0%,
        transparent 100%
    );
}

/* Subtle pattern overlay for secondary sections */
section.bg-bg-secondary > .relative {
    position: relative;
    z-index: 2;
}

/* Card backgrounds with subtle gradient */
.bg-bg-card {
    background: linear-gradient(
        135deg,
        var(--bg-card) 0%,
        rgba(30, 30, 30, 0.8) 100%
    );
}

/* Improved card hover states */
.bg-bg-card:hover,
[class*="bg-bg-card"]:hover {
    background: linear-gradient(
        135deg,
        rgba(40, 40, 40, 1) 0%,
        rgba(35, 35, 35, 0.9) 100%
    );
}

/* Section divider line */
.section-divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.08) 80%,
        transparent 100%
    );
    margin: 0 auto;
}

/* Accent glow for important sections */
section#risultati::before,
section#acquista::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 212, 170, 0.05) 0%,
        transparent 50%
    );
    height: 200px;
}

body[data-gender="women"] section#risultati::before,
body[data-gender="women"] section#acquista::before {
    background: linear-gradient(
        to bottom,
        rgba(232, 160, 122, 0.05) 0%,
        transparent 50%
    );
}
