/* Typography System - UI/UX Best Practices */

/* 
  Font Size Scale (based on 16px base)
  - Base: 1rem (16px)
  - Scale: 1.25 (Major Third)
*/

:root {
  /* Font Sizes */
  --font-xs: 0.75rem;      /* 12px - Small labels, captions */
  --font-sm: 0.875rem;     /* 14px - Secondary text, metadata */
  --font-base: 1rem;       /* 16px - Body text, paragraphs */
  --font-lg: 1.125rem;     /* 18px - Large body text, subtitles */
  --font-xl: 1.25rem;      /* 20px - Small headings (h4) */
  --font-2xl: 1.5rem;      /* 24px - Medium headings (h3) */
  --font-3xl: 1.875rem;    /* 30px - Large headings (h2) */
  --font-4xl: 2.25rem;     /* 36px - Extra large headings (h1) */
  --font-5xl: 3rem;        /* 48px - Hero titles */

  /* Colors - Primary Text */
  --color-text-primary: #1a1a1a;      /* Main content */
  --color-text-secondary: #4b5563;    /* Secondary content */
  --color-text-tertiary: #6b7280;     /* Metadata, captions */
  --color-text-disabled: #9ca3af;     /* Disabled text */

  /* Colors - Brand */
  --color-brand-primary: #1e3a8a;     /* Primary blue (headings) */
  --color-brand-secondary: #2c5aa0;   /* Secondary blue (links) */
  --color-brand-accent: #FFD700;      /* Gold accent */

  /* Colors - Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Colors - UI Elements */
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-bg-hover: #f0f9ff;
  --color-accent-warning: #fbbf24;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing Scale */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
}

/* Base Typography */
body {
  font-size: var(--font-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-normal);
}

/* Headings */
h1, .h1 {
  font-size: var(--font-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-brand-primary);
  margin-bottom: var(--space-lg);
}

h2, .h2 {
  font-size: var(--font-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-brand-primary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-xl);
}

h3, .h3 {
  font-size: var(--font-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-brand-secondary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

h4, .h4 {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

h5, .h5 {
  font-size: var(--font-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

h6, .h6 {
  font-size: var(--font-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

/* Paragraphs */
p {
  font-size: var(--font-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

p.lead {
  font-size: var(--font-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

p.small {
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
}

/* Links */
a {
  color: var(--color-brand-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-brand-primary);
  text-decoration: underline;
}

/* Lists */
ul, ol {
  font-size: var(--font-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-sm);
}

/* Utility Classes */
.text-xs { font-size: var(--font-xs); }
.text-sm { font-size: var(--font-sm); }
.text-base { font-size: var(--font-base); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }
.text-2xl { font-size: var(--font-2xl); }
.text-3xl { font-size: var(--font-3xl); }
.text-4xl { font-size: var(--font-4xl); }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-brand { color: var(--color-brand-primary); }

.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Section Titles (Override) */
.section-title {
  font-size: var(--font-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-primary);
  text-align: center;
  margin-bottom: var(--space-md);
  line-height: var(--line-height-tight);
}

.section-subtitle {
  font-size: var(--font-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-2xl);
  line-height: var(--line-height-relaxed);
}

/* Card Content Typography */
.card-content h3 {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}

.card-content p {
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

/* Metadata Text */
.metadata, .event-meta, .event-details {
  font-size: var(--font-sm);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-normal);
}

/* Rating Text */
.rating {
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
}

/* Price Text */
.price, .event-price {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-primary);
}

/* Button Text */
button, .btn, .card-btn {
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --font-4xl: 1.875rem;  /* 30px on mobile */
    --font-3xl: 1.5rem;    /* 24px on mobile */
    --font-2xl: 1.25rem;   /* 20px on mobile */
  }

  .section-title {
    font-size: var(--font-3xl);
  }

  .section-subtitle {
    font-size: var(--font-base);
  }
}

@media (max-width: 480px) {
  :root {
    --font-4xl: 1.5rem;    /* 24px on small mobile */
    --font-3xl: 1.25rem;   /* 20px on small mobile */
  }
}
