/* ============================================
   TELLUSSIM DESIGN SYSTEM
   Professional, Cohesive Color Scheme
   ============================================ */

:root {
    /* PRIMARY BRAND COLORS */
    --primary-600: #0B6E99;      /* Main brand color */
    --primary-700: #095577;      /* Hover state */
    --primary-500: #0d88ba;      /* Lighter variant */
    --primary-100: #e0f2f8;      /* Light background */
    --primary-50: #f0f8fb;       /* Very light background */
    
    /* ACCENT COLORS */
    --accent-500: #06b6d4;       /* Cyan accent */
    --accent-400: #22d3ee;       /* Light cyan */
    --accent-600: #0891b2;       /* Dark cyan */
    
    /* NEUTRAL COLORS - Professional gray scale */
    --neutral-white: #ffffff;
    --neutral-50: #f8fafc;       /* Lightest gray - backgrounds */
    --neutral-100: #f1f5f9;      /* Light gray - cards */
    --neutral-200: #e2e8f0;      /* Borders */
    --neutral-300: #cbd5e1;      /* Subtle borders */
    --neutral-400: #94a3b8;      /* Placeholder text */
    --neutral-500: #64748b;      /* Secondary text */
    --neutral-600: #475569;      /* Body text */
    --neutral-700: #334155;      /* Dark text */
    --neutral-800: #1e293b;      /* Headings */
    --neutral-900: #0f172a;      /* Darkest */
    
    /* SEMANTIC COLORS */
    --success-500: #10b981;      /* Green - success */
    --success-100: #d1fae5;      /* Light green */
    --warning-500: #f59e0b;      /* Orange - warning */
    --warning-100: #fef3c7;      /* Light orange */
    --error-500: #ef4444;        /* Red - error */
    --error-100: #fee2e2;        /* Light red */
    --info-500: #3b82f6;         /* Blue - info */
    --info-100: #dbeafe;         /* Light blue */
    
    /* GRADIENTS */
    --gradient-primary: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    --gradient-hero: linear-gradient(135deg, #f0f8fb 0%, #e0f2f8 100%);
    --gradient-dark: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
    
    /* SHADOWS - Professional depth */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 4px 12px rgba(11, 110, 153, 0.25);
    --shadow-primary-lg: 0 10px 24px rgba(11, 110, 153, 0.3);
    
    /* SPACING - 4px base scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    
    /* BORDER RADIUS */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* TYPOGRAPHY */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 48px;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* TRANSITIONS */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* LAYOUT */
    --max-width-sm: 640px;
    --max-width-md: 768px;
    --max-width-lg: 1024px;
    --max-width-xl: 1280px;
    --max-width-2xl: 1536px;
    
    --header-height: 72px;
    --header-height-mobile: 64px;
    
    /* Z-INDEX LAYERS */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--neutral-700);
    background: var(--neutral-50);
    min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--neutral-800);
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: 1em;
    color: var(--neutral-600);
    line-height: var(--line-height-relaxed);
}

.lead {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--neutral-500);
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-xs {
    font-size: var(--font-size-xs);
}

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

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

.font-medium {
    font-weight: var(--font-weight-medium);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 11px 22px;
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--neutral-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: var(--neutral-white);
    color: var(--primary-600);
    border-color: var(--neutral-200);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--neutral-50);
    border-color: var(--primary-600);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--neutral-600);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--neutral-100);
    color: var(--neutral-800);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-600);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-50);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-base);
}

.btn-xl {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

/* ============================================
   CARD SYSTEM
   ============================================ */

.card {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.card-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--neutral-200);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-800);
    margin: 0;
}

.card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--neutral-500);
    margin-top: var(--space-1);
}

.card-body {
    margin-bottom: var(--space-4);
}

.card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--neutral-200);
}

/* ============================================
   BADGE SYSTEM
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-600);
}

.badge-success {
    background: var(--success-100);
    color: var(--success-500);
}

.badge-warning {
    background: var(--warning-100);
    color: var(--warning-500);
}

.badge-error {
    background: var(--error-100);
    color: var(--error-500);
}

.badge-info {
    background: var(--info-100);
    color: var(--info-500);
}

.badge-neutral {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-sm {
    max-width: var(--max-width-sm);
}

.container-md {
    max-width: var(--max-width-md);
}

.container-lg {
    max-width: var(--max-width-lg);
}

.section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.section-sm {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.section-lg {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

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

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
        --font-size-5xl: 36px;
        --font-size-4xl: 30px;
        --font-size-3xl: 24px;
    }
    
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

.animate-slide-up {
    animation: slideUp var(--transition-slow) ease-out;
}

.animate-slide-down {
    animation: slideDown var(--transition-base) ease-out;
}

.animate-scale-in {
    animation: scaleIn var(--transition-base) ease-out;
}
