/* ============================================
   ADULTS THEME - Minimal & Professional
   ============================================ */

:root[data-theme="minimal"] {
  /* === COLORS - Clean & Professional === */
  --primary: #1976D2;                  /* Darker blue for better contrast */
  --primary-hover: #1565C0;
  --primary-gradient: linear-gradient(135deg, #1976D2 0%, #0277BD 100%);

  --secondary: #64748B;                /* Slate gray */
  --secondary-hover: #475569;

  --accent: #10B981;                   /* Green success */
  --accent-hover: #059669;

  --success: #10B981;                  /* Green */
  --warning: #F59E0B;                  /* Amber */
  --error: #EF4444;                    /* Red */

  --background: #FFFFFF;               /* White - clean background */
  --background-gradient: linear-gradient(135deg, rgba(66, 165, 245, 0.3) 0%, rgba(0, 188, 212, 0.3) 100%);  /* 70% transparent blue-cyan gradient */

  --surface: rgba(255, 255, 255, 0.95);    /* White surface with slight transparency */
  --surface-hover: rgba(255, 255, 255, 1);

  --text-primary: #FFFFFF;             /* White (for map headers on blue bg) */
  --text-secondary: #475569;           /* Slate */
  --text-light: #94A3B8;               /* Light slate */
  --text-white: #FFFFFF;

  /* === TYPOGRAPHY - Clean & Professional === */
  --font-family-primary: 'Inter', 'Segoe UI', sans-serif;
  --font-family-secondary: 'Inter', 'Segoe UI', sans-serif;

  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-heading: 24px;
  --font-size-display: 36px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
  --font-weight-black: 700;

  /* === SPACING - Minimal & Compact === */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 50%;

  --padding-card: 16px;
  --padding-button: 8px 16px;
  --button-size: 40px;

  /* === SHADOWS - Subtle & Refined === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  --shadow-card: var(--shadow-sm);
  --shadow-button: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.1);

  /* === BORDERS - Subtle & Clean === */
  --border-width: 1px;
  --border-style: solid;
  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-light: rgba(0, 0, 0, 0.06);

  /* === ANIMATIONS - Minimal & Fast === */
  --transition-speed-fast: 0.1s;
  --transition-speed: 0.2s;
  --transition-speed-slow: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);

  --animation-bounce: none;
  --animation-pulse: none;
  --animation-wiggle: none;

  /* === Z-INDEX LAYERS === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* === LAYOUT === */
  --container-max-width: 1280px;
  --sidebar-width: 260px;
  --header-height: 60px;
  --footer-height: 48px;

  /* === STARS & REWARDS === */
  --star-gold: #F59E0B;
  --star-silver: #94A3B8;
  --star-bronze: #D97706;

  --reward-weekly: #3B82F6;
  --reward-monthly: #8B5CF6;
  --reward-final: #EC4899;

  /* === HABIT CATEGORIES === */
  --category-music: #8B5CF6;
  --category-sport: #EF4444;
  --category-learn: #3B82F6;
  --category-health: #10B981;
  --category-creative: #F59E0B;
  --category-hobby: #06B6D4;

  /* === PROGRESS MAP === */
  --map-character-size: 160px;
  --map-checkpoint-size: 80px;
  --map-path-width: 2px;
  --map-path-color: rgba(255, 255, 255, 0.3);
  --map-path-active-color: #FFFFFF;

  /* === RESPONSIVE BREAKPOINTS === */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 768px;
  --breakpoint-md: 1024px;
  --breakpoint-lg: 1280px;
  --breakpoint-xl: 1536px;

  /* === ADULTS SPECIFIC === */
  --adults-analytics-color: #2563EB;
  --adults-chart-grid: rgba(0, 0, 0, 0.05);
  --adults-export-enabled: true;
}

/* === BODY BACKGROUND - WHITE CLEAN BASE === */
[data-theme="minimal"] body {
  background: var(--background) !important;  /* #FFFFFF - clean white background */
}

/* === MINIMAL DESIGN PHILOSOPHY === */
[data-theme="minimal"] * {
  animation-duration: 0.15s !important;
  transition-duration: 0.2s !important;
}

/* Exception: Onboarding arrow should have slower animation */
[data-theme="minimal"] .arrow-img {
  animation-duration: 2s !important;
}

/* Exception: Celebration modal streak number - preserve pirouette animation */
[data-theme="minimal"] .streak-number {
  animation-duration: 3s !important;
}

/* === ANIMATIONS KEYFRAMES === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* === CLEAN BORDERS === */
[data-theme="minimal"] .card,
[data-theme="minimal"] .habit-card,
[data-theme="minimal"] .contract-card {
  border: 1px solid rgba(0, 0, 0, 0.15) !important;  /* Visible border on white background */
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;  /* Stronger shadow on white background */
}

/* === SUBTLE HOVER EFFECTS === */
[data-theme="minimal"] .card:hover,
[data-theme="minimal"] .habit-card:hover,
[data-theme="minimal"] .contract-card:hover {
  border-color: rgba(66, 165, 245, 0.5) !important;  /* Blue border on hover */
  box-shadow: 0 4px 12px rgba(66, 165, 245, 0.2) !important;  /* Blue shadow on hover */
}

/* === PROFESSIONAL TYPOGRAPHY === */
[data-theme="minimal"] h1,
[data-theme="minimal"] h2,
[data-theme="minimal"] h4,
[data-theme="minimal"] h5,
[data-theme="minimal"] h6 {
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* h3 removed from global rule to avoid conflicts with map-header */

[data-theme="minimal"] p {
  line-height: 1.6;
  color: var(--text-secondary);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  :root[data-theme="minimal"] {
    --font-size-base: 13px;
    --font-size-heading: 20px;
    --font-size-display: 28px;

    --padding-card: 12px;
    --button-size: 36px;

    --map-character-size: 120px;
    --map-checkpoint-size: 60px;
  }
}

@media (max-width: 480px) {
  :root[data-theme="minimal"] {
    --font-size-base: 12px;
    --font-size-heading: 18px;
    --font-size-display: 24px;

    --padding-card: 10px;
    --button-size: 32px;

    --map-character-size: 100px;
    --map-checkpoint-size: 50px;
  }
}

/* === PRINT STYLES (for PDF export) === */
@media print {
  [data-theme="minimal"] {
    --background: #FFFFFF;
    --text-primary: #000000;
  }

  [data-theme="minimal"] .no-print {
    display: none !important;
  }

  [data-theme="minimal"] .card {
    box-shadow: none;
    border: 1px solid #000000;
  }
}

/* === FOCUS STATES (Accessibility) === */
[data-theme="minimal"] *:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[data-theme="minimal"] button:focus,
[data-theme="minimal"] a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* === HIGH CONTRAST MODE SUPPORT === */
@media (prefers-contrast: high) {
  :root[data-theme="minimal"] {
    --border-color: rgba(0, 0, 0, 0.2);
    --text-secondary: #1E293B;
  }
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
  [data-theme="minimal"] * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === SCHEDULED DAYS VISUALIZATION === */
/* Non-scheduled days - very faint/gray */
[data-theme="minimal"] .progress-item.not-scheduled {
  opacity: 0.25;
}

[data-theme="minimal"] .progress-item.not-scheduled .day-label {
  color: rgba(100, 116, 139, 0.4); /* Very light gray */
}

[data-theme="minimal"] .progress-item.not-scheduled .progress-bar-fill {
  background: rgba(148, 163, 184, 0.2) !important; /* Override tier colors */
  box-shadow: none !important;
}

[data-theme="minimal"] .progress-item.not-scheduled .time-display {
  color: rgba(100, 116, 139, 0.4);
}

/* === HERO SECTION - BETTER CONTRAST === */
/* Fix: White text on blue gradient is hard to read */
[data-theme="minimal"] .habit-hero-section .hero-description {
  color: #FFFFFF !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

/* === CONTRACT DETAILS MODAL - TEXT VISIBILITY === */
/* Fix: Habit name (h3) was white on white background */
[data-theme="minimal"] .habit-info h3 {
  color: #1E293B;
}

/* Ensure category text is visible */
[data-theme="minimal"] .habit-info p {
  color: var(--text-secondary);
}
