/* ===================================
   Single Post Detail Styles
   =================================== */

/* Post Hero Section */
.post-hero {
    width: 100%;
    background: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border);
    padding: 64px 0;
}

.post-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-left {
    flex: 1;
}

.hero-category {
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-primary);
}

.hero-tagline {
    font-size: 18px;
    color: var(--color-muted);
    margin: 0;
}

.hero-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.follow-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-muted);
}

.rss-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
    transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.rss-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Fixed Social Share Bar */
.social-share-bar {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(8, 39, 56, 0.85);
    backdrop-filter: blur(12px);
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    transition: background 140ms ease, color 140ms ease, transform 120ms ease;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Post Detail Container */
.post-detail {
    max-width: 880px;
    margin: 0 auto;
    padding: 60px 28px 80px;
}

/* Post Header */
.post-header {
    margin-bottom: 48px;
}

.post-breadcrumb {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--color-muted);
}

.post-breadcrumb a {
    color: var(--color-accent);
    transition: opacity 140ms ease;
}

.post-breadcrumb a:hover {
    opacity: 0.8;
}

.post-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 24px;
    color: var(--color-text);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-muted);
    margin-bottom: 32px;
}

.post-date {
    color: var(--color-text);
    font-weight: 500;
}

.meta-separator {
    opacity: 0.4;
}

/* Author Bio Card */
.author-bio-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    transition: color 140ms ease;
}

.author-name:hover {
    color: var(--color-accent);
}

.author-title {
    font-size: 15px;
    color: var(--color-muted);
    margin: 0;
}

/* Post Content */
.post-content {
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-text);
}

.post-content p {
    margin: 0 0 24px;
}

.post-content h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 48px 0 20px;
    color: var(--color-text);
}

.post-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin: 36px 0 16px;
    color: var(--color-text);
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity 140ms ease;
}

.post-content a:hover {
    opacity: 0.8;
}

.post-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--color-muted);
}

.post-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--color-accent);
}

.post-content pre {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 32px 0;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-text);
}

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

/* Post CTA Section */
.post-cta {
    margin: 64px 0;
    padding: 40px 36px;
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.cta-heading {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--color-text);
}

.cta-description {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-muted);
    margin: 0 0 20px;
}

.cta-link {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
}

.cta-link a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: opacity 140ms ease;
}

.cta-link a:hover {
    opacity: 0.8;
}

/* Author Bio Section (Repeated) */
.author-bio-section {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    margin: 48px 0;
}

/* Post Navigation */
.post-navigation {
    margin-top: 72px;
}

.post-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.post-nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.post-nav-prev,
.post-nav-next {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-nav-next .nav-label {
    flex-direction: row-reverse;
}

.nav-post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    transition: color 140ms ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-post-title:hover {
    color: var(--color-accent);
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-muted);
}

.post-nav-next .nav-meta {
    flex-direction: row-reverse;
}

/* Responsive Post Styles */
@media (max-width: 1200px) {
    .social-share-bar {
        left: 16px;
    }
}

@media (max-width: 960px) {
    .post-hero {
        padding: 48px 0;
    }

    .post-hero-content {
        padding: 0 20px;
    }

    .hero-category {
        font-size: 42px;
    }

    .post-detail {
        padding: 48px 20px 64px;
    }

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

    .post-content {
        font-size: 17px;
    }

    .post-content h2 {
        font-size: 28px;
    }

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

    .social-share-bar {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 32px auto;
        max-width: fit-content;
    }

    .post-nav-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .post-nav-next .nav-label {
        flex-direction: row;
    }

    .post-nav-next .nav-meta {
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .post-hero {
        padding: 36px 0;
    }

    .post-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0 16px;
    }

    .hero-category {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .post-detail {
        padding: 36px 16px 52px;
    }

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

    .post-content {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 24px;
        margin: 36px 0 16px;
    }

    .post-content h3 {
        font-size: 20px;
        margin: 28px 0 12px;
    }

    .author-bio-card,
    .author-bio-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .author-avatar img {
        width: 64px;
        height: 64px;
    }

    .post-cta {
        padding: 28px 24px;
    }

    .cta-heading {
        font-size: 24px;
    }

    .social-share-bar {
        padding: 12px 14px;
        gap: 10px;
    }

    .share-button {
        width: 40px;
        height: 40px;
    }

    .nav-post-title {
        font-size: 18px;
    }
}