/**
 * ExamBlaze Typography
 * Font imports and text styles
 * 
 * @package ExamBlaze
 * @version 1.0
 */

/* ========================================
   GOOGLE FONTS IMPORT
   ======================================== */

/* Import Poppins (Headings) and Inter (Body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

h1, .h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-none);
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
}

h3, .h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
}

h4, .h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

h5, .h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

h6, .h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

/* Heading variants */
.heading-dark {
    color: var(--deep-navy);
}

.heading-white {
    color: var(--text-white);
}

.heading-orange {
    color: var(--accent-orange);
}

/* ========================================
   PARAGRAPHS & TEXT
   ======================================== */

p {
    margin-bottom: var(--space-md);
    line-height: var(--leading-relaxed);
}

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

/* Text size utilities */
.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

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

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

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

/* ========================================
   TEXT COLORS
   ======================================== */

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

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

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

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

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

.text-navy {
    color: var(--deep-navy);
}

.text-orange {
    color: var(--accent-orange);
}

/* ========================================
   FONT WEIGHTS
   ======================================== */

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

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

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

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

.font-extrabold {
    font-weight: var(--font-extrabold);
}

/* ========================================
   TEXT TRANSFORMS
   ======================================== */

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

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

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

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

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

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

/* ========================================
   LINKS
   ======================================== */

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-colors);
}

a:hover {
    color: var(--deep-navy);
}

a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Link variants */
.link-orange {
    color: var(--accent-orange);
}

.link-orange:hover {
    color: var(--light-orange);
}

.link-white {
    color: var(--text-white);
}

.link-white:hover {
    color: var(--light-orange);
}

.link-underline {
    text-decoration: underline;
}

.link-underline:hover {
    text-decoration: none;
}

.link-no-underline {
    text-decoration: none;
}

/* ========================================
   LISTS
   ======================================== */

ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

ul li, ol li {
    margin-bottom: var(--space-sm);
    line-height: var(--leading-relaxed);
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* Custom styled lists */
.list-checkmark {
    list-style: none;
    padding-left: 0;
}

.list-checkmark li {
    position: relative;
    padding-left: var(--space-xl);
}

.list-checkmark li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.list-orange-check li::before {
    color: var(--accent-orange);
}

/* ========================================
   SPECIAL TEXT STYLES
   ======================================== */

/* Lead text (larger intro paragraph) */
.lead {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* Small text */
small, .small {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Strong emphasis */
strong, .strong {
    font-weight: var(--font-bold);
    color: var(--text-dark);
}

/* Emphasis */
em, .em {
    font-style: italic;
}

/* Blockquote */
blockquote {
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-2xl) 0;
    border-left: 4px solid var(--accent-orange);
    background: var(--bg-light);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-dark);
}

blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: var(--space-md);
    font-size: var(--text-base);
    font-style: normal;
    color: var(--text-muted);
}

/* ========================================
   CODE & PRE
   ======================================== */

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--accent-orange);
}

pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--text-sm);
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

pre code {
    padding: 0;
    background: none;
    color: inherit;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    h1, .h1 {
        font-size: var(--text-4xl);
    }
    
    h2, .h2 {
        font-size: var(--text-3xl);
    }
    
    h3, .h3 {
        font-size: var(--text-2xl);
    }
    
    .lead {
        font-size: var(--text-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1, .h1 {
        font-size: var(--text-3xl);
    }
    
    h2, .h2 {
        font-size: var(--text-2xl);
    }
    
    h3, .h3 {
        font-size: var(--text-xl);
    }
    
    h4, .h4 {
        font-size: var(--text-lg);
    }
    
    .lead {
        font-size: var(--text-base);
    }
}