/*
 * pawel.life — Blog Post Styles
 * Apple-minimal reading experience
 * Based on blog-styles.css from Oxygen, adapted for standalone
 */

/* ==================== Post Layout ==================== */
.post {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 4rem;
}

.post-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== Post Header ==================== */
.post-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-meta-dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.post-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Post Content ==================== */
.post-content {
    font-size: 20px;
    line-height: 1.75;
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content a {
    color: var(--gold-solid);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.post-content a:hover {
    border-bottom-color: var(--gold-solid);
}

.post-content strong {
    font-weight: 600;
    color: var(--text);
}

.post-content em {
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content img {
    border-radius: 16px;
    margin: 2rem 0;
}

/* ==================== Blockquotes ==================== */
.post-content blockquote {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    border-left: 4px solid;
    border-image: var(--gold) 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-content blockquote p {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0;
}

.post-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: var(--font-size-sm);
    font-style: normal;
    color: var(--text-muted);
}

.post-content blockquote cite::before {
    content: "— ";
}

/* Featured quote */
.post-content blockquote.featured {
    text-align: center;
    border-left: none;
    border-image: none;
    background: linear-gradient(135deg, rgba(212, 160, 18, 0.06) 0%, rgba(194, 65, 12, 0.06) 100%);
    padding: 3rem;
}

.post-content blockquote.featured::before {
    content: '"';
    display: block;
    font-size: 3.5rem;
    line-height: 1;
    background: var(--gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.post-content blockquote.featured p {
    font-size: 1.35rem;
    font-weight: 500;
    font-style: normal;
}

/* ==================== Code blocks ==================== */
.post-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
}

.post-content pre {
    background: #1d1d1f;
    color: #f5f5f7;
    padding: 1.5rem;
    border-radius: 16px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ==================== Info cards ==================== */
.post-content .info-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-content .info-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ==================== Dividers ==================== */
.post-content hr {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: 3rem 0;
    border: none;
}

/* ==================== Author ==================== */
.post-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-author-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-author-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== Poker suits ==================== */
.suit-hearts { color: #e53935; }
.suit-diamonds { color: #1e88e5; }
.suit-clubs { color: #43a047; }
.suit-spades { color: #1d1d1f; }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .post-content {
        font-size: 18px;
    }

    .post-container {
        padding: 0 1.5rem;
    }

    .post-content blockquote {
        padding: 1.5rem;
        margin: 2rem -0.5rem;
    }

    .post-author {
        flex-direction: column;
        text-align: center;
    }
}
