/* ============================================
   DARK MODE THEME & CSS VARIABLES
   Complete theming system for Flo Faction
   ============================================ */

/* ROOT CSS VARIABLES */

:root {
  --primary: #1b82ff;
  --primary-dark: #0a5fc4;
  --primary-light: #4fa3ff;
  --secondary: #7cf5ff;
  --secondary-dark: #5ae8f8;
  --accent: #ff7ad9;
  --success: #3bffb0;
  --success-dark: #1dd4a0;
  --warning: #ffd166;
  --warning-dark: #ffb627;
  --danger: #ff5f6d;
  --danger-dark: #e63946;
  
  --surface: #0a1729;
  --surface-2: #0f2239;
  --surface-3: #142a48;
  --surface-4: #1a3657;
  
  --text-strong: #e9f2ff;
  --text-base: #c8d8e8;
  --text-dim: #9fb4d5;
  --text-muted: #6b7c99;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-base: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.3);
  
  --radius-sm: 4px;
  --radius-base: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-base: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.6s ease-out;
}

/* DARK MODE - Already default */

body[data-theme="dark"],
body {
  background: var(--surface);
  color: var(--text-strong);
}

/* LIGHT MODE */

body[data-theme="light"] {
  --surface: #f8f9fa;
  --surface-2: #f0f3f7;
  --surface-3: #e8ecf1;
  --surface-4: #dfe5eb;
  
  --text-strong: #1a2332;
  --text-base: #3d475d;
  --text-dim: #6b7c99;
  --text-muted: #99a8bc;
  
  --border-light: rgba(0, 0, 0, 0.06);
  --border-base: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
}

body[data-theme="light"] {
  background: var(--surface);
  color: var(--text-strong);
}

/* GRADIENT BACKGROUNDS */

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.bg-gradient-success {
  background: linear-gradient(135deg, var(--success), var(--primary));
}

.bg-gradient-danger {
  background: linear-gradient(135deg, var(--danger), var(--accent));
}

.bg-gradient-warm {
  background: linear-gradient(135deg, var(--warning), var(--danger));
}

.bg-gradient-cool {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* TEXT COLORS */

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }

.text-strong { color: var(--text-strong); }
.text-base { color: var(--text-base); }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }

/* BACKGROUND COLORS */

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }
.bg-danger { background: var(--danger); }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }

/* BORDER COLORS */

.border-primary { border-color: var(--primary); }
.border-secondary { border-color: var(--secondary); }
.border-success { border-color: var(--success); }
.border-danger { border-color: var(--danger); }
.border-light { border-color: var(--border-light); }
.border-base { border-color: var(--border-base); }

/* SPACING UTILITIES */

.m-0 { margin: 0; }
.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-base { margin: var(--spacing-base); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-base { margin-top: var(--spacing-base); }
.mt-md { margin-top: var(--spacing-md); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-base { margin-bottom: var(--spacing-base); }
.mb-md { margin-bottom: var(--spacing-md); }

.p-0 { padding: 0; }
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-base { padding: var(--spacing-base); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

/* RADIUS UTILITIES */

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-base { border-radius: var(--radius-base); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* SHADOW UTILITIES */

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* OPACITY UTILITIES */

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* DISPLAY UTILITIES */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.invisible { visibility: hidden; }

/* FLEX UTILITIES */

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: flex-start; }
.flex-end { display: flex; align-items: flex-end; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--spacing-sm); }
.gap-base { gap: var(--spacing-base); }
.gap-md { gap: var(--spacing-md); }

/* TEXT UTILITIES */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* POSITION UTILITIES */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* SIZE UTILITIES */

.w-full { width: 100%; }
.w-1/2 { width: 50%; }
.w-1/3 { width: 33.333%; }
.w-1/4 { width: 25%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }

/* RESPONSIVE UTILITIES */

@media (max-width: 768px) {
  .md-hidden { display: none; }
  .md-block { display: block; }
}

@media (min-width: 768px) {
  .md-visible { display: block; }
}
