/**
 * ANE.vn Custom Design System
 * Healthcare-optimized UI with Neumorphism + Minimalism
 * Generated by UI/UX Pro Max Skill
 *
 * @version 1.0.0
 * @author ANH & EM Development Team
 */

/* ============================================================================
   1. CSS VARIABLES - DESIGN TOKENS
   ============================================================================ */
:root {
    /* Primary Colors */
    --ane-primary: #0891B2;
    --ane-primary-dark: #0E7490;
    --ane-primary-light: #22D3EE;

    /* Brand Accent */
    --ane-accent: #F36E21;
    --ane-accent-dark: #EA580C;
    --ane-accent-light: #FB923C;

    /* Healthcare Green */
    --ane-success: #059669;
    --ane-success-light: #10B981;

    /* Backgrounds */
    --ane-bg-primary: #FFFFFF;
    --ane-bg-secondary: #F8FAFC;
    --ane-bg-tertiary: #ECFEFF;
    --ane-bg-dark: #164E63;

    /* Text Colors */
    --ane-text-primary: #164E63;
    --ane-text-secondary: #475569;
    --ane-text-muted: #64748B;
    --ane-text-light: #94A3B8;
    --ane-text-white: #FFFFFF;

    /* Borders */
    --ane-border-light: #E5E7EB;
    --ane-border-medium: #CBD5E1;

    /* Shadows - Neumorphism */
    --ane-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ane-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --ane-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --ane-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --ane-shadow-neu-light: -5px -5px 15px rgba(255, 255, 255, 0.8), 5px 5px 15px rgba(0, 0, 0, 0.1);
    --ane-shadow-neu-pressed: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.8);

    /* Border Radius */
    --ane-radius-sm: 6px;
    --ane-radius-md: 12px;
    --ane-radius-lg: 16px;
    --ane-radius-xl: 24px;
    --ane-radius-full: 9999px;

    /* Spacing Scale */
    --ane-space-1: 0.25rem;
    --ane-space-2: 0.5rem;
    --ane-space-3: 0.75rem;
    --ane-space-4: 1rem;
    --ane-space-5: 1.25rem;
    --ane-space-6: 1.5rem;
    --ane-space-8: 2rem;
    --ane-space-10: 2.5rem;
    --ane-space-12: 3rem;
    --ane-space-16: 4rem;
    --ane-space-20: 5rem;

    /* Typography */
    --ane-font-heading: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ane-font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --ane-text-xs: 0.75rem;
    --ane-text-sm: 0.875rem;
    --ane-text-base: 1rem;
    --ane-text-lg: 1.125rem;
    --ane-text-xl: 1.25rem;
    --ane-text-2xl: 1.5rem;
    --ane-text-3xl: 1.875rem;
    --ane-text-4xl: 2.25rem;
    --ane-text-5xl: 3rem;
    --ane-text-6xl: 3.75rem;

    /* Line Heights */
    --ane-leading-tight: 1.25;
    --ane-leading-normal: 1.5;
    --ane-leading-relaxed: 1.625;

    /* Transitions */
    --ane-transition-fast: 150ms ease;
    --ane-transition-normal: 200ms ease;
    --ane-transition-slow: 300ms ease;

    /* Z-Index Scale */
    --ane-z-dropdown: 100;
    --ane-z-sticky: 200;
    --ane-z-fixed: 300;
    --ane-z-modal-backdrop: 400;
    --ane-z-modal: 500;
    --ane-z-popover: 600;
    --ane-z-tooltip: 700;
}

/* ============================================================================
   2. GOOGLE FONTS IMPORT
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Noto+Sans:wght@400;500;700&display=swap');

/* ============================================================================
   3. BASE RESET & TYPOGRAPHY
   ============================================================================ */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ane-font-body);
    font-size: var(--ane-text-base);
    line-height: var(--ane-leading-normal);
    color: var(--ane-text-primary);
    background-color: var(--ane-bg-primary);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.widget-title {
    font-family: var(--ane-font-heading);
    font-weight: 600;
    line-height: var(--ane-leading-tight);
    color: var(--ane-text-primary);
}

h1, .h1 { font-size: var(--ane-text-5xl); }
h2, .h2 { font-size: var(--ane-text-4xl); }
h3, .h3 { font-size: var(--ane-text-3xl); }
h4, .h4 { font-size: var(--ane-text-2xl); }
h5, .h5 { font-size: var(--ane-text-xl); }
h6, .h6 { font-size: var(--ane-text-lg); }

p {
    margin-bottom: var(--ane-space-4);
    color: var(--ane-text-secondary);
}

a {
    color: var(--ane-primary);
    text-decoration: none;
    transition: color var(--ane-transition-fast);
}

a:hover {
    color: var(--ane-primary-dark);
}

/* ============================================================================
   4. HEADER & NAVIGATION
   ============================================================================ */
.site-header {
    background: var(--ane-bg-primary);
    border-bottom: 1px solid var(--ane-border-light);
    position: sticky;
    top: 0;
    z-index: var(--ane-z-sticky);
    transition: box-shadow var(--ane-transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--ane-shadow-md);
}

.main-navigation {
    font-family: var(--ane-font-heading);
}

.main-navigation .main-nav > ul > li > a {
    font-weight: 500;
    font-size: var(--ane-text-sm);
    color: var(--ane-text-primary);
    padding: var(--ane-space-4) var(--ane-space-5);
    transition: color var(--ane-transition-fast), background-color var(--ane-transition-fast);
    border-radius: var(--ane-radius-md);
}

.main-navigation .main-nav > ul > li > a:hover {
    color: var(--ane-primary);
    background-color: var(--ane-bg-tertiary);
}

.main-navigation .main-nav > ul > li.current-menu-item > a {
    color: var(--ane-primary);
    font-weight: 600;
}

/* Mobile Menu */
.menu-toggle {
    background: transparent;
    border: none;
    padding: var(--ane-space-2);
    cursor: pointer;
}

.menu-toggle .mobile-menu {
    fill: var(--ane-text-primary);
}

/* ============================================================================
   5. BUTTONS
   ============================================================================ */
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.elementor-button {
    font-family: var(--ane-font-heading);
    font-weight: 600;
    font-size: var(--ane-text-sm);
    padding: var(--ane-space-3) var(--ane-space-6);
    border-radius: var(--ane-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--ane-transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ane-space-2);
}

/* Primary Button - ANE Orange */
.button-primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.elementor-button-wrapper .elementor-button {
    background: var(--ane-accent);
    color: var(--ane-text-white);
    box-shadow: var(--ane-shadow-md);
}

.button-primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.elementor-button:hover {
    background: var(--ane-accent-dark);
    box-shadow: var(--ane-shadow-lg);
    transform: translateY(-2px);
}

/* Secondary Button */
.button-secondary {
    background: var(--ane-primary);
    color: var(--ane-text-white);
}

.button-secondary:hover {
    background: var(--ane-primary-dark);
}

/* Outline Button */
.button-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--ane-primary);
    color: var(--ane-primary);
}

.button-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--ane-primary);
    color: var(--ane-text-white);
}

/* ============================================================================
   6. CARDS & BLOG LAYOUT
   ============================================================================ */
.post-card,
article.post,
.hentry {
    background: var(--ane-bg-primary);
    border-radius: var(--ane-radius-lg);
    box-shadow: var(--ane-shadow-md);
    overflow: hidden;
    transition: all var(--ane-transition-normal);
}

.post-card:hover,
article.post:hover {
    box-shadow: var(--ane-shadow-xl);
    transform: translateY(-4px);
}

.post-card .post-image,
.post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card .post-image img,
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ane-transition-slow);
}

.post-card:hover .post-image img,
article.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-header,
.entry-content,
.entry-footer {
    padding: var(--ane-space-5);
}

.entry-title a {
    color: var(--ane-text-primary);
}

.entry-title a:hover {
    color: var(--ane-primary);
}

.entry-meta {
    font-size: var(--ane-text-sm);
    color: var(--ane-text-muted);
}

/* Blog Grid */
.blog .site-main,
.archive .site-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--ane-space-8);
}

@media (max-width: 768px) {
    .blog .site-main,
    .archive .site-main {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   7. FOOTER
   ============================================================================ */
.site-footer {
    background: var(--ane-bg-dark);
    color: var(--ane-text-white);
    padding: var(--ane-space-16) 0 var(--ane-space-8);
}

.site-footer a {
    color: var(--ane-primary-light);
}

.site-footer a:hover {
    color: var(--ane-text-white);
}

.site-footer h3,
.site-footer .widget-title {
    color: var(--ane-text-white);
    font-size: var(--ane-text-lg);
    margin-bottom: var(--ane-space-4);
}

.site-footer .footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ane-space-10);
}

.footer-bar,
.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--ane-space-10);
    padding-top: var(--ane-space-6);
    text-align: center;
    font-size: var(--ane-text-sm);
    color: var(--ane-text-light);
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--ane-radius-full);
    margin-right: var(--ane-space-2);
    transition: all var(--ane-transition-normal);
}

.social-icons a:hover {
    background: var(--ane-accent);
    transform: translateY(-3px);
}

/* ============================================================================
   8. FORMS
   ============================================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    font-family: var(--ane-font-body);
    font-size: var(--ane-text-base);
    padding: var(--ane-space-3) var(--ane-space-4);
    border: 2px solid var(--ane-border-light);
    border-radius: var(--ane-radius-md);
    background: var(--ane-bg-primary);
    color: var(--ane-text-primary);
    transition: border-color var(--ane-transition-fast), box-shadow var(--ane-transition-fast);
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--ane-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

label {
    font-family: var(--ane-font-heading);
    font-weight: 500;
    font-size: var(--ane-text-sm);
    color: var(--ane-text-primary);
    display: block;
    margin-bottom: var(--ane-space-2);
}

/* ============================================================================
   9. HERO SECTION (Elementor Compatible)
   ============================================================================ */
.hero-section,
.elementor-section.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ane-bg-tertiary) 0%, var(--ane-bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, var(--ane-primary-light) 0%, transparent 70%);
    opacity: 0.1;
}

.hero-title {
    font-size: var(--ane-text-6xl);
    font-weight: 700;
    margin-bottom: var(--ane-space-6);
    color: var(--ane-text-primary);
}

.hero-subtitle {
    font-size: var(--ane-text-xl);
    color: var(--ane-text-secondary);
    max-width: 600px;
    margin-bottom: var(--ane-space-8);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--ane-text-4xl);
    }

    .hero-subtitle {
        font-size: var(--ane-text-lg);
    }
}

/* ============================================================================
   10. UTILITIES & HELPERS
   ============================================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ane-space-6);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--ane-primary); }
.text-accent { color: var(--ane-accent); }
.text-muted { color: var(--ane-text-muted); }

.bg-primary { background-color: var(--ane-primary); }
.bg-accent { background-color: var(--ane-accent); }
.bg-light { background-color: var(--ane-bg-secondary); }
.bg-dark { background-color: var(--ane-bg-dark); }

/* Neumorphic Card */
.neu-card {
    background: var(--ane-bg-primary);
    border-radius: var(--ane-radius-lg);
    box-shadow: var(--ane-shadow-neu-light);
    padding: var(--ane-space-6);
    transition: all var(--ane-transition-normal);
}

.neu-card:hover {
    box-shadow: var(--ane-shadow-lg);
}

/* ============================================================================
   11. ACCESSIBILITY
   ============================================================================ */
:focus-visible {
    outline: 2px solid var(--ane-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================================
   12. WOOCOMMERCE INTEGRATION (if active)
   ============================================================================ */
.woocommerce .products .product {
    background: var(--ane-bg-primary);
    border-radius: var(--ane-radius-lg);
    box-shadow: var(--ane-shadow-md);
    padding: var(--ane-space-4);
    transition: all var(--ane-transition-normal);
}

.woocommerce .products .product:hover {
    box-shadow: var(--ane-shadow-xl);
    transform: translateY(-4px);
}

.woocommerce .button.add_to_cart_button {
    background: var(--ane-accent);
    color: var(--ane-text-white);
}

.woocommerce .button.add_to_cart_button:hover {
    background: var(--ane-accent-dark);
}

/* ============================================================================
   13. WEBINAR GATE PLUGIN STYLING
   ============================================================================ */
.ane-wg-form-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.ane-wg-form-wrapper input[type="email"] {
    border: 2px solid var(--ane-border-light);
    border-radius: var(--ane-radius-md);
    padding: var(--ane-space-4);
    font-size: var(--ane-text-base);
}

.ane-wg-form-wrapper input[type="email"]:focus {
    border-color: var(--ane-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.ane-wg-form-wrapper button[type="submit"] {
    background: var(--ane-accent);
    color: var(--ane-text-white);
    font-weight: 600;
    padding: var(--ane-space-4) var(--ane-space-8);
    border-radius: var(--ane-radius-md);
    width: 100%;
    margin-top: var(--ane-space-4);
}

.ane-wg-form-wrapper button[type="submit"]:hover {
    background: var(--ane-accent-dark);
    box-shadow: var(--ane-shadow-lg);
}

.ane-wg-success,
.ane-wg-error {
    padding: var(--ane-space-4);
    border-radius: var(--ane-radius-md);
    margin-bottom: var(--ane-space-4);
}

.ane-wg-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--ane-success);
    border: 1px solid var(--ane-success);
}

.ane-wg-error {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    border: 1px solid #DC2626;
}
