/* ============================================
   AI Blog - Main Stylesheet
   ============================================ */

/* CSS Variables for consistency */
:root {
    --primary-color: #212529;
    --secondary-color: #6c757d;
    --muted-color: #2b2f33;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --container-max-width: 1000px;
    --article-max-width: 780px;
    --post-header-max-width: 820px;
}

/* Global Layout */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--primary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max-width);
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5 {
    letter-spacing: 0.2px;
}

h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 1rem 0;
    color: var(--muted-color);
}

ul, ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

blockquote {
    border-left: 4px solid #e9ecef;
    padding-left: 1rem;
    color: var(--secondary-color);
    margin: 1rem 0;
}

/* Article Body */
.article-body {
    max-width: var(--article-max-width);
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.85;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Post Header */
.post-header {
    max-width: var(--post-header-max-width);
    margin: 0 auto 0.75rem auto;
}

.post-meta {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Card Styles */
.card .card-title {
    margin-bottom: 0.85rem;
}

/* Image Styles */
.post-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Visitor Counter */
.visitor-counter {
    position: fixed;
    top: 90px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    font-size: 14px;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visitor-counter {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }
}

