/* ============================
   POST DETAIL PAGE STYLES
   ============================ */

/* Hero with background image */
.post-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 80px 24px 48px;
    overflow: hidden;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 16, 0.3) 0%,
        rgba(5, 5, 16, 0.7) 50%,
        rgba(5, 5, 16, 1) 100%
    );
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    transition: color 0.2s;
}

.post-back:hover { color: #fff; }

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.post-meta-author { color: #a78bfa; font-weight: 600; }

.post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #f1f5f9;
}

/* Article Content */
.post-article {
    padding: 60px 24px 100px;
}

.post-inner {
    max-width: 800px;
    margin: 0 auto;
}

.post-text {
    font-size: 16px;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 48px;
}

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

.post-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 40px 0 16px;
}

.post-text a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Prompt Blocks — Image + Prompt pairs */
.prompt-block {
    margin-bottom: 48px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s;
}

.prompt-block:hover {
    border-color: rgba(139, 92, 246, 0.25);
}

.prompt-block-image {
    width: 100%;
    overflow: hidden;
}

.prompt-block-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.prompt-block-prompt {
    padding: 24px;
}

.prompt-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.prompt-block-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b5cf6;
}

.prompt-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.prompt-copy-btn:hover {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.prompt-block-text {
    font-size: 14px;
    line-height: 1.75;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Post CTA */
.post-cta {
    margin-top: 64px;
    padding: 48px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    text-align: center;
}

.post-cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f1f5f9;
}

.post-cta p {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 28px;
}

.post-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 404 */
.post-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    text-align: center;
}

.post-404 h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.post-404 p {
    color: #94a3b8;
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-hero { min-height: 320px; padding: 80px 16px 32px; }
    .post-article { padding: 40px 16px 80px; }
    .prompt-block-prompt { padding: 16px; }
    .prompt-block-text { padding: 14px; font-size: 13px; }
    .prompt-block-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .post-cta { padding: 32px 20px; }
    .post-cta-buttons { flex-direction: column; }
    .post-cta-buttons .cta-primary,
    .post-cta-buttons .cta-secondary { width: 100%; justify-content: center; }
}
