/* ==========================================================================
   SINGLE POST — page-single.css
   Template: single.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   Post Hero (Thumbnail)
   -------------------------------------------------------------------------- */

.post-hero {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   Post Meta (Category badge, date, reading time, author)
   -------------------------------------------------------------------------- */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    font-size: 14px;
    color: #6c757d;
}

.post-meta i {
    color: var(--primary-color);
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Post Header (Title + Excerpt)
   -------------------------------------------------------------------------- */

.post-header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary, #1a1a2e);
}

.post-header .lead {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Post Content (WordPress the_content())
   -------------------------------------------------------------------------- */

.post-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-primary, #333);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

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

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content pre,
.post-content code {
    background: #f4f4f4;
    border-radius: 4px;
    font-size: 0.9rem;
}

.post-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.post-content code {
    padding: 0.15rem 0.4rem;
}

/* --------------------------------------------------------------------------
   Page Links (wp_link_pages — multi-page posts)
   -------------------------------------------------------------------------- */

.page-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.page-links p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #6c757d;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-number:hover,
a.page-number:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Post Tags
   -------------------------------------------------------------------------- */

.post-tags {
    font-size: 14px;
    color: #6c757d;
}

.post-tags a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Social Share Section
   -------------------------------------------------------------------------- */

.social-share-section h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

/* --------------------------------------------------------------------------
   Related Posts
   -------------------------------------------------------------------------- */

.related-posts h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .post-hero {
        max-height: 280px;
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .post-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .post-hero {
        max-height: 220px;
    }

    .post-meta {
        font-size: 0.8rem;
    }
}
