/**
 * UltraLooper Enterprise - B2B SaaS Light Theme Design System
 * Psychology: Trust, Authority, Cleanliness, Actionable Insights
 * Version: 2.0.0
 */

:root {
    /* Core Enterprise Palette (Dark Mode) */
    --zen-bg: #050505;
    --zen-surface: #0f172a; /* Slate 900 */
    --zen-surface-soft: rgba(255, 255, 255, 0.02);
    --zen-surface-tint: rgba(96, 86, 255, 0.1);
    
    /* Brand Accents - Sync with Auth Pages */
    --zen-primary: #7000ff; /* Neon Purple */
    --zen-primary-hover: #5000b8; 
    --zen-primary-glow: rgba(112, 0, 255, 0.4);
    
    --zen-secondary: #0ea5e9; /* Sky 500 */
    --zen-secondary-hover: #0284c7;
    
    --zen-accent: #7000ff; /* Neon Purple */
    
    /* Text Stack */
    --zen-text: #f8fafc; /* Slate 50 */
    --zen-text-muted: #94a3b8; /* Slate 400 */
    --zen-text-dim: #64748b; /* Slate 500 */
    
    /* Border & Glass */
    --zen-border: #1e293b; /* Slate 800 */
    --zen-border-light: #334155; /* Slate 700 */
    --zen-glass-bg: rgba(5, 5, 5, 0.65);
    --zen-glass-border: #1e293b;
    
    /* Shadows - Refined for clean flat depth */
    --zen-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --zen-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --zen-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
    --zen-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    --zen-shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    
    /* Gradients */
    --zen-gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6056ff 100%);
    --zen-gradient-intelligence: linear-gradient(135deg, #0ea5e9 0%, #6056ff 100%);
    --zen-gradient-soft: linear-gradient(135deg, rgba(96, 86, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

/* Base Body Styling */
body.zen-dark, body.zen-light {
    background-color: var(--zen-bg) !important;
    color: var(--zen-text) !important;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    letter-spacing: -0.01em;
}

/* --- Premium Component Classes --- */

.zen-card {
    background: var(--zen-surface);
    border: 1px solid var(--zen-border);
    border-radius: 16px;
    box-shadow: var(--zen-shadow);
    transition: all 0.2s ease-in-out;
}

.zen-card:hover {
    box-shadow: var(--zen-shadow-md);
    transform: translateY(-2px);
    border-color: var(--zen-border);
}

.zen-glass {
    background: var(--zen-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--zen-glass-border);
    box-shadow: var(--zen-shadow-sm);
}

.ai-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(112, 0, 255, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.ai-glass-card:hover {
    border-color: var(--zen-primary);
    background: rgba(112, 0, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(112, 0, 255, 0.4);
}

/* Typography Enhancements */
.zen-heading {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--zen-text);
    line-height: 1.1;
}

.zen-gradient-text {
    background: var(--zen-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.zen-btn-primary {
    background: var(--zen-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px; /* Sharper radius for B2B */
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--zen-primary-glow);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.zen-btn-primary:hover {
    background: var(--zen-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--zen-primary-glow);
}

.zen-btn-outline {
    background: transparent !important;
    color: var(--zen-text) !important;
    border: 1px solid var(--zen-border) !important;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.zen-btn-outline:hover {
    background: var(--zen-surface-soft) !important;
    border-color: var(--zen-primary) !important;
    color: var(--zen-primary) !important;
}

/* Utility Gradients & Icons */
.zen-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zen-surface-tint);
    border: 1px solid transparent;
    color: var(--zen-primary);
    transition: all 0.2s ease;
}

.zen-card:hover .zen-icon-box {
    background: var(--zen-primary);
    color: white;
    transform: scale(1.05);
}

/* Animations */
@keyframes zenFadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.zen-animate-up {
    animation: zenFadeUp 0.5s cubic-bezier(0.2, 0, 0, 1) forwards;
}

/* Grid & Layout Utilities */
.zen-grid-pattern {
    background-image: radial-gradient(var(--zen-border) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* =========================================================================
   DARK THEME OVERRIDES FOR LIGHT CLASSES
   ========================================================================= */
/* Map explicit light backgrounds to dark surface */
body.zen-dark .bg-white,
body.zen-dark .bg-slate-50,
body.zen-dark .bg-slate-100 {
    background-color: var(--zen-surface) !important;
    border-color: var(--zen-border) !important;
}

body.zen-dark footer {
    background-color: var(--zen-bg) !important;
    border-top-color: var(--zen-border) !important;
}

/* Map text colors */
body.zen-dark .text-slate-900,
body.zen-dark .text-slate-800,
body.zen-dark .text-gray-900 {
    color: var(--zen-text) !important;
}

body.zen-dark .text-slate-600,
body.zen-dark .text-slate-700,
body.zen-dark .text-slate-500,
body.zen-dark .text-gray-600,
body.zen-dark .text-gray-500 {
    color: var(--zen-text-muted) !important;
}

/* Map borders */
body.zen-dark .border-slate-200,
body.zen-dark .border-slate-100 {
    border-color: var(--zen-border) !important;
}

