/* ================================================
   Blog Post Styles (Classic Mavericks Style)
   ================================================
   This file contains styles for blog posts displayed
   within the macOS Mavericks-themed window system.
   Base theme styles are in mavericks.css
   ================================================ */

/* ================================================
   Blog Post Layout
   ================================================ */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    color: #333;
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
    background: transparent;
}

/* Header Area */
.post-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E0E0E0;
}

.post-title {
    font-size: 32px;
    font-weight: bold;
    color: #262626;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.post-meta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: #666;
    font-size: 13px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #F2F2F2;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #D9D9D9;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1em;
    opacity: 0.7;
}

/* Category Badge (Pill Style) */
.category-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #007AFF;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Cover Image (Contained) */
.post-cover-image {
    margin: 0 auto 32px auto;
    max-width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 4px;
    border: 1px solid #C0C0C0;
}

.post-cover-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}

/* Content Typography */
.post-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.post-content h2,
.post-content h3 {
    color: #262626;
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: bold;
}

.post-content h2 {
    font-size: 24px;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 8px;
}

.post-content h3 {
    font-size: 18px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content a {
    color: #007AFF;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content blockquote {
    border-left: 4px solid #D0D0D0;
    margin: 24px 0;
    padding: 12px 20px;
    background: #F9F9F9;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 24px 0;
    border: 1px solid #DDD;
}

/* Code Blocks (Light Theme) */
.post-content code {
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    color: #D12F1B;
    background: #F5F5F5;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #E0E0E0;
}

.post-content pre {
    background: #FDFDFD;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #D0D0D0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #333;
    border: none;
}

/* Tags */
.post-tags-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.post-tag {
    color: #666;
    font-size: 12px;
    padding: 3px;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tag:hover {
    color: #333;
}

/* Footer Navigation */
.post-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #E0E0E0;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #D0D0D0;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.nav-link:hover {
    background: #F5F5F5;
    border-color: #B0B0B0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link.next {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}

.nav-title {
    font-weight: 500;
    color: #007AFF;
    font-size: 14px;
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 640px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-link.next {
        text-align: left;
        align-items: flex-start;
    }

    .blog-post {
        padding: 16px;
    }

    .post-title {
        font-size: 24px;
    }

    .post-meta-bar {
        flex-direction: column;
        gap: 8px;
    }
}