/* Google Docs-style Blog Template CSS */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #202124;
    background-color: #f9f9f9;
    padding: 20px 0;
}

/* Document container - Google Docs dimensions */
.document {
    max-width: 912px; /* 9.5 inches at 96 DPI */
    margin: 0 auto;
    background-color: #ffffff;
    padding: 96px 96px 96px 96px; /* 1 inch margins */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .document {
        max-width: 100%;
        padding: 48px 32px;
        box-shadow: none;
    }
}

/* Navigation */
.blog-nav {
    margin-bottom: 32px;
}

.back-link {
    display: inline-block;
    color: #5f6368;
    text-decoration: none;
    font-size: 10pt;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.back-link:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
    text-decoration: none;
}

/* Header styles */
.post-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.post-title {
    font-size: 28pt;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #202124;
}

.post-meta {
    font-size: 10pt;
    color: #5f6368;
    display: flex;
    gap: 16px;
}

.post-date::before {
    content: "📅 ";
}

.post-author::before {
    content: "✍️ ";
}

/* Article content */
.post-content {
    font-size: 11pt;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #202124;
    line-height: 1.3;
}

h2 {
    font-size: 18pt;
    margin-top: 32px;
}

h3 {
    font-size: 14pt;
    margin-top: 24px;
}

h4 {
    font-size: 12pt;
}

p {
    margin-bottom: 12px;
    text-align: justify;
}

/* Links */
a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 12px;
    padding-left: 32px;
}

li {
    margin-bottom: 6px;
}

/* Blockquotes */
blockquote {
    margin: 24px 0;
    padding: 12px 24px;
    border-left: 4px solid #1a73e8;
    background-color: #f8f9fa;
    font-style: italic;
    color: #5f6368;
}

/* Code blocks */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 9pt;
    line-height: 1.5;
}

code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 9pt;
}

/* Inline code */
p code, li code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    font-size: 10pt;
}

/* Images */
.image-container {
    margin: 24px 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

figcaption {
    margin-top: 8px;
    font-size: 9pt;
    color: #5f6368;
    font-style: italic;
}

/* Charts */
.chart-container {
    margin: 24px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Mermaid diagrams */
.mermaid-container {
    margin: 24px 0;
    text-align: center;
}

.mermaid-container pre {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 10pt;
}

thead {
    background-color: #f8f9fa;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
    color: #202124;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

/* Horizontal rule */
hr {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Footer */
.post-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    font-size: 9pt;
    color: #5f6368;
    text-align: center;
}

/* Utility classes */
.text-center {
    text-align: center;
}

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

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

/* Emphasis */
strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* Print styles */
@media print {
    body {
        background-color: #ffffff;
        padding: 0;
    }
    
    .document {
        box-shadow: none;
        max-width: 100%;
    }
}
