/* ==========================================================================
   Design Tokens — Medi Reminder
   Aligned with Flutter AppTheme (app_theme.dart)
   ========================================================================== */

:root {
  /* ── Brand / Color Palette ─────────────────────────────────────────── */
  --color-primary:        #4CAF50;
  --color-primary-dark:   #388E3C;
  --color-primary-light:  #81C784;

  --color-accent:         #2196F3;
  --color-accent-dark:    #1565C0;
  --color-accent-light:   #64B5F6;

  /* App hero gradient surfaces */
  --color-hero-top:       #0A1C16;
  --color-hero-bottom:    #12281F;
  --color-hero-card-top:  #1B4D34;
  --color-hero-card-bot:  #2C6E49;
  --color-scaffold:       #05121C;

  /* Light-mode surfaces */
  --color-background:     #F0F4F0;
  --color-surface:        #FFFFFF;
  --color-surface-alt:    #F5F9F5;
  --color-text-primary:   #0A1C16;
  --color-text-secondary: #4A6358;
  --color-border:         #D6E4DA;

  /* Extended accent (dashboard cards) */
  --color-violet:         #7C5CFC;
  --color-orange:         #FF8A3D;
  --color-teal:           #14B8A6;
  --color-pink:           #EC4899;

  /* Status */
  --color-success:        #4CAF50;
  --color-warning:        #FFC107;
  --color-warning-light:  #FFF8E1;
  --color-error:          #F44336;

  /* ── Gradients ─────────────────────────────────────────────────────── */
  --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
  --gradient-hero:    linear-gradient(160deg, #0A1C16 0%, #12281F 55%, #1B4D34 100%);
  --gradient-card:    linear-gradient(135deg, #1B4D34 0%, #2C6E49 100%);
  --gradient-cta:     linear-gradient(135deg, #1B4D34 0%, #2C6E49 50%, #388E3C 100%);
  --gradient-glow:    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(76,175,80,.18) 0%, transparent 70%);

  /* ── Typography — Sora (mirrors Flutter GoogleFonts.sora) ──────────── */
  --font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --font-size-h1:      clamp(36px, 5vw, 64px);
  --font-size-h2:      clamp(28px, 3.5vw, 40px);
  --font-size-h3:      clamp(18px, 2vw, 24px);
  --font-size-body:    16px;
  --font-size-body-sm: 14px;
  --font-size-caption: 12px;
  --font-size-button:  15px;

  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  --line-height-h1:      1.1;
  --line-height-h2:      1.2;
  --line-height-h3:      1.3;
  --line-height-body:    1.6;
  --line-height-body-sm: 1.5;
  --line-height-caption: 1.4;

  /* ── Spacing ───────────────────────────────────────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ── Border Radius (mirrors app radiusXS→radiusPill) ──────────────── */
  --radius-button: 12px;
  --radius-card:   16px;
  --radius-input:  12px;
  --radius-badge:  24px;
  --radius-circle: 50%;
  --radius-xl:     24px;
  --radius-2xl:    32px;

  /* ── Shadows ───────────────────────────────────────────────────────── */
  --shadow-card:       0 2px 12px rgba(0,0,0,.07);
  --shadow-card-hover: 0 8px 32px rgba(76,175,80,.18);
  --shadow-navbar:     0 1px 4px rgba(0,0,0,.08);
  --shadow-cta:        0 4px 20px rgba(76,175,80,.35);
  --shadow-glow:       0 0 40px rgba(76,175,80,.25);

  /* ── Animation ─────────────────────────────────────────────────────── */
  --transition-fast:    200ms;
  --transition-normal:  300ms;
  --transition-slow:    500ms;
  --transition-reveal:  600ms;

  --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring:   cubic-bezier(0.43, 0.195, 0.02, 1);

  --reveal-distance: 40px;
  --reveal-stagger:  100ms;

  /* ── Layout ────────────────────────────────────────────────────────── */
  --container-max:  1200px;
  --navbar-height:  72px;
}

/* ==========================================================================
   Dark Mode  (matches Flutter darkTheme / scaffold #05121C)
   ========================================================================== */

[data-theme="dark"] {
  --color-primary:        #81C784;
  --color-primary-dark:   #4CAF50;
  --color-primary-light:  #1B5E20;

  --color-accent:         #64B5F6;
  --color-accent-dark:    #2196F3;
  --color-accent-light:   #0D47A1;

  --color-background:     #05121C;
  --color-surface:        #0F1F18;
  --color-surface-alt:    #152B20;
  --color-text-primary:   #FFFFFF;
  --color-text-secondary: #8CB89A;
  --color-border:         #1E3528;

  --gradient-hero:    linear-gradient(160deg, #040E0A 0%, #0A1C16 55%, #12281F 100%);
  --gradient-cta:     linear-gradient(135deg, #1B4D34 0%, #2C6E49 50%, #388E3C 100%);

  --shadow-card:       0 2px 12px rgba(0,0,0,.4);
  --shadow-card-hover: 0 8px 32px rgba(129,199,132,.14);
  --shadow-navbar:     0 1px 4px rgba(0,0,0,.3);
  --shadow-cta:        0 4px 20px rgba(129,199,132,.3);
  --shadow-glow:       0 0 60px rgba(76,175,80,.2);
}
