/**
 * Typography Styles
 * Font definitions and text styling
 * 
 * @package Ashrey_Natural
 * @version 1.0.0
 */

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

h2, .h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
}

h3, .h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
}

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

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

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

/* ========================================
   Body Text
   ======================================== */
.text-body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

.text-lead {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

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

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

/* ========================================
   Font Weights
   ======================================== */
.font-light {
    font-weight: var(--font-weight-light);
}

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

/* ========================================
   Text Colors
   ======================================== */
.text-primary {
    color: var(--color-text-primary);
}

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

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

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

/* ========================================
   Text Alignment
   ======================================== */
.text-left {
    text-align: left;
}

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

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

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

/* RTL support */
[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

/* ========================================
   Text Transform
   ======================================== */
.text-uppercase {
    text-transform: uppercase;
}

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

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

/* ========================================
   Links
   ======================================== */
.link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
}

.link:hover {
    color: var(--color-primary-dark);
}

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

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

/* ========================================
   Quotes
   ======================================== */
blockquote {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-background-secondary);
    font-style: italic;
}

[dir="rtl"] blockquote {
    border-left: none;
    border-right: 4px solid var(--color-primary);
}

cite {
    font-style: normal;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ========================================
   Code
   ======================================== */
code {
    padding: 2px 6px;
    background-color: var(--color-background-secondary);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    padding: var(--spacing-md);
    background-color: var(--color-background-secondary);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

pre code {
    padding: 0;
    background-color: transparent;
}

/* ========================================
   Lists
   ======================================== */
.list-styled {
    list-style: disc;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

[dir="rtl"] .list-styled {
    padding-left: 0;
    padding-right: var(--spacing-lg);
}

.list-styled li {
    margin-bottom: var(--spacing-xs);
}

.list-numbered {
    list-style: decimal;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

[dir="rtl"] .list-numbered {
    padding-left: 0;
    padding-right: var(--spacing-lg);
}

.list-numbered li {
    margin-bottom: var(--spacing-xs);
}

/* ========================================
   Responsive Typography
   ======================================== */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2, .h2 {
        font-size: var(--font-size-2xl);
    }
    
    h3, .h3 {
        font-size: var(--font-size-xl);
    }
    
    .text-lead {
        font-size: var(--font-size-base);
    }
}


