/* Detail post page styles */
.detail-hero {
    border-radius: 12px;
}

.detail-hero-media {
    position: relative;
    min-height: 340px;
}

.detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 64, 175, 0.55));
}

.detail-hero-content {
    position: absolute;
    inset: 0;
    padding: clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.25rem;
    color: #fff;
}

.detail-hero-badge {
    width: fit-content;
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

.detail-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    margin: 0;
}

.detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.detail-layout {
    margin-top: 0;
}

.detail-article {
    border-radius: 10px;
}

.detail-article-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-bs-theme=dark] .detail-article-header {
    border-bottom-color: rgba(148, 163, 184, 0.28);
}

.detail-article-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 8px;
    background-color: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #0f172a;
}

[data-bs-theme=dark] .detail-article-summary {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: rgba(96, 165, 250, 0.35);
    color: rgba(226, 232, 240, 0.92);
}

.detail-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--bs-body-color);
}

.detail-post-content h2,
.detail-post-content h3,
.detail-post-content h4,
.detail-post-content h5,
.detail-post-content h6 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--bs-heading-color);
}

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

.detail-post-content blockquote {
    border-left: 4px solid rgba(59, 130, 246, 0.6);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #1f2937;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 0 1rem 1rem 0;
}

[data-bs-theme=dark] .detail-post-content blockquote {
    border-left-color: rgba(147, 197, 253, 0.75);
    color: rgba(226, 232, 240, 0.92);
    background: rgba(15, 23, 42, 0.45);
}

.detail-post-content img {
    max-width: 100%;
    border-radius: 9px;
    margin: 1.5rem 0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

[data-bs-theme=dark] .detail-post-content img {
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.45);
}

.detail-tag-list {
    padding-top: 1.3rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

[data-bs-theme=dark] .detail-tag-list {
    border-top-color: rgba(148, 163, 184, 0.28);
}

.detail-tag-pill {
    background-color: rgba(15, 23, 42, 0.05);
    color: #1f2937;
    font-weight: 500;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

[data-bs-theme=dark] .detail-tag-pill {
    background-color: rgba(30, 41, 59, 0.5);
    color: rgba(226, 232, 240, 0.85);
    border: 1px solid rgba(59, 72, 99, 0.5);
}

.detail-tag-pill:hover {
    background-color: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
    color: #1d4ed8;
}

[data-bs-theme=dark] .detail-tag-pill:hover {
    background-color: rgba(96, 165, 250, 0.22);
    border-color: rgba(37, 99, 235, 0.55);
    color: #93c5fd;
}

.detail-share-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.detail-share-btn {
    border-radius: 999px;
    padding-inline: 1.2rem;
    font-weight: 600;
    color: #fff;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.15);
    color: #fff;
}

[data-bs-theme=dark] .detail-share-btn:hover {
    box-shadow: 0 18px 26px rgba(2, 6, 23, 0.6);
}

.detail-share-btn i {
    font-size: 1.1rem;
}

.detail-share-btn--whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.detail-share-btn--facebook {
    background: linear-gradient(135deg, #1877f2, #145dbf);
}

.detail-share-btn--twitter {
    background: linear-gradient(135deg, #1da1f2, #0c85d0);
}

.detail-share-btn--email {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.detail-comments {
    border-radius: 10px;
}

.detail-comment-alert {
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-comment-list {
    margin: 0;
    padding: 0;
}

.detail-comment-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--bs-paper-bg, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-bs-theme=dark] .detail-comment-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 72, 99, 0.4);
    backdrop-filter: blur(12px);
}

.detail-comment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(30, 64, 175, 0.38));
    color: #1d4ed8;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-bs-theme=dark] .detail-comment-avatar {
    color: #bfdbfe;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(10, 37, 64, 0.5));
}

.detail-comment-content {
    flex: 1;
}

.detail-comment-meta {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

[data-bs-theme=dark] .detail-comment-meta {
    color: rgba(148, 163, 184, 0.88);
}

.detail-comment-author {
    color: var(--bs-heading-color);
}

[data-bs-theme=dark] .detail-comment-author {
    color: rgba(226, 232, 240, 0.95);
}

.detail-comment-body {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--bs-body-color);
}

[data-bs-theme=dark] .detail-comment-body {
    color: rgba(226, 232, 240, 0.9);
}

.detail-comment-replies {
    margin-top: 1.25rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(37, 99, 235, 0.16);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[data-bs-theme=dark] .detail-comment-replies {
    border-left-color: rgba(96, 165, 250, 0.35);
}

.detail-comment-reply {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.06);
}

[data-bs-theme=dark] .detail-comment-reply {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.detail-comment-form .form-control {
    border-radius: 10px;
}

.detail-comment-form .btn {
    border-radius: 999px;
    padding-inline: 2rem;
}

.detail-related {
    border-radius: 10px;
}

.detail-related-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-radius: 8px;
    background-color: rgba(248, 250, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.05);
    padding: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme=dark] .detail-related-card {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 72, 99, 0.4);
    backdrop-filter: blur(12px);
}

.detail-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

[data-bs-theme=dark] .detail-related-card:hover {
    box-shadow: 0 20px 34px rgba(2, 6, 23, 0.55);
}

.detail-related-thumb {
    border-radius: 7px;
    overflow: hidden;
}

.detail-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-related-meta h6 a {
    color: #0f172a;
    text-decoration: none;
}

.detail-related-meta h6 a:hover {
    color: #1d4ed8;
}

[data-bs-theme=dark] .detail-related-meta h6 a {
    color: rgba(226, 232, 240, 0.92);
}

[data-bs-theme=dark] .detail-related-meta h6 a:hover {
    color: #7dd3fc;
}

.detail-sidebar .card {
    border-radius: 8px;
}

.detail-sidebar {
    position: static;
}

.detail-sidebar-list li+li {
    margin-top: 1rem;
}

.detail-sidebar-thumb {
    width: 72px;
    height: 72px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
}

.detail-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-category-list li+li {
    margin-top: 0.75rem;
}

.detail-category-list li i {
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .detail-hero-media {
        min-height: 320px;
    }

    .detail-hero-content {
        padding: 2rem;
    }

    .detail-hero-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .detail-hero-media {
        min-height: 280px;
    }

    .detail-hero-content {
        padding: 1.6rem;
    }

    .detail-hero-meta {
        gap: 0.65rem;
        font-size: 0.9rem;
    }

    .detail-article {
        border-radius: 8px;
    }

    .detail-related-card {
        border-radius: 7px;
    }

    .detail-comment-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-comment-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .detail-hero-title {
        font-size: 1.75rem;
    }

    .detail-hero-meta span {
        display: inline-flex;
        align-items: center;
    }

    .detail-share-btn {
        width: 100%;
        justify-content: center;
    }

    .detail-related .row>* {
        width: 100%;
    }

    .detail-sidebar-thumb {
        width: 64px;
        height: 64px;
    }

    .detail-comment-replies {
        padding-left: 1rem;
    }
}

@media (min-width: 1200px) {
    .detail-sidebar {
        position: sticky;
        top: 88px;
    }
}
