/**
 * Unified Color System - Mountain Mingle
 * Himalayan-inspired, minimalistic, easy on the eyes
 * Color codes only - no structural changes
 */

:root {
  /* ===================================
     PRIMARY COLORS - Himalayan Theme
  =================================== */
  
  /* Primary: Mountain Green - Nature, forests, Himalayan valleys */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #d1fae5;
  --primary-dark: #047857;
  
  /* Secondary: Mountain Blue - Calm, trustworthy, inspired by clear Himalayan skies */
  --secondary: #2563eb;
  --secondary-hover: #1d4ed8;
  --secondary-light: #dbeafe;
  --secondary-dark: #1e40af;
  
  /* ===================================
     NEUTRAL SCALE - Easy on Eyes
  =================================== */
  
  /* Blacks - Soft, not harsh */
  --black-primary: #1f2937;     /* Main text, headers - soft black */
  --black-secondary: #374151;   /* Secondary text */
  --black-tertiary: #4b5563;    /* Tertiary text, less emphasis */
  
  /* Greys - Smooth hierarchy */
  --grey-900: #111827;          /* Darkest grey for critical text */
  --grey-800: #1f2937;          /* Dark grey for headers */
  --grey-700: #374151;          /* Medium-dark grey */
  --grey-600: #4b5563;          /* Medium grey for body text */
  --grey-500: #6b7280;          /* Mid-tone grey */
  --grey-400: #9ca3af;          /* Light grey for secondary info */
  --grey-300: #d1d5db;          /* Very light grey for borders */
  --grey-200: #e5e7eb;          /* Ultra light grey */
  --grey-100: #f3f4f6;          /* Background tints */
  --grey-50: #f9fafb;           /* Lightest background */
  
  /* Whites - Soft, not stark */
  --white-primary: #ffffff;     /* Pure white for cards, panels */
  --white-soft: #fafbfc;        /* Soft white for backgrounds */
  --white-warm: #fefefe;        /* Warm white for comfort */
  
  /* ===================================
     SEMANTIC COLORS
  =================================== */
  
  /* Success - Mountain green */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #059669;
  
  /* Warning - Amber alert */
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #d97706;
  
  /* Error - Soft red, not alarming */
  --error: #ef4444;
  --error-light: #fee2e2;
  --error-dark: #dc2626;
  
  /* Info - Sky blue */
  --info: #3b82f6;
  --info-light: #dbeafe;
  --info-dark: #2563eb;
  
  /* ===================================
     BACKGROUND COLORS
  =================================== */
  
  --bg-body: #ffffff;
  --bg-section: #f9fafb;
  --bg-card: #ffffff;
  --bg-hover: #f3f4f6;
  --bg-active: #e5e7eb;
  --bg-overlay: rgba(31, 41, 55, 0.75);
  
  /* ===================================
     BORDER COLORS
  =================================== */
  
  --border-light: #f3f4f6;
  --border-default: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;
  
  /* ===================================
     TEXT COLORS
  =================================== */
  
  --text-primary: #1f2937;      /* Main body text */
  --text-secondary: #4b5563;    /* Secondary text */
  --text-tertiary: #6b7280;     /* Tertiary, helper text */
  --text-disabled: #9ca3af;     /* Disabled state */
  --text-inverse: #ffffff;      /* Text on dark backgrounds */
  --text-link: #2563eb;         /* Links */
  --text-link-hover: #1d4ed8;   /* Link hover */
  
  /* ===================================
     SHADOW SYSTEM
  =================================== */
  
  --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 -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* ===================================
     LEGACY VARIABLE MAPPING
     (for backward compatibility)
  =================================== */
  
  --theme: var(--primary);
  --theme2: var(--secondary);
  --header: var(--black-primary);
  --text: var(--text-secondary);
  --white: var(--white-primary);
  --black: var(--grey-900);
  --bg: var(--grey-50);
  --bg2: var(--grey-800);
  --bg3: rgba(255, 255, 255, 0.2);
  --border: var(--border-default);
  --border2: var(--grey-700);
  --borders3: var(--primary);
  --ratting: #f59e0b;
  --box-shadow: var(--shadow-lg);
}

/* ===================================
   APPLY COLOR SYSTEM GLOBALLY
=================================== */

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--black-primary);
}

a {
  color: var(--text-link);
}

a:hover {
  color: var(--text-link-hover);
}

/* Buttons */
.theme-btn {
  background-color: var(--primary);
  color: var(--text-inverse);
}

.theme-btn:hover {
  background-color: var(--primary-hover);
  color: var(--text-inverse);
}

.theme-btn::before,
.theme-btn::after {
  background-color: var(--primary-dark);
}

/* Secondary button */
.theme-btn-secondary {
  background-color: var(--secondary);
  color: var(--text-inverse);
}

.theme-btn-secondary:hover {
  background-color: var(--secondary-hover);
}

/* Borders */
.border,
[class*="border"] {
  border-color: var(--border-default);
}

/* Cards */
.card,
.card-box,
[class*="card"] {
  background-color: var(--bg-card);
  border-color: var(--border-light);
}

/* Shadows - soft and subtle */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Form inputs */
input,
textarea,
select {
  border-color: var(--border-default);
  color: var(--text-primary);
  background-color: var(--white-primary);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  outline-color: var(--primary-light);
}

/* Placeholder text */
::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

/* Selection highlight */
::selection {
  background-color: var(--primary-light);
  color: var(--black-primary);
}

::-moz-selection {
  background-color: var(--primary-light);
  color: var(--black-primary);
}

/* Scrollbar - minimalistic */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--grey-100);
}

::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--grey-400);
}
