/* Dental Voice Pro - Theme System with Green/Teal Palette */

/* ============================================
   THEME VARIABLES - Light & Dark Modes
   ============================================ */

:root {
    /* Green/Teal Color Palette */
    --color-primary: #10B981;           /* Emerald green */
    --color-primary-hover: #059669;     /* Darker emerald */
    --color-primary-light: #D1FAE5;     /* Light tint */
    --color-secondary: #14B8A6;         /* Teal */
    --color-secondary-hover: #0D9488;   /* Darker teal */
    --color-secondary-light: #CCFBF1;   /* Light tint */
    --color-accent: #059669;            /* Dark green */
    --color-accent-hover: #047857;      /* Even darker */

    /* Cream Backgrounds for Light Theme */
    --color-cream: #FAF9F6;
    --color-cream-dark: #F5F4F1;
    --color-cream-darker: #EDEAE5;

    /* Light Theme Colors */
    --bg-primary: var(--color-cream);
    --bg-secondary: #FFFFFF;
    --bg-tertiary: var(--color-cream-dark);
    --bg-card: #FFFFFF;
    --bg-card-hover: var(--color-cream);

    /* Text Colors - Light Theme */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --text-muted: #94A3B8;

    /* Border Colors */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-dark: #94A3B8;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(16, 185, 129, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(16, 185, 129, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(16, 185, 129, 0.2);

    /* Status Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #14B8A6;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-theme: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DARK THEME
   ============================================ */

[data-theme="dark"] {
    /* Dark Theme Backgrounds */
    --bg-primary: #0F172A;              /* Slate 900 */
    --bg-secondary: #1E293B;            /* Slate 800 */
    --bg-tertiary: #334155;             /* Slate 700 */
    --bg-card: #1E293B;
    --bg-card-hover: #334155;

    /* Text Colors - Dark Theme */
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-tertiary: #CBD5E1;
    --text-muted: #94A3B8;

    /* Muted Green/Teal for Dark Mode */
    --color-primary: #34D399;           /* Lighter emerald for dark bg */
    --color-primary-hover: #10B981;
    --color-primary-light: #064E3B;     /* Very dark green tint */
    --color-secondary: #5EEAD4;         /* Lighter teal */
    --color-secondary-hover: #2DD4BF;
    --color-secondary-light: #134E4A;   /* Dark teal tint */

    /* Border Colors - Dark */
    --border-light: #334155;
    --border-medium: #475569;
    --border-dark: #64748B;

    /* Shadows - Dark */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ============================================
   SMOOTH THEME TRANSITIONS
   ============================================ */

body,
body *,
.nav,
.section,
.card,
.btn,
.feature-card,
.pricing-card,
.problem-card,
.capability-card {
    transition:
        background-color var(--transition-theme),
        color var(--transition-theme),
        border-color var(--transition-theme),
        box-shadow var(--transition-theme);
}

/* ============================================
   ALTERNATING SECTION BACKGROUNDS
   ============================================ */

.section {
    background-color: var(--bg-primary);
}

.section:nth-of-type(even) {
    background-color: var(--bg-tertiary);
}

.section-difference {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: white !important;
}

[data-theme="dark"] .section-difference {
    background: linear-gradient(135deg, var(--color-accent) 0%, #0D9488 100%) !important;
}

.section-problem {
    background: var(--color-primary-light);
}

[data-theme="dark"] .section-problem {
    background: var(--color-primary-light);
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.feature-card,
.pricing-card,
.problem-card,
.capability-card,
.ownership-feature,
.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.feature-card:hover,
.pricing-card:hover,
.capability-card:hover {
    background-color: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* ============================================
   BUTTONS - Green/Teal System
   ============================================ */

.btn-primary,
.btn.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-secondary-hover) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary,
.btn.btn-secondary {
    background-color: var(--bg-card);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white !important;
    border: none;
}

.btn-nav-cta:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-secondary-hover) 100%);
    transform: translateY(-1px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Logo - no filter needed for new colored logo */
[data-theme="dark"] .logo-icon {
    /* filter removed - new logo works on both themes */
}

/* Live Demo Button - Prominent & Vibrant */
.nav-live-demo {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white !important;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-live-demo:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .nav-live-demo {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    box-shadow: 0 2px 8px rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .nav-live-demo:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.6);
}

/* Dashboard Login Button - Subtle but visible */
.nav-dashboard-login {
    padding: 0.5rem 1rem;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary-600) !important;
    border-radius: 6px;
    border: 1px solid var(--primary-300);
    font-weight: 600 !important;
    transition: all var(--transition-base);
}

.nav-dashboard-login:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--primary-500);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

[data-theme="dark"] .nav-dashboard-login {
    background: rgba(20, 184, 166, 0.15);
    color: var(--primary-400) !important;
    border-color: var(--primary-700);
}

[data-theme="dark"] .nav-dashboard-login:hover {
    background: rgba(20, 184, 166, 0.25);
    border-color: var(--primary-500);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

body {
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

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

/* ============================================
   ACCENT COLORS & HIGHLIGHTS
   ============================================ */

.badge {
    border: 2px solid var(--color-primary);
    background-color: var(--bg-card);
}

.badge:hover {
    background-color: var(--color-primary-light);
}

/* Links */
a {
    color: var(--color-primary);
}

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

/* Success States */
.success,
.capability-badge,
.comparison-item.success {
    color: var(--color-success);
    border-color: var(--color-success);
}

/* Warning States */
.warning,
.comparison-item.mediocre {
    color: var(--color-warning);
    border-color: var(--color-warning);
}

/* Error States */
.error,
.comparison-item.failure {
    color: var(--color-error);
    border-color: var(--color-error);
}

/* ============================================
   PRICING CARDS - Featured
   ============================================ */

.pricing-card-featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.pricing-badge {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.footer h4 {
    color: var(--text-primary);
}

.footer a {
    color: var(--text-tertiary);
}

.footer a:hover {
    color: var(--color-primary);
}

/* ============================================
   AUTOMATION CARDS
   ============================================ */

.automation-comparison-box {
    background-color: var(--bg-card);
    border: 2px solid var(--border-light);
}

.capability-divider {
    border-top: 1px solid var(--border-light);
}

.capability-problem {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--color-error);
}

.capability-solution {
    background-color: var(--color-primary-light);
    border-left: 3px solid var(--color-primary);
}

/* ============================================
   DASHBOARD PREVIEW
   ============================================ */

.dashboard-preview {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
}

.preview-header {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
}

/* ============================================
   THEME TOGGLE BUTTON (Positioned in navbar)
   ============================================ */

.theme-toggle {
    position: relative;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    margin-left: 0.75rem;
    flex-shrink: 0;
    padding: 4px;
}

.theme-toggle:hover {
    background-color: rgba(16, 185, 129, 0.1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.theme-toggle:hover svg {
    color: var(--color-primary);
}

/* Hide sun icon in dark mode, show moon */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Hide moon icon in light mode, show sun */
[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Default state (light theme) */
.theme-toggle .moon-icon {
    display: none;
}

.theme-toggle .sun-icon {
    display: block;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.bg-primary {
    background-color: var(--bg-primary) !important;
}

.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

.bg-card {
    background-color: var(--bg-card) !important;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

/* ============================================
   REDUCED WHITE SPACE (Max 20%)
   ============================================ */

.container {
    max-width: 1400px;  /* Increased from typical 1200px */
    width: 90%;         /* Increased from typical 80-85% */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;    /* Reduced from typical 5-6rem */
}

.hero {
    padding: 4rem 0;    /* Reduced from typical 8-10rem */
}

.features-grid,
.pricing-grid,
.problem-grid,
.capabilities-grid {
    gap: 1.5rem;        /* Reduced from typical 2-3rem */
}

.feature-card,
.pricing-card,
.problem-card {
    padding: 1.5rem;    /* Reduced from typical 2-3rem */
}

h2.section-title {
    margin-bottom: 2rem; /* Reduced from typical 3-4rem */
}
