/* ===================================
   Base Typography - The Chatbot Genius
   =================================== */

/* Base Typography Settings */
html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    font-weight: var(--font-weight-normal);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

/* Paragraphs */
p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

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

li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-blue);
    background-color: var(--bg-light);
    font-style: italic;
}

/* Code */
code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    color: var(--primary-dark);
}

pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    padding: 1rem;
    background-color: var(--primary-dark);
    color: var(--text-white);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin: 1rem 0;
}

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

/* Small Text */
small {
    font-size: var(--font-size-sm);
}

/* Strong & Bold */
strong, b {
    font-weight: var(--font-weight-bold);
}

/* Emphasis */
em, i {
    font-style: italic;
}

/* Horizontal Rule */
hr {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0;
}

/* Text Selection */
::selection {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

::-moz-selection {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

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