/**
 * Enhanced Typography
 * Premium text styles and utilities
 */

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

/* 40px */
h2 {
    font-size: 2rem;
}

/* 32px */
h3 {
    font-size: 1.75rem;
}

/* 28px */
h4 {
    font-size: 1.5rem;
}

/* 24px */
h5 {
    font-size: 1.25rem;
}

/* 20px */
h6 {
    font-size: 1rem;
}

/* 16px */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.125rem;
    }
}

/* ===================================
   TEXT SIZES
   =================================== */

.text-xs {
    font-size: 0.75rem;
}

/* 12px */
.text-sm {
    font-size: 0.875rem;
}

/* 14px */
.text-base {
    font-size: 1rem;
}

/* 16px */
.text-lg {
    font-size: 1.125rem;
}

/* 18px */
.text-xl {
    font-size: 1.25rem;
}

/* 20px */
.text-2xl {
    font-size: 1.5rem;
}

/* 24px */
.text-3xl {
    font-size: 1.875rem;
}

/* 30px */
.text-4xl {
    font-size: 2.25rem;
}

/* 36px */
.text-5xl {
    font-size: 3rem;
}

/* 48px */

/* ===================================
   TEXT WEIGHTS
   =================================== */

.font-thin {
    font-weight: 100;
}

.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-black {
    font-weight: 900;
}

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

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

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

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

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

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

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

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

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

.text-white {
    color: #ffffff;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5);
}

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

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

.normal-case {
    text-transform: none;
}

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

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

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

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

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

/* ===================================
   LETTER SPACING
   =================================== */

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

.tracking-tight {
    letter-spacing: -0.025em;
}

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

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

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

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

/* ===================================
   LINE HEIGHT
   =================================== */

.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-snug {
    line-height: 1.375;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-loose {
    line-height: 2;
}

/* ===================================
   TEXT DECORATIONS
   =================================== */

.underline {
    text-decoration: underline;
}

.line-through {
    text-decoration: line-through;
}

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

/* Animated underline */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* ===================================
   TEXT EFFECTS
   =================================== */

/* Glow text */
.text-glow {
    text-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
}

/* Shadow text */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Stroke text */
.text-stroke {
    -webkit-text-stroke: 1px rgba(0, 243, 255, 0.5);
    text-stroke: 1px rgba(0, 243, 255, 0.5);
}

/* ===================================
   TRUNCATE TEXT
   =================================== */

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis {
    text-overflow: ellipsis;
}

.text-clip {
    text-overflow: clip;
}

/* 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;
}

/* ===================================
   QUOTES & CODE
   =================================== */

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--accent);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

code {
    padding: 2px 6px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #00f3ff;
}

pre {
    padding: 1em;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

pre code {
    padding: 0;
    background: none;
    border: none;
}

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

/* Highlight */
.highlight {
    background: rgba(0, 243, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #00f3ff;
}

/* Keyboard key */
.kbd {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.875em;
    font-family: monospace;
    line-height: 1.4;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Badge text */
.badge-text {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00f3ff 0%, #0066ff 100%);
    color: white;
    border-radius: 12px;
}

/* ===================================
   MONO & SERIF FONTS
   ===================

================== */

.font-mono {
    font-family: 'Monaco', 'Courier New', monospace;
}

.font-serif {
    font-family: Georgia, 'Times New Roman', serif;
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */

@media (max-width: 768px) {
    .md\:text-xs {
        font-size: 0.75rem;
    }

    .md\:text-sm {
        font-size: 0.875rem;
    }

    .md\:text-base {
        font-size: 1rem;
    }

    .md\:text-lg {
        font-size: 1.125rem;
    }

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

/* ===================================
   SELECTION STYLING
   =================================== */

::selection {
    background: rgba(0, 243, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(0, 243, 255, 0.3);
    color: #ffffff;
}

/* ===================================
   PLACEHOLDER STYLING
   =================================== */

::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
}