/**
 * Wellflow Clinical Stylesheet
 * Custom CSS for animations, interactions, and layout refinements
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #52a436;
    --secondary: #1a1c1a;
    --tertiary: #b00020;
    --on-background: #1a1c1a;
    --surface-variant: #f4f7f4;
    --outline: #e1e3e1;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation & Header --- */
.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Ensure header links are vertically centered */
#main-header nav .max-w-7xl {
    display: flex;
    align-items: center;
}

/* --- Animations --- */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulseSubtle {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-scale-up {
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-pulse-subtle {
    animation: pulseSubtle 2s ease-in-out infinite;
}

/* --- Product Cards --- */
.product-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    border-color: rgba(82, 164, 54, 0.1);
}

.product-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

/* --- Custom Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Hide Scrollbar Utility --- */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Utilities --- */
.vibrant-gradient {
    background: linear-gradient(135deg, #52a436 0%, #1a1c1a 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Mobile Nav Link Animation */
#mobile-nav.active a {
    opacity: 1;
    transform: translateX(0);
}

#mobile-nav a {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific button styles for hover screenshots */
.btn-pill-white {
    background: white;
    color: #1a1c1a;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-pill-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.3);
    background: #f9f9f9;
}

/* --- PRO ZOOM MAGNIFIER (User Standard) --- */
.main-image-container {
    position: relative;
    overflow: visible !important;
    cursor: crosshair;
}

.zoom-lens {
    position: absolute;
    border: 1px solid rgba(82, 164, 54, 0.4);
    background-color: rgba(82, 164, 54, 0.05);
    pointer-events: none;
    display: none;
    z-index: 10;
}

.zoom-lens.active {
    display: block;
}

.zoom-window {
    position: fixed;
    z-index: 999999;
    width: 600px;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    border: 1px solid rgba(82, 164, 54, 0.1);
}

.zoom-window.active {
    opacity: 1;
    visibility: visible;
}

.zoom-window.locked {
    border: 2px solid var(--primary);
}

.zoom-instr {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(26, 28, 26, 0.8);
    color: white;
    font-size: 0.65rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 20;
}

/* --- PREMIUM BUTTON HOVER (Styvora Port) --- */
.btn-pro-wellflow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #1a1c1a;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    cursor: pointer;
}

.btn-pro-wellflow:hover {
    background-color: var(--primary); /* Pharmacy Green */
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(82, 164, 54, 0.3);
}

.btn-pro-wellflow .btn-text {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pro-wellflow:hover .btn-text {
    transform: translateX(-12px);
}

.btn-pro-wellflow .btn-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pro-wellflow:hover .btn-icon {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* --- MATERIAL SYMBOLS FIX --- */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none !important;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.material-symbols-outlined.fill-current {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48 !important;
}
