/* =========================================================
   PP-BLOG.CSS - Premium Blog & Article Styles
   ========================================================= */

/* --- Single Post & Archive Wrapper --- */
.single-post .article-inner,
.blog .article-inner,
.archive .article-inner {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 3rem;
    border: 1px solid #f1f5f9;
}

/* Hover effect on archives */
.blog .post .article-inner:hover,
.archive .post .article-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

/* --- Entry Header --- */
.entry-header {
    padding: 2.5rem 2.5rem 0;
}

.single-post .entry-header {
    padding: 3.5rem 3.5rem 0;
}

.entry-header-text {
    margin-bottom: 2rem;
}

/* Category Pill */
.entry-category {
    margin-bottom: 1rem;
}

.entry-category a {
    display: inline-block;
    background: var(--color-primary, #059669);
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 99px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.entry-category a:hover {
    background: var(--color-primary-hover, #047857);
    color: white !important;
    transform: translateY(-1px);
}

/* Title */
.entry-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-dark, #0f172a);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.entry-title a {
    color: inherit;
    transition: color 0.2s;
}

.entry-title a:hover {
    color: var(--color-primary, #059669);
}

/* Divider */
.entry-divider.is-divider {
    height: 3px;
    width: 60px;
    background-color: var(--color-primary, #059669);
    margin: 1.5rem auto;
    border-radius: 3px;
}

/* Meta */
.entry-meta {
    color: #64748b;
    font-weight: 500;
}

.entry-meta a {
    color: #475569;
}

.entry-meta a:hover {
    color: var(--color-primary, #059669);
}

/* --- Entry Image --- */
.entry-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 2.5rem 2.5rem;
}

.single-post .entry-image {
    margin: 0 3.5rem 3.5rem;
}

.entry-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Date Badge */
.badge.post-date {
    background: #ffffff;
    color: var(--color-dark, #0f172a);
    border: 2px solid var(--color-primary, #059669);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -20px;
    right: -20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: absolute;
    z-index: 2;
}

.badge.post-date .badge-inner {
    line-height: 1;
    text-align: center;
}

.badge.post-date .post-date-day {
    font-size: 1.25rem;
    font-weight: 800;
}

.badge.post-date .post-date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary, #059669);
    letter-spacing: 0.05em;
}

/* --- Single Prose Content (Typograpy for Reading) --- */
.entry-content.single-page {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 3.5rem 3.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.entry-content.single-page p {
    margin-bottom: 1.75em;
}

/* Headings inside content */
.entry-content.single-page h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-dark, #0f172a);
    margin-top: 2.5em;
    margin-bottom: 1em;
    letter-spacing: -0.02em;
}

.entry-content.single-page h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark, #0f172a);
    margin-top: 2em;
    margin-bottom: 0.75em;
    letter-spacing: -0.01em;
}

/* Images inside content */
.entry-content.single-page figure.wp-block-image {
    margin: 2.5rem -2rem;
    /* Bleed effect: slightly wider than text */
}

.entry-content.single-page figure.wp-block-image img {
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.entry-content.single-page figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
    font-style: italic;
}

/* Blockquotes */
.entry-content.single-page blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--color-primary, #059669);
    padding: 1.75rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-weight: 500;
    color: #1e293b;
    font-size: 1.25rem;
    line-height: 1.6;
}

.entry-content.single-page blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content.single-page blockquote strong {
    color: var(--color-primary, #059669);
}

/* Lists */
.entry-content.single-page ul,
.entry-content.single-page ol {
    margin-bottom: 1.75em;
    padding-left: 1.5em;
}

.entry-content.single-page li {
    margin-bottom: 0.5em;
}

/* Tables in Prose */
.entry-content.single-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.entry-content.single-page th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.entry-content.single-page td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 1rem;
}

.entry-content.single-page tr:last-child td {
    border-bottom: none;
}

.entry-content.single-page tbody tr:hover {
    background: #fcfcfd;
}

/* --- Blog Sharer --- */
.blog-share {
    padding: 2.5rem 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 3rem;
}

.share-icons a.icon.button {
    border: 1px solid #e2e8f0;
    color: #475569;
    background: #ffffff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0 0.5rem;
    font-size: 1rem;
}

.share-icons a.icon.button:hover {
    background: var(--color-primary, #059669);
    color: #ffffff !important;
    border-color: var(--color-primary, #059669);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

/* --- Author Box --- */
.entry-author.author-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid #f1f5f9;
}

.blog-author-image img {
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: none;
    margin-bottom: 0.5rem;
}

.author-desc {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* --- Prev/Next Post Navigation --- */
.navigation-post {
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
    margin-top: 1rem;
}

.navigation-post a {
    color: #0f172a;
    font-weight: 700;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navigation-post a:hover {
    color: var(--color-primary, #059669);
}

/* --- General Widget Styling for Blog Sidebar --- */
.widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary, #059669);
    border-radius: 3px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8fafc;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.widget ul li a:hover {
    color: var(--color-primary, #059669);
    padding-left: 6px;
}

/* Responsive adjustments */
@media screen and (max-width: 849px) {

    .entry-header,
    .single-post .entry-header {
        padding: 1.5rem 1.5rem 0;
    }

    .entry-image,
    .single-post .entry-image {
        margin: 0 1.5rem 1.5rem;
    }

    .entry-content.single-page {
        padding: 0 1.5rem 2rem;
        font-size: 1.05rem;
    }

    .entry-content.single-page figure.wp-block-image {
        margin: 1.5rem 0;
    }

    .entry-author.author-box,
    .widget {
        padding: 1.5rem;
    }

    .entry-title {
        font-size: 1.875rem;
    }
}