/* Single Post Styles - Extracted from single.php */

/* ===================================================
   SINGLE BLOG POST — Self-contained styles
   =================================================== */

/* ── Hero header ── */
.bp-hero {
    background: linear-gradient(135deg, #1A1A2E 0%, #2A2A4E 55%, #1a3a7a 100%);
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}

.bp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.bp-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 40px;
    background: #FAFAFA;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.bp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* Category badge */
.bp-cat-badge {
    display: inline-block;
    background: #E30613;
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    text-decoration: none;
}

.bp-cat-badge:hover { background: #c00510; color: white; }

/* Post title */
.bp-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.4rem;
    color: white;
    margin: 0 0 18px;
    line-height: 1.2;
}

/* Meta row */
.bp-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.bp-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bp-meta-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.bp-meta-item a:hover { color: #FFD700; }
.bp-meta-sep { color: rgba(255,255,255,0.25); }

/* ── Body layout ── */
.bp-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: start;
}

/* ── Main article area ── */
.bp-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Featured image */
.bp-featured-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
}

.bp-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content card */
.bp-content-card {
    background: white;
    border-radius: 14px;
    padding: 36px 38px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #F0F0F0;
}

/* Prose styles */
.bp-content-card .entry-content h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: #1A1A2E;
    margin: 32px 0 14px;
    padding-top: 8px;
}

.bp-content-card .entry-content h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    color: #1A1A2E;
    margin: 24px 0 10px;
}

.bp-content-card .entry-content h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    color: #1A1A2E;
    margin: 20px 0 8px;
}

.bp-content-card .entry-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 18px;
}

.bp-content-card .entry-content a {
    color: #1A56DB;
    text-decoration: underline;
    text-decoration-color: rgba(26,86,219,0.3);
    text-underline-offset: 2px;
}

.bp-content-card .entry-content a:hover {
    color: #E30613;
    text-decoration-color: rgba(227,6,19,0.3);
}

.bp-content-card .entry-content ul,
.bp-content-card .entry-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
    color: #444;
}

.bp-content-card .entry-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.bp-content-card .entry-content strong { color: #1A1A2E; }

.bp-content-card .entry-content blockquote {
    border-left: 4px solid #E30613;
    padding: 16px 20px;
    margin: 24px 0;
    background: #FFF5F5;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.bp-content-card .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.bp-content-card .entry-content code {
    background: #F4F6FA;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    color: #E30613;
}

.bp-content-card .entry-content pre {
    background: #1A1A2E;
    color: #e8e8e8;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.bp-content-card .entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Tags */
.bp-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 2px solid #F4F4F4;
    margin-top: 10px;
}

.bp-tags-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bbb;
}

.bp-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #F4F6FA;
    border: 1px solid #E4E8F0;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    transition: all 0.15s;
}

.bp-tag:hover {
    background: #1A56DB;
    border-color: #1A56DB;
    color: white;
}

/* Share bar */
.bp-share {
    background: white;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bp-share-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-right: 4px;
}

.bp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s, transform 0.15s;
}

.bp-share-btn:hover { opacity: 0.9; transform: translateY(-1px); color: white; }
.bp-share-btn--x       { background: #000; }
.bp-share-btn--fb      { background: #1877F2; }
.bp-share-btn--copy    { background: #1A56DB; cursor: pointer; border: none; }

/* Author box */
.bp-author {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #F0F0F0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.bp-author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #F0F0F0;
}

.bp-author-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: #1A1A2E;
    margin: 0 0 4px;
}

.bp-author-bio {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.55;
    margin: 0;
}

/* Related posts */
.bp-related h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    color: #1A1A2E;
    margin: 0 0 18px;
}

/* ── Sidebar ── */
.bp-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bp-sidebar-card {
    background: white;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #F0F0F0;
}

.bp-sidebar-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: #1A1A2E;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F4F4F4;
}

/* TOC */
.bp-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-toc li {
    border-bottom: 1px solid #F4F4F4;
}

.bp-toc li:last-child { border-bottom: none; }

.bp-toc a {
    display: block;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}

.bp-toc a:hover { color: #1A56DB; }

/* CTA sidebar card */
.bp-cta-card {
    background: linear-gradient(135deg, #1A1A2E, #2A2A4E);
    border: none;
}

.bp-cta-card h3 { color: white; border-bottom-color: rgba(255,255,255,0.1); }
.bp-cta-card p  { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-bottom: 14px; }

.bp-cta-btn {
    display: block;
    text-align: center;
    padding: 11px;
    background: linear-gradient(135deg, #E30613, #c00510);
    color: white;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(227,6,19,0.3);
}

.bp-cta-btn:hover { opacity: 0.9; color: white; }

/* Post info card */
.bp-post-info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #F4F4F4;
    font-size: 0.85rem;
}

.bp-post-info-item:last-child { border-bottom: none; }
.bp-post-info-label { color: #bbb; font-weight: 700; min-width: 65px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.bp-post-info-value { color: #444; font-weight: 600; flex: 1; }
.bp-post-info-value a { color: #1A56DB; text-decoration: none; }
.bp-post-info-value a:hover { color: #E30613; }

/* Recent posts in sidebar */
.bp-recent-post {
    flex-direction: column;
    gap: 2px;
}

.bp-recent-post-title {
    font-weight: 700;
    color: var(--bws-dark, #1A1A2E);
    font-size: 0.88rem;
    text-decoration: none;
    line-height: 1.4;
}

.bp-recent-post-title:hover {
    color: var(--bws-red, #E30613);
}

.bp-recent-post-date {
    font-size: 0.75rem;
    color: var(--bws-text-light, #bbb);
}

/* Progress bar */
.bp-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #F0F0F0;
    z-index: 9999;
}

.bp-read-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #E30613, #FFD700);
    width: 0%;
    transition: width 0.1s linear;
}

/* Comments */
.bp-comments {
    background: white;
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #F0F0F0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .bp-body { grid-template-columns: 1fr; }
    .bp-sidebar { position: static; }
}

@media (max-width: 640px) {
    .bp-hero { padding: 36px 0 48px; }
    .bp-title { font-size: 1.8rem; }
    .bp-content-card { padding: 22px 18px; }
    .bp-body { padding: 20px 16px 40px; }
    .bp-author { flex-direction: column; }
}
