/* Enhanced typography styling for dark mode */

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

/* Set base font */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    line-height: 1.6 !important;
    color: #e0e0e0 !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #f8fafc !important;
    margin-top: 0 !important;
    margin-bottom: 0.5em !important;
}

h1 {
    font-size: 2.5rem !important;
    letter-spacing: -0.5px !important;
}

h2 {
    font-size: 2rem !important;
    letter-spacing: -0.3px !important;
}

h3 {
    font-size: 1.75rem !important;
    letter-spacing: -0.2px !important;
}

h4 {
    font-size: 1.5rem !important;
    letter-spacing: -0.15px !important;
}

h5 {
    font-size: 1.25rem !important;
    letter-spacing: -0.1px !important;
}

h6 {
    font-size: 1.1rem !important;
    letter-spacing: 0 !important;
}

/* Paragraphs */
p {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    color: #e0e0e0 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* Links */
a {
    color: #60a5fa !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

a:hover {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

/* Lists */
ul, ol {
    padding-left: 2rem !important;
    margin-bottom: 1rem !important;
}

li {
    margin-bottom: 0.5rem !important;
    color: #e0e0e0 !important;
}

/* Emphasis */
strong, b {
    font-weight: 600 !important;
    color: #f8fafc !important;
}

em, i {
    font-style: italic !important;
}

/* Code */
code {
    font-family: Menlo, Monaco, 'Courier New', monospace !important;
    background-color: #2a2a2a !important;
    color: #f87171 !important;
    padding: 0.2em 0.4em !important;
    border-radius: 3px !important;
    font-size: 0.9em !important;
}

pre {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid #333 !important;
}

pre code {
    background-color: transparent !important;
    padding: 0 !important;
    color: #e0e0e0 !important;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #3b82f6 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1.5rem !important;
    color: #94a3b8 !important;
    font-style: italic !important;
}

blockquote p {
    color: #94a3b8 !important;
}

/* Tables */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid #333 !important;
}

th {
    background-color: #2a2a2a !important;
    color: #f8fafc !important;
    font-weight: 600 !important;
    text-align: left !important;
    padding: 0.75rem !important;
    border-bottom: 2px solid #333 !important;
}

td {
    padding: 0.75rem !important;
    border-bottom: 1px solid #333 !important;
    color: #e0e0e0 !important;
}

tr:last-child td {
    border-bottom: none !important;
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Section titles */
.section-title {
    color: #60a5fa !important;
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    position: relative !important;
    display: inline-block !important;
}

.section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 0 !important;
    width: 60% !important;
    height: 3px !important;
    background: linear-gradient(90deg, #3b82f6, transparent) !important;
    border-radius: 3px !important;
}

/* Text colors */
.text-primary {
    color: #60a5fa !important;
}

.text-secondary {
    color: #94a3b8 !important;
}

.text-success {
    color: #34d399 !important;
}

.text-danger {
    color: #f87171 !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.text-info {
    color: #22d3ee !important;
}

/* Text sizes */
.text-xs {
    font-size: 0.75rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-md {
    font-size: 1rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

/* Font weights */
.font-light {
    font-weight: 300 !important;
}

.font-normal {
    font-weight: 400 !important;
}

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

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

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

/* Text utilities */
.text-center {
    text-align: center !important;
}

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

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

.uppercase {
    text-transform: uppercase !important;
}

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

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

.underline {
    text-decoration: underline !important;
}

/* Special text styles */
.gradient-text {
    background: linear-gradient(90deg, #60a5fa, #a78bfa) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline-block !important;
}
