/* Blog Post Page */
.bp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    direction: rtl;
}

.bp-breadcrumb {
    font-size: 13px;
    color: var(--s-text-sub);
    padding: 28px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bp-breadcrumb a {
    color: var(--s-text-sub);
    text-decoration: none;
    transition: color 0.2s;
}
.bp-breadcrumb a:hover {
    color: var(--s-rose);
}
.bp-breadcrumb .sep {
    color: var(--s-text-muted);
    font-size: 11px;
}
.bp-breadcrumb .current {
    color: var(--s-text);
    font-weight: 700;
}

.bp-hero {
    position: relative;
    margin-top: 24px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--s-bg);
}
.bp-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.bp-hero:hover .bp-hero-img {
    transform: scale(1.04);
}
.bp-hero-fallback {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, var(--s-rose-light), var(--s-card-border));
}
.bp-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    pointer-events: none;
}
.bp-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 36px;
    z-index: 2;
}
.bp-hero-cats {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.bp-hero-cat {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}
.bp-hero-title {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.bp-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    flex-wrap: wrap;
}
.bp-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bp-hero-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.bp-body-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
}

.bp-cta-sticky {
    margin-bottom: 28px;
}

.bp-article {
    min-width: 0;
    background: var(--s-article-bg);
    border-radius: 24px;
    padding: 24px 20px;
}

.bp-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: var(--s-card);
    border: 1px solid var(--s-card-border);
    border-radius: 18px;
    margin-bottom: 36px;
    box-shadow: 0 2px 12px var(--s-card-shadow);
}
.bp-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--s-rose), #c77a6a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(232, 164, 144, 0.3);
}
.bp-author-info {
    flex: 1;
    min-width: 0;
}
.bp-author-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--s-text);
    margin-bottom: 2px;
}
.bp-author-label {
    font-size: 12px;
    color: var(--s-text-muted);
}
.bp-share-group {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.bp-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--s-card-border);
    background: transparent;
    color: var(--s-text-sub);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.bp-share-btn:hover {
    border-color: var(--s-rose);
    color: var(--s-rose);
    background: var(--s-rose-light);
}
.bp-share-btn svg {
    width: 16px;
    height: 16px;
}

.bp-prose {
    font-size: 17px;
    line-height: 1.85;
    color: var(--s-text);
    text-align: right;
}
.bp-prose h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--s-text);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--s-card-border);
}
.bp-prose h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--s-text);
    margin: 32px 0 12px;
}
.bp-prose p {
    margin-bottom: 12px;
}
.bp-prose img {
    border-radius: 16px;
    margin: 24px auto;
    max-width: 100%;
    display: block;
}
.bp-prose table {
    margin: 24px auto;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}
.bp-prose blockquote {
    border-right: 4px solid var(--s-rose);
    background: var(--s-rose-light);
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--s-text-sub);
}
.bp-prose ul, .bp-prose ol {
    padding-right: 24px;
    margin-bottom: 20px;
}
.bp-prose li {
    margin-bottom: 4px;
}
.bp-prose li p {
    margin-bottom: 0;
}
.bp-prose a {
    color: var(--s-rose);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}
.bp-prose a:hover {
    opacity: 0.7;
}

.bp-tags-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 28px 0;
    margin-top: 32px;
    border-top: 1px solid var(--s-card-border);
}
.bp-tags-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--s-text);
}
.bp-tag {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--s-card);
    border: 1px solid var(--s-card-border);
    color: var(--s-text-sub);
    text-decoration: none;
    transition: all 0.25s ease;
}
.bp-tag:hover {
    border-color: var(--s-rose);
    color: var(--s-rose);
    background: var(--s-rose-light);
}

.bp-related {
    margin-top: 56px;
}
.bp-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.bp-related-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--s-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bp-related-header h2::before {
    content: '';
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: var(--s-rose);
}
.bp-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.bp-related-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    background: var(--s-card);
    border: 1px solid var(--s-card-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 12px var(--s-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 90px;
}
.bp-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--s-card-shadow);
}
.bp-related-img {
    height: 100%;
    min-height: 90px;
    overflow: hidden;
    background: var(--s-bg);
}
.bp-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bp-related-card:hover .bp-related-img img {
    transform: scale(1.06);
}
.bp-related-img .placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--s-rose-light), var(--s-card-border));
}
.bp-related-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bp-related-cat {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    background: var(--s-rose-light);
    color: var(--s-rose);
    margin-bottom: 6px;
    align-self: flex-start;
}
.bp-related-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--s-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.bp-related-meta {
    font-size: 12px;
    color: var(--s-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    background: var(--s-card);
    border: 1.5px solid var(--s-card-border);
    color: var(--s-text);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 40px;
}
.bp-back-link:hover {
    border-color: var(--s-rose);
    color: var(--s-rose);
    background: var(--s-rose-light);
}
.bp-back-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}
.bp-back-link:hover svg {
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .bp-hero-img, .bp-hero-fallback {
        height: 520px;
    }
    .bp-hero-title {
        font-size: 40px;
    }
    .bp-hero-content {
        padding: 48px;
    }
    .bp-article {
        padding: 40px 36px;
    }
    .bp-related-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bp-related-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .bp-related-img {
        height: 160px;
        min-height: 0;
    }
    .bp-related-body {
        padding: 16px 18px 18px;
    }
    .bp-related-body h3 {
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    .bp-body-layout {
        grid-template-columns: 1fr 300px;
        gap: 48px;
    }
    .bp-body-layout aside {
        position: sticky;
        top: 24px;
        align-self: flex-start;
    }
    .bp-cta-sticky {
        margin-bottom: 28px;
    }
    .bp-hero-img, .bp-hero-fallback {
        height: 480px;
    }
}
