/* Typography Improvements - css/typography.css */

/* ===== BASE TYPOGRAPHY ===== */
body,
html {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Arabic text optimization */
body[dir="rtl"],
.arabic-text,
[lang="ar"] {
    font-family: var(--font-arabic);
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 0.75em;
    color: inherit;
}

h1, .h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    margin-bottom: 0.5em;
}

h2, .h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

h3, .h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.25;
}

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

h5, .h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

h6, .h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== PARAGRAPHS & TEXT ===== */
p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.25em;
    font-weight: var(--font-weight-normal);
}

.lead,
.intro-text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
    margin-bottom: 1.5em;
}

.small,
small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

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

/* ===== LINKS ===== */
a {
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== LISTS ===== */
ul, ol {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* ===== NAVIGATION ===== */
.main-navigation,
.primary-navigation,
.site-navigation {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
}

.menu a,
.nav-menu a {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.025em;
}

/* ===== BUTTONS ===== */
button,
.button,
.btn,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.025em;
    line-height: 1.2;
    padding: 0.875em 1.75em;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-large,
.button-large {
    font-size: var(--font-size-lg);
    padding: 1em 2em;
}

.btn-small,
.button-small {
    font-size: var(--font-size-sm);
    padding: 0.625em 1.25em;
}

/* ===== FORMS ===== */
input,
textarea,
select {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    padding: 0.75em 1em;
    border-radius: 6px;
}

label {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5em;
    display: block;
}

/* ===== CONTENT AREAS ===== */
.entry-content,
.post-content,
.page-content,
.content-area {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.entry-title,
.post-title,
.page-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    margin-bottom: 0.75em;
}

.entry-meta,
.post-meta,
.meta-info {
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
}

/* ===== WIDGETS ===== */
.widget {
    font-size: var(--font-size-base);
}

.widget-title,
.widgettitle {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 1em;
}

/* ===== SIDEBAR ===== */
.sidebar,
.widget-area {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

/* ===== FOOTER ===== */
.site-footer,
.footer {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75em;
}

/* ===== THEME SPECIFIC OVERRIDES ===== */

/* EventChamp specific classes */
.ec-title,
.event-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.ec-content,
.event-content {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.ec-meta,
.event-meta {
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

/* Hero sections */
.hero-title,
.banner-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    line-height: 1;
    margin-bottom: 0.5em;
}

.hero-subtitle,
.banner-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
}

/* Cards and boxes */
.card-title,
.box-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: 0.5em;
}

.card-text,
.box-text {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Mobile optimizations */
@media (max-width: 767px) {
    h1, .h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2, .h2 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-title,
    .banner-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle,
    .banner-subtitle {
        font-size: var(--font-size-lg);
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title,
    .banner-title {
        font-size: var(--font-size-4xl);
    }
}

/* ===== UTILITY CLASSES ===== */
.font-primary {
    font-family: var(--font-primary);
}

.font-secondary {
    font-family: var(--font-secondary);
}

.font-arabic {
    font-family: var(--font-arabic);
}

.text-light {
    font-weight: var(--font-weight-light);
}

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

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

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

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

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

.line-height-tight {
    line-height: var(--line-height-tight);
}

.line-height-normal {
    line-height: var(--line-height-normal);
}

.line-height-relaxed {
    line-height: var(--line-height-relaxed);
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-family: Arial, sans-serif;
        page-break-after: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        font-weight: var(--font-weight-medium);
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-weight: var(--font-weight-extrabold);
    }
} 