/* ==========================================================================
   Eternal Zero - Custom Theme Variables & Typography
   ========================================================================== */

/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  /* Light Mode Colors */
  --text-base: #1f2937;
  --text-muted: #6b7280;
  --text-inverted: #ffffff;
  --primary-color: #3b82f6;
  --primary-darker: #2563eb;
  --background-color: #ffffff;
  --background-secondary: #f9fafb;
  
  /* Status Colors (same for both modes) */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Border Colors */
  --border-color: #e5e7eb;
  
  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Dark Mode Colors */
.dark {
  --text-base: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverted: #111827;
  --primary-color: #60a5fa;
  --primary-darker: #3b82f6;
  --background-color: #1f2937;
  --background-secondary: #111827;
  
  /* Status Colors remain the same */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Border Colors */
  --border-color: #374151;
  
  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

/* ==========================================================================
   Typography System
   ========================================================================== */

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-base);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Font Sizes */
.text-xs {
  font-size: 12px;
  line-height: 1.4;
}

.text-sm {
  font-size: 14px;
  line-height: 1.5;
}

.text-base {
  font-size: 16px;
  line-height: 1.5;
}

.text-lg {
  font-size: 18px;
  line-height: 1.5;
}

.text-xl {
  font-size: 20px;
  line-height: 1.4;
}

.text-2xl {
  font-size: 24px;
  line-height: 1.3;
}

.text-3xl {
  font-size: 30px;
  line-height: 1.2;
}

.text-4xl {
  font-size: 36px;
  line-height: 1.1;
}

.text-5xl {
  font-size: 48px;
  line-height: 1;
}

/* Font Weights */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

/* Headings */
h1, .h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-base);
  margin-bottom: 1rem;
}

h2, .h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-base);
  margin-bottom: 0.875rem;
}

h3, .h3 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-base);
  margin-bottom: 0.75rem;
}

h4, .h4 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-base);
  margin-bottom: 0.625rem;
}

h5, .h5 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-base);
  margin-bottom: 0.5rem;
}

h6, .h6 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-base);
  margin-bottom: 0.5rem;
}

/* Paragraph */
p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-base);
  margin-bottom: 1rem;
}

/* Small Text */
small, .small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   Color Utility Classes
   ========================================================================== */

/* Text Colors */
.text-base-color {
  color: var(--text-base);
}

.text-muted-color {
  color: var(--text-muted);
}

.text-inverted-color {
  color: var(--text-inverted);
}

.text-primary {
  color: var(--primary-color);
}

.text-primary-darker {
  color: var(--primary-darker);
}

.text-success {
  color: var(--success-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-error {
  color: var(--error-color);
}

/* Background Colors */
.bg-base {
  background-color: var(--background-color);
}

.bg-secondary {
  background-color: var(--background-secondary);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-primary-darker {
  background-color: var(--primary-darker);
}

.bg-success {
  background-color: var(--success-color);
}

.bg-warning {
  background-color: var(--warning-color);
}

.bg-error {
  background-color: var(--error-color);
}

/* Border Colors */
.border-base {
  border-color: var(--border-color);
}

.border-primary {
  border-color: var(--primary-color);
}

.border-success {
  border-color: var(--success-color);
}

.border-warning {
  border-color: var(--warning-color);
}

.border-error {
  border-color: var(--error-color);
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-inverted);
  padding: 0.625rem 1.25rem;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-darker);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  padding: 0.625rem 1.25rem;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-warning {
  background-color: var(--warning-color);
  color: white;
  padding: 0.625rem 1.25rem;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-error {
  background-color: var(--error-color);
  color: white;
  padding: 0.625rem 1.25rem;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Cards */
.card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-base);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Input Fields */
.input-field {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 16px;
  color: var(--text-base);
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

/* Labels */
.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-base);
  margin-bottom: 0.5rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-primary {
  background-color: var(--primary-color);
  color: var(--text-inverted);
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-warning {
  background-color: var(--warning-color);
  color: white;
}

.badge-error {
  background-color: var(--error-color);
  color: white;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Transitions */
.transition-smooth {
  transition: all 0.3s ease;
}

/* Shadows */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 36px;
  }
  
  h2, .h2 {
    font-size: 30px;
  }
  
  h3, .h3 {
    font-size: 24px;
  }
  
  h4, .h4 {
    font-size: 20px;
  }
}
