/* Typography Styles - Стили типографики ТРОН */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--tron-text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--tron-text);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    /* background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */
    /* REMOVED: Transparent text fill causes visibility issues */
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    color: var(--tron-text);
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--tron-dark-gray);
    margin-bottom: 1.5rem;
}

/* Text Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* Font Weights */
.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-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Text Colors */
.text-primary { color: var(--tron-blue) !important; }
.text-secondary { color: var(--tron-dark-gray) !important; }
.text-success { color: var(--tron-success) !important; }
.text-warning { color: var(--tron-warning) !important; }
.text-danger { color: var(--tron-danger) !important; }
.text-info { color: var(--tron-info) !important; }
.text-muted { color: var(--tron-dark-gray) !important; }
.text-white { color: white !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

/* Text Transform */
.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }

/* Text Decoration */
.text-decoration-none { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }
.text-decoration-line-through { text-decoration: line-through !important; }

/* Line Height */
.leading-none { line-height: 1 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-normal { line-height: 1.5 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.leading-loose { line-height: 2 !important; }

/* Letter Spacing */
.tracking-tighter { letter-spacing: -0.05em !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-normal { letter-spacing: 0em !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.list-inline {
    list-style: none;
    padding-left: 0;
}

.list-inline li {
    display: inline-block;
    margin-right: 1rem;
}

/* Links */
a {
    color: var(--tron-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--tron-dark-blue);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--tron-blue);
    outline-offset: 2px;
}

/* Special Link Styles */
.link-primary {
    color: var(--tron-blue);
    font-weight: 500;
}

.link-primary:hover {
    color: var(--tron-dark-blue);
    text-decoration: none;
}

.link-secondary {
    color: var(--tron-dark-gray);
    font-weight: 400;
}

.link-secondary:hover {
    color: var(--tron-text);
    text-decoration: none;
}

/* Blockquotes */
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--tron-blue);
    background-color: var(--tron-light-blue);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--tron-text);
}

blockquote p {
    margin-bottom: 0;
}

blockquote footer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--tron-dark-gray);
    font-style: normal;
}

/* Code */
code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
    color: var(--tron-danger);
    background-color: var(--tron-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

pre {
    background-color: var(--tron-gray);
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    color: var(--tron-text);
    background-color: transparent;
    padding: 0;
}

/* Mark */
mark {
    background-color: #fff3cd;
    color: var(--tron-text);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
}

/* Small */
small {
    font-size: 0.875em;
    color: var(--tron-dark-gray);
}

/* Abbreviations */
abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    border-bottom: 0;
}

/* Address */
address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Time */
time {
    color: var(--tron-dark-gray);
    font-size: 0.875rem;
}

/* Text Utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-break {
    word-wrap: break-word;
    word-break: break-word;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-wrap {
    white-space: normal !important;
}

/* Display Classes */
.display-1 {
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.2;
}

.display-2 {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.display-3 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.2;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--tron-blue), #00CCFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Shadow */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Typography */
@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; }
    h6 { font-size: 1rem; }
    
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.75rem; }
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2.25rem; }
    
    .lead {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2.25rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
}