/**
 * Article Content Typography Styles
 * Overrides Tailwind CSS resets for blog article content
 */

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

/* Headers */
.article-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 24px 0;
    color: #111827;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin: 32px 0 16px 0;
    color: #111827;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin: 28px 0 12px 0;
    color: #111827;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    margin: 24px 0 10px 0;
    color: #111827;
}

.article-content h5 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 20px 0 8px 0;
    color: #111827;
}

.article-content h6 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 16px 0 8px 0;
    color: #374151;
}

/* First header shouldn't have top margin */
.article-content > h1:first-child,
.article-content > h2:first-child,
.article-content > h3:first-child,
.article-content > h4:first-child,
.article-content > h5:first-child,
.article-content > h6:first-child {
    margin-top: 0;
}

/* Paragraphs */
.article-content p {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 20px 0;
    color: #374151;
}

/* Links */
.article-content a {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #3367d6;
    text-decoration: underline;
}

/* Unordered Lists */
.article-content ul {
    margin: 0 0 20px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.article-content ul ul {
    margin-top: 8px;
    margin-bottom: 0;
    list-style-type: circle;
}

.article-content ul ul ul {
    list-style-type: square;
}

/* Ordered Lists */
.article-content ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
    list-style-type: decimal;
}

.article-content ol ol {
    margin-top: 8px;
    margin-bottom: 0;
    list-style-type: lower-alpha;
}

.article-content ol ol ol {
    list-style-type: lower-roman;
}

/* List Items */
.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content li:last-child {
    margin-bottom: 0;
}

.article-content li > p {
    margin-bottom: 8px;
}

.article-content li > p:last-child {
    margin-bottom: 0;
}

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid #4285f4;
    padding: 16px 20px;
    margin: 24px 0;
    background-color: #f9fafb;
    font-style: italic;
    color: #4b5563;
}

.article-content blockquote p {
    margin-bottom: 12px;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    color: #6b7280;
}

/* Inline Code */
.article-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 15px;
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1f2937;
}

/* Code Blocks */
.article-content pre {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    background-color: #1f2937;
    color: #f9fafb;
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    border-radius: 8px;
}

.article-content pre code {
    font-size: 14px;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 8px;
}

.article-content figure {
    margin: 24px 0;
}

.article-content figure img {
    margin: 0;
}

.article-content figcaption {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 12px;
}

/* Horizontal Rule */
.article-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 32px 0;
}

/* Strong and Emphasis */
.article-content strong,
.article-content b {
    font-weight: 600;
    color: #111827;
}

.article-content em,
.article-content i {
    font-style: italic;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 16px;
}

.article-content thead {
    background-color: #f9fafb;
}

.article-content th {
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    color: #111827;
}

.article-content td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.article-content tbody tr:hover {
    background-color: #f9fafb;
}

/* Definition Lists */
.article-content dl {
    margin: 0 0 20px 0;
}

.article-content dt {
    font-weight: 600;
    color: #111827;
    margin-top: 16px;
}

.article-content dt:first-child {
    margin-top: 0;
}

.article-content dd {
    margin: 4px 0 0 24px;
    color: #374151;
}

/* Keyboard Input */
.article-content kbd {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 6px;
    box-shadow: 0 1px 0 #d1d5db;
}

/* Mark/Highlight */
.article-content mark {
    background-color: #fef08a;
    padding: 1px 4px;
    border-radius: 2px;
}

/* Subscript and Superscript */
.article-content sub,
.article-content sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.article-content sup {
    top: -0.5em;
}

.article-content sub {
    bottom: -0.25em;
}

/* Abbreviations */
.article-content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}
