/* ==========================================================================
   Article Styles — Apple-Inspired Minimal Dark
   ========================================================================== */

.post {
    padding: 120px 40px 80px;
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    font-size: 15px;
    font-weight: 500;
    color: var(--green, #32d74b);
    text-decoration: none;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.7;
}

.post-body {
    position: relative;
}

.post-body h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 48px;
    color: var(--text-primary, #f5f5f7);
}

.post-body h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 64px;
    margin-bottom: 24px;
    color: var(--text-primary, #f5f5f7);
    letter-spacing: -0.5px;
}

.post-body h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary, #f5f5f7);
}

.post-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary, #f5f5f7);
}

.post-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary, #86868b);
    margin-bottom: 24px;
}

.post-body strong {
    color: var(--text-primary, #f5f5f7);
    font-weight: 600;
}

.post-body em {
    font-style: italic;
}

.post-body a {
    color: var(--green, #32d74b);
    text-decoration: none;
    transition: opacity 0.2s;
}

.post-body a:hover {
    opacity: 0.7;
}

.post-body ul,
.post-body ol {
    margin-bottom: 28px;
    padding-left: 0;
    list-style: none;
}

.post-body li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary, #86868b);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.post-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    background: var(--green, #32d74b);
    border-radius: 50%;
}

.post-body ol {
    counter-reset: list-counter;
}

.post-body ol li {
    counter-increment: list-counter;
}

.post-body ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--green, #32d74b);
}

.post-body blockquote {
    border-left: 3px solid var(--green, #32d74b);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(50, 215, 75, 0.05);
    border-radius: 0 12px 12px 0;
}

.post-body blockquote p {
    margin-bottom: 0;
    font-size: 18px;
    color: var(--text-primary, #f5f5f7);
}

/* Code Blocks */
.post-body code {
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--green, #32d74b);
}

.post-body pre {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
}

.post-body pre code {
    display: block;
    background: none;
    padding: 0;
    border-radius: 0;
    color: var(--text-secondary, #86868b);
    font-size: 14px;
    line-height: 1.7;
}

.post-body hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 64px 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
}

.error {
    color: #ff6b6b;
    padding: 24px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .post {
        padding: 80px 24px 60px;
    }
    
    .post-body h1 {
        font-size: 32px;
    }
    
    .post-body h2 {
        font-size: 24px;
    }
    
    .post-body pre {
        margin-left: -24px;
        margin-right: -24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
