/* 
   ALUMIL PRO DESIGN TOKENS (2025 EDITION) 
   Theme: "Adrift in White"
   Principles: Golden Ratio Typography, 8pt Grid, Soft UI, Liquid Glass
*/

:root {
  /* ==================== */
  /* TYPOGRAPHY - GOLDEN RATIO SCALE (Base 16px, Ratio 1.618) */
  /* ==================== */
  --font-primary: 'Inter', 'Outfit', 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --text-xs:   0.75rem;    /* 12px - Caption */
  --text-sm:   0.875rem;   /* 14px - Secondary */
  --text-base: 1rem;       /* 16px - Body */
  --text-lg:   1.125rem;   /* 18px - Emphasis */
  --text-xl:   1.25rem;    /* 20px - Component Title */
  --text-2xl:  1.618rem;   /* 26px - Section Header */
  --text-3xl:  2.618rem;   /* 42px - Page Title */
  --text-4xl:  4.236rem;   /* 68px - Hero */

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ==================== */
  /* SPACING - 8PT GRID SYSTEM */
  /* ==================== */
  --space-1:  4px;    /* Micro */
  --space-2:  8px;    /* Tight */
  --space-3:  12px;   /* 1.5x */
  --space-4:  16px;   /* Standard */
  --space-6:  24px;   /* Comfortable */
  --space-8:  32px;   /* Section */
  --space-10: 40px;   /* 5x */
  --space-12: 48px;   /* Major */
  --space-16: 64px;   /* Page Margin */

  /* ==================== */
  /* COLOR PALETTE - LIGHT THEME */
  /* ==================== */
  /* Surfaces */
  --surface-1: #ffffff;       /* Main Background */
  --surface-2: #f8fafc;       /* Secondary / App Background */
  --surface-3: #f1f5f9;       /* Tertiary / Hover States */
  --surface-glass: rgba(255, 255, 255, 0.7); /* Liquid Glass */

  /* Text & Ink */
  --text-main: #0f172a;       /* Dark Navy - Primary Content */
  --text-muted: #64748b;      /* Slate - Secondary Content */
  --text-light: #94a3b8;      /* Light Gray - Placeholders/Disabled */
  
  /* Accents (Purposeful 10%) */
  --primary: #2563eb;         /* Royal Blue - Actions */
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;    /* Light Blue Backgrounds */
  
  /* Status */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --info: #0ea5e9;
  --info-bg: #f0f9ff;

  /* ==================== */
  /* DEPTH & ELEVATION (Soft UI) */
  /* ==================== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  /* Glass Filter */
  --glass-blur: blur(12px) saturate(180%);
  --glass-border: 1px solid rgba(255,255,255,0.5);

  /* ==================== */
  /* BORDERS & RADIUS */
  /* ==================== */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --border-light: 1px solid #e2e8f0;
  --border-subtle: 1px solid #f1f5f9;

  /* ==================== */
  /* MOTION */
  /* ==================== */
  --ease-spring: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
}

/* ==================== */
/* GLOBAL UTILITIES */
/* ==================== */
body {
    background-color: var(--surface-2);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
}

/* Typography Classes */
.text-hero { font-size: var(--text-4xl); font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.1; }
.text-page-title { font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: -0.02em; }
.text-section { font-size: var(--text-2xl); font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
.text-component { font-size: var(--text-xl); font-weight: var(--weight-medium); }
.text-body { font-size: var(--text-base); }
.text-sm { font-size: var(--text-sm); color: var(--text-muted); }
.text-caption { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: var(--weight-semibold); }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    padding: var(--space-6);
    max-width: 1600px; /* Or whatever your max width is */
    margin: 0 auto;
}

/* Bento Tile (Card) */
.bento-tile {
    background: var(--surface-1);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: var(--border-subtle);
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bento-tile:hover {
    transform: translateY(-2px); /* "Pillowed" effect */
    box-shadow: var(--shadow-md);
}

/* Liquid Glass Header */
.glass-header {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Modern Input */
.modern-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    transition: all var(--duration-fast);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Modern Button */
.btn-modern {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3); /* Lift effect */
}

.btn-primary:active {
    transform: translateY(0);
}

/* Helper for "Data Storytelling" - Sparkline container placeholders */
.sparkline-container {
    height: 48px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin-top: var(--space-4);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-enter {
    animation: fadeInUp var(--duration-normal) var(--ease-spring) forwards;
}
