/**
 * AURORA X - Typography Stylesheet
 * Version: 1.0
 * Author: CleanWebThemes
 * 
 * Table of Contents:
 * 1. Font Face
 * 2. Headings
 * 3. Body Text
 * 4. Special Text Styles
 * 5. Lists & Quotes
 */

/* ==========================================================================
   1. Font Face
   ========================================================================== */

/* Inter Font - Using Google Fonts fallback if local not available */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'), local('Inter-Regular'),
         url('../fonts/inter/Inter-Regular.woff2') format('woff2'),
         url('../fonts/inter/Inter-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Inter Medium'), local('Inter-Medium'),
         url('../fonts/inter/Inter-Medium.woff2') format('woff2'),
         url('../fonts/inter/Inter-Medium.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Inter SemiBold'), local('Inter-SemiBold'),
         url('../fonts/inter/Inter-SemiBold.woff2') format('woff2'),
         url('../fonts/inter/Inter-SemiBold.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Inter Bold'), local('Inter-Bold'),
         url('../fonts/inter/Inter-Bold.woff2') format('woff2'),
         url('../fonts/inter/Inter-Bold.woff') format('woff');
}

/* Google Fonts Fallback */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   2. Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

h1, .h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2, .h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

h3, .h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

h4, .h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.3;
}

h5, .h5 {
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 600;
}

h6, .h6 {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

/* Display Headings */
.display-1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.display-2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.display-3 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* ==========================================================================
   3. Body Text
   ========================================================================== */

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

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

/* Text Sizes */
.text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-base {
    font-size: 1rem;
    line-height: 1.7;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.6;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 1.5;
}

/* Lead Text */
.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Small Text */
small, .small {
    font-size: 0.875rem;
    line-height: 1.5;
}

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

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

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

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

/* Text Weights */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

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

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

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

/* ==========================================================================
   4. Special Text Styles
   ========================================================================== */

/* Gradient Text */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-aurora {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Outlined Text */
.text-outline {
    -webkit-text-stroke: 2px var(--text-primary);
    -webkit-text-fill-color: transparent;
}

/* Highlighted Text */
.text-highlight {
    position: relative;
    display: inline;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(99, 102, 241, 0.2);
    z-index: -1;
}

/* Uppercase */
.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Capitalize */
.text-capitalize {
    text-transform: capitalize;
}

/* Italic */
.text-italic {
    font-style: italic;
}

/* Strikethrough */
.text-strike {
    text-decoration: line-through;
}

/* Underline */
.text-underline {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Letter Spacing */
.tracking-tight {
    letter-spacing: -0.02em;
}

.tracking-normal {
    letter-spacing: 0;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* Line Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   5. Lists & Quotes
   ========================================================================== */

/* Styled Lists */
.list-styled {
    padding-left: var(--spacing-lg);
}

.list-styled li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.list-styled li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

/* Check List */
.list-check li::before {
    content: '✓';
    background: none;
    color: var(--color-primary);
    font-weight: 600;
    width: auto;
    height: auto;
    top: 0;
}

/* Numbered List */
.list-numbered {
    counter-reset: list-counter;
}

.list-numbered li {
    counter-increment: list-counter;
}

.list-numbered li::before {
    content: counter(list-counter) '.';
    background: none;
    color: var(--color-primary);
    font-weight: 600;
    width: auto;
    height: auto;
    top: 0;
}

/* Inline List */
.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

/* Blockquote */
blockquote, .blockquote {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-2xl);
    margin: var(--spacing-xl) 0;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    border-left: 4px solid var(--color-primary);
    background: var(--color-gray-50);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-lg);
    font-size: 4rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--color-primary);
    opacity: 0.2;
}

blockquote cite,
.blockquote-footer {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    font-style: normal;
    color: var(--text-muted);
}

blockquote cite::before,
.blockquote-footer::before {
    content: '— ';
}

/* Code */
code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}

pre {
    background: var(--color-gray-900);
    color: var(--color-gray-100);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--spacing-xl) 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

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

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

/* Horizontal Rule */
hr {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: var(--spacing-2xl) 0;
}

.hr-gradient {
    height: 2px;
    background: var(--gradient-primary);
}

/* Mark */
mark {
    background: rgba(99, 102, 241, 0.2);
    color: inherit;
    padding: 0.1em 0.3em;
    border-radius: var(--radius-sm);
}

/* Abbreviation */
abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* Dropcap */
.dropcap::first-letter {
    float: left;
    font-size: 4em;
    line-height: 0.8;
    font-weight: 700;
    margin-right: var(--spacing-sm);
    color: var(--color-primary);
}

/* Article Typography */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-lg);
}

.article-content h3 {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.article-content p {
    margin-bottom: var(--spacing-lg);
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: var(--spacing-2xl) 0;
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content a:hover {
    color: var(--color-primary-dark);
}
