/**
 * =============================================================================
 * MoodHera Events - Typography System
 * =============================================================================
 * 
 * Professional typography scale and text styles.
 * Defines heading sizes, body text, font weights, and responsive scaling.
 * 
 * @package    MoodHera
 * @version    2.13.0
 * @since      1.0.0
 * 
 * Structure:
 * - Font Loading
 * - Heading Styles (H1-H6)
 * - Body Text
 * - Text Utilities
 * - Responsive Typography
 * 
 * =============================================================================
 */

/* =============================================================================
   HEADING STYLES
   Consistent heading hierarchy with responsive scaling
   All use --font-heading (Syne) with fallback
   ============================================================================= */

h1,
.h1 {
    font-family: var(--font-heading);
    font-size: 3rem;        /* 48px */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-lg) 0;
}

h2,
.h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;     /* 36px */
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md) 0;
}

h3,
.h3 {
    font-family: var(--font-heading);
    font-size: 1.875rem;    /* 30px */
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md) 0;
}

h4,
.h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;      /* 24px */
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm) 0;
}

h5,
.h5 {
    font-family: var(--font-heading);
    font-size: 1.25rem;     /* 20px */
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm) 0;
}

h6,
.h6 {
    font-family: var(--font-heading);
    font-size: 1rem;        /* 16px */
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-sm) 0;
}

/* =============================================================================
   BODY TEXT
   Base paragraph and text styles
   ============================================================================= */

body,
.body-text {
    font-family: var(--font-body);
    font-size: 1rem;        /* 16px */
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-text-primary);
}

p {
    margin: 0 0 var(--space-md) 0;
}

p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   TEXT SIZE UTILITIES
   Additional text size classes for flexibility
   ============================================================================= */

.text-xs {
    font-size: 0.75rem;     /* 12px */
    line-height: 1.4;
}

.text-sm {
    font-size: 0.875rem;    /* 14px */
    line-height: 1.5;
}

.text-base {
    font-size: 1rem;        /* 16px */
    line-height: 1.65;
}

.text-lg {
    font-size: 1.125rem;    /* 18px */
    line-height: 1.7;
}

.text-xl {
    font-size: 1.25rem;     /* 20px */
    line-height: 1.75;
}

.text-2xl {
    font-size: 1.5rem;      /* 24px */
    line-height: 1.4;
}

.text-3xl {
    font-size: 1.875rem;    /* 30px */
    line-height: 1.3;
}

.text-4xl {
    font-size: 2.25rem;     /* 36px */
    line-height: 1.25;
}

.text-5xl {
    font-size: 3rem;        /* 48px */
    line-height: 1.2;
}

/* =============================================================================
   FONT WEIGHT UTILITIES
   ============================================================================= */

.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-extrabold {
    font-weight: 800;
}

/* =============================================================================
   TEXT STYLE UTILITIES
   ============================================================================= */

.text-italic {
    font-style: italic;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

/* =============================================================================
   TEXT ALIGNMENT UTILITIES
   ============================================================================= */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* =============================================================================
   TEXT COLOR UTILITIES
   ============================================================================= */

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

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

.text-muted {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.text-brand {
    color: var(--moodhera-pink);
}

/* =============================================================================
   DARK MODE TEXT COLORS
   ============================================================================= */

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .text-primary {
    color: var(--color-text-dark);
}

[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-muted {
    color: var(--color-text-muted-dark);
}

/* =============================================================================
   RESPONSIVE TYPOGRAPHY
   Scale down heading sizes on smaller screens
   ============================================================================= */

@media (max-width: 768px) {
    h1, .h1 {
        font-size: 2.25rem;    /* 36px on mobile */
    }
    
    h2, .h2 {
        font-size: 1.875rem;   /* 30px on mobile */
    }
    
    h3, .h3 {
        font-size: 1.5rem;     /* 24px on mobile */
    }
    
    h4, .h4 {
        font-size: 1.25rem;    /* 20px on mobile */
    }
}

@media (max-width: 480px) {
    h1, .h1 {
        font-size: 2rem;       /* 32px on small mobile */
    }
    
    h2, .h2 {
        font-size: 1.5rem;     /* 24px on small mobile */
    }
}
