/**
 * ============================================================================
 * INVEZTHINK - Standardized Typography System
 * ============================================================================
 * Single source of truth for all heading and text styles.
 * Replaces fragmented custom classes (.hero-title, .webinar-hero-title, etc.)
 * 
 * USAGE:
 * - Hero H1:       <h1 class="heading-hero">...</h1>
 * - Section H2:    <h2 class="heading-section">...</h2>
 * - Feature H3:    <h3 class="heading-feature">...</h3>
 * - Subsection H4: <h4 class="heading-subsection">...</h4>
 * - Small H5:      <h5 class="heading-small">...</h5>
 * - Caption H6:    <h6 class="heading-caption">...</h6>
 * 
 * MODIFIERS:
 * - .text-gradient     Add gradient text effect
 * - .text-animated     Add shine animation
 * - .text-muted        Muted gray color for subtitles
 * ============================================================================
 */

:root {
    /* Typography Variables */
    --font-family-base: 'Inter', sans-serif;
    --text-white: #FFFFFF;
    --text-muted: #94A3B8;
    --text-gradient: linear-gradient(135deg, #fff 0%, #60A5FA 50%, #fff 100%);
}

/* ============================================================================
   BASE TYPOGRAPHY SETTINGS
   ============================================================================ */
body {
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   HEADING HIERARCHY
   ============================================================================ */

/* Hero Heading (H1) - Main page title */
.heading-hero {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 24px;
}

/* Section Heading (H2) - Major section titles */
.heading-section {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 20px;
}

/* Feature Heading (H3) - Feature/card titles */
.heading-feature {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-white);
    margin-bottom: 20px;
}

/* Subsection Heading (H4) - Smaller sections */
.heading-subsection {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-white);
    margin-bottom: 16px;
}

/* Small Heading (H5) - Minor sections */
.heading-small {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-white);
    margin-bottom: 12px;
}

/* Caption Heading (H6) - Captions and labels */
.heading-caption {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   RESPONSIVE TYPOGRAPHY (Mobile-First)
   ============================================================================ */

@media (max-width: 1024px) {
    /* Tablet adjustments */
    .heading-hero {
        font-size: 56px;
    }
    
    .heading-section {
        font-size: 42px;
    }
    
    .heading-feature {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments */
    .heading-hero {
        font-size: 42px;
    }
    
    .heading-section {
        font-size: 36px;
    }
    
    .heading-feature {
        font-size: 28px;
    }
    
    .heading-subsection {
        font-size: 22px;
    }
    
    .heading-small {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Small mobile adjustments */
    .heading-hero {
        font-size: 36px;
    }
    
    .heading-section {
        font-size: 32px;
    }
    
    .heading-feature {
        font-size: 24px;
    }
    
    .heading-subsection {
        font-size: 20px;
    }
}

/* ============================================================================
   TEXT MODIFIERS
   ============================================================================ */

/* Gradient Text Effect */
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
}

/* Animated Gradient (Shine Effect) */
.text-animated {
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Muted Text */
.text-muted {
    color: var(--text-muted);
}

/* Subtitle Text */
.text-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.text-subtitle-large {
    font-size: 24px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Description Text */
.text-description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ============================================================================
   BADGE COMPONENTS
   ============================================================================ */

/* Section Badge (above headings) */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.section-badge:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* ============================================================================
   FONT WEIGHT UTILITIES (Semantic naming)
   ============================================================================ */

.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;
}

.font-black {
    font-weight: 900;
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

/* High contrast mode */
@media (prefers-contrast: high) {
    .heading-hero,
    .heading-section,
    .heading-feature,
    .heading-subsection,
    .heading-small {
        color: #FFFFFF;
    }
    
    .text-muted,
    .text-subtitle,
    .text-description {
        color: #E5E7EB;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .text-animated {
        animation: none;
    }
    
    .section-badge:hover,
    .hero-badge:hover {
        transform: none;
    }
}

/* ============================================================================
   LEGACY SUPPORT (For gradual migration)
   ============================================================================ */

/* Map old classes to new system (to be removed after migration) */
.hero-title {
    /* Use .heading-hero .text-gradient .text-animated instead */
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #60A5FA 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    line-height: 1.1;
}

.section-title {
    /* Use .heading-section instead */
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.feature-title {
    /* Use .heading-feature instead */
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.webinar-hero-title {
    /* Use .heading-hero instead */
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.webinar-title {
    /* Use .heading-section instead */
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}
