/* ===== POST DETAIL PAGE ===== */
.post-detail-section {
    margin: 20px auto 40px;
    max-width: 1200px;
}

.post-detail-container {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 25px;
    margin-top: 20px;
}

/* Post Header */
.post-header {
    margin-bottom: 25px;
}

.post-category {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-light);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-title {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.post-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-gray);
    margin-bottom: 15px;
    font-weight: 400;
}

.post-subtitle-bottom {
    font-size: 16px;
    color: var(--color-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

/* Post Meta */
.post-meta {
    position: sticky;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(6px);
    width: 100%;
    box-sizing: border-box;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
}

.post-date {
    font-size: 12px;
    color: var(--color-gray);
}

.social-sharing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: 13px;
    color: var(--color-gray);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    font-size: 14px;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-facebook { background: #4267B2; }
.share-twitter { background: #14171A; }
.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-linkedin { background: #0077b5; }

/* Post Media */
/* ===== POST MEDIA ===== */
.post-media {
    margin-bottom: 25px;
    width: 100%;
}

/* Container untuk media dan credit */
.media-container {
    position: relative; /* PENTING: parent untuk absolute positioning */
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block; /* Menghilangkan gap bawah */
}

.post-video {
    width: 100%;
    display: block;
    background: #000; /* Background hitam untuk video */
}

/* Style untuk media credit */
.media-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 10;
    backdrop-filter: blur(2px);
    letter-spacing: 0.3px;
    font-weight: 400;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover effect untuk credit */
.media-credit:hover {
    white-space: normal;
    word-break: break-word;
    max-width: 95%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 15;
}

/* Style untuk caption */
.media-caption {
    font-size: 13px;
    color: var(--color-gray);
    margin-top: 8px;
    padding: 0 5px;
    font-style: italic;
    line-height: 1.5;
}

/* Post Content */
.post-content-wrapper {
    margin-bottom: 30px;
}

.post-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
}

.post-content p {
    margin-bottom: 0em;
}

.post-content h2 {
    font-size: 24px;
    margin: 1.5em 0 0.8em;
    color: var(--color-dark);
    font-weight: 500;
}

.post-content h3 {
    font-size: 20px;
    margin: 1.5em 0 0.8em;
    color: var(--color-dark);
    font-weight: 500;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 15px 20px;
    margin: 1.5em 0;
    background: var(--color-bg-light);
    font-style: italic;
    color: var(--color-gray);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5em auto;
    display: block;
}

/* Editor Info */
.editor-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--color-light-gray);
    border-radius: var(--border-radius);
    margin: 25px 0;
}

.editor-label {
    font-size: 13px;
    color: var(--color-gray);
}

.editor-name {
    font-weight: 500;
    color: var(--color-dark);
}

/* Tags Section */
.tags-section {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.tags-label i {
    color: var(--color-primary);
}

.tags-label span {
    font-weight: 500;
    color: var(--color-dark);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
   
    color: var(--color-dark);
    padding: 6px 12px;
    
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.tag-item:hover {
    background: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

/* Post Navigation */
.post-navigation {
    margin: 30px 0;
    padding: 20px;
    background: var(--color-light-gray);
    border-radius: var(--border-radius);
}

.post-navigation .section-title {
    margin-bottom: 15px;
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.nav-item {
    background: var(--color-light);
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.nav-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-dark);
}

.nav-item:hover .nav-title {
    color: var(--color-primary);
}

.nav-prev .nav-label i {
    order: -1;
}

.nav-next {
    text-align: right;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

/* Related Posts */
.related-posts {
    margin: 40px 0 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.related-item {
    background: var(--color-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

.related-category {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-dark);
    transition: var(--transition);
}

.related-item:hover .related-title {
    color: var(--color-primary);
}

/* ===== VOX POPULI SPECIAL LAYOUT ===== */
.vox-populi-layout {
    margin: 25px 0;
    position: relative;
}

.vox-avatar-container {
    float: left;
    width: 180px;
    margin: 0 20px 15px 0;
    text-align: center;
}

.vox-avatar {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
}

.vox-avatar-caption {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    color: var(--color-dark);
    font-size: 14px;
}

.vox-content-wrapper {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.5;
}

.vox-content-wrapper p:first-of-type::first-letter {
    font-size: 4em;
    float: left;
    line-height: 0.85;
    margin: 0.1em 0.15em 0 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    margin: 40px 0;
    padding: 25px;
    background: var(--color-light-gray);
    border-radius: var(--border-radius);
}

.comments-section .section-title {
    margin-bottom: 20px;
}

.comment-form-container {
    background: var(--color-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
}

.guest-prompt {
    text-align: center;
    padding: 20px;
    background: var(--color-primary);
    color: var(--color-light);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.guest-prompt h4 {
    margin-bottom: 10px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.auth-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.auth-btn.login {
    background: var(--color-light);
    color: var(--color-primary);
}

.auth-btn.register {
    background: transparent;
    border: 2px solid var(--color-light);
    color: var(--color-light);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 12px;
    color: var(--color-gray);
}

.submit-btn {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 10px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover:not(:disabled) {
    background: var(--color-blue-dark);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: var(--color-light);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author {
    flex: 1;
}

.comment-author-name {
    font-weight: 500;
    color: var(--color-dark);
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--color-gray);
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.comment-action-btn:hover {
    color: var(--color-blue-dark);
}

.comment-replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
}

.view-all-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 20px;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--color-primary);
    color: var(--color-light);
}

/* Toast Notification */
.toast-notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Comment Edit Form */
.edit-comment-form {
    margin-top: 10px;
}

/* Reply Info */
.reply-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Comment Actions Dropdown */
.comment-actions .dropdown-toggle::after {
    display: none;
}

.comment-actions .btn-link {
    text-decoration: none;
    color: #6c757d;
}

.comment-actions .btn-link:hover {
    color: #0d6efd;
}

/* ===== SIDEBAR POST DETAIL ===== */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.post-sidebar .widget {
    margin-bottom: 25px;
}

/* ===== RESPONSIVE STYLES ===== */

/* Desktop Large (min-width: 1200px) */
@media (min-width: 1200px) {
    .post-detail-section {
        max-width: 1200px;
    }
    
    .post-title {
        font-size: 30px;
    }
}

/* Tablet Landscape (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .post-detail-container {
        grid-template-columns: 65% 33%;
        gap: 20px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .post-detail-container {
        grid-template-columns: 60% 38%;
        gap: 20px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .post-detail-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .post-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }
    
    .post-sidebar .widget {
        margin-bottom: 0;
    }
    
    .post-title {
        font-size: 26px;
    }
    
    .post-subtitle {
        font-size: 17px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .vox-avatar-container {
        width: 160px;
        margin-right: 15px;
    }
    
    .vox-avatar {
        width: 160px;
        height: 160px;
    }
    
    .comments-section {
        padding: 20px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .post-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-sidebar {
        position: static;
        margin-top: 30px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .post-header {
        padding: 0 10px;
    }
    
    .post-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .post-subtitle {
        font-size: 16px;
    }
    
    /* Post Meta untuk Mobile */
    .post-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 10px 15px;
        gap: 10px;
        width: 100%;
    }
    
    .author-info {
        display: flex;
        align-items: center;
        flex-shrink: 1;
        gap: 8px;
        min-width: 0;
        max-width: 50%;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
        border: 1px solid var(--color-border);
    }
    
    .author-details {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
        min-width: 0;
    }
    
    .author-name {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .post-date {
        display: none;
    }
    
    .social-sharing {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 8px;
        white-space: nowrap;
    }
    
    .share-label {
        font-size: 12px;
        display: inline;
    }
    
    .share-buttons {
        display: flex;
        gap: 6px;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .post-image {
        height: 250px;
    }
    
    .post-content {
        font-size: 16px;
        line-height: 1.7;
        padding: 0 10px;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .related-item {
        display: flex;
    }
    
    .related-item img {
        width: 120px;
        height: 100px;
        flex-shrink: 0;
    }
    
    .related-content {
        padding: 10px;
        flex: 1;
    }
    
    .related-title {
        font-size: 13px;
    }
    
    /* Vox Populi Mobile */
    .vox-avatar-container {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .vox-avatar {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .vox-content-wrapper p:first-of-type::first-letter {
        font-size: 3em;
    }
    
    /* Comments Mobile */
    .comments-section {
        padding: 15px;
        margin: 30px 0;
    }
    
    .comment-form-container {
        padding: 15px;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-replies {
        padding-left: 15px;
    }
}

/* Mobile Landscape (667px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .post-title {
        font-size: 24px;
    }
    
    .post-image {
        height: 300px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vox-avatar-container {
        float: none;
        width: 140px;
        margin: 0 auto 20px;
    }
    
    .vox-avatar {
        width: 140px;
        height: 140px;
    }
    
    .vox-content-wrapper p:first-of-type::first-letter {
        font-size: 3em;
    }
}

/* Mobile Portrait (576px - 666px) */
@media (max-width: 666px) and (min-width: 480px) {
    .post-title {
        font-size: 22px;
    }
    
    .post-image {
        height: 250px;
    }
    
    .post-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .share-buttons {
        gap: 6px;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .vox-avatar {
        width: 120px;
        height: 120px;
    }
    
    .comments-section {
        padding: 15px;
    }
    
    .comment-form-container {
        padding: 15px;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .post-title {
        font-size: 20px;
    }
    
    .post-subtitle {
        font-size: 15px;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-category {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .related-item {
        flex-direction: column;
    }
    
    .related-item img {
        width: 100%;
        height: 150px;
    }
    
    .comment-item {
        padding: 15px;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
    }
    
    .comment-author-name {
        font-size: 13px;
    }
    
    .comment-content {
        font-size: 13px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .post-title {
        font-size: 18px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .post-content {
        font-size: 14px;
    }
    
    .author-name {
        font-size: 12px;
    }
    
    .share-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .tag-item {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Print Styles */
@media print {
    .header,
    .main-nav,
    .portal-nav,
    .sticky-header,
    .sidebar,
    .footer,
    .social-sharing,
    .comments-section,
    .post-sidebar,
    .ad-space-wrap {
        display: none !important;
    }
    
    .post-detail-container {
        grid-template-columns: 1fr;
        margin: 0;
    }
    
    .post-content {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .post-title {
        color: #000;
    }
    
    .post-content {
        color: #000;
    }
    
    .post-category {
        background: #000;
        color: #fff;
    }
    
    .tag-item {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .post-header,
    .post-content,
    .related-item,
    .nav-item,
    .share-btn,
    .tag-item,
    .auth-btn,
    .submit-btn,
    .comment-action-btn,
    .view-all-btn {
        transition: none !important;
        animation: none !important;
    }
    
    .share-btn:hover,
    .tag-item:hover,
    .nav-item:hover,
    .related-item:hover,
    .auth-btn:hover,
    .submit-btn:hover:not(:disabled),
    .comment-action-btn:hover,
    .view-all-btn:hover {
        transform: none !important;
    }
}

/* page content */
.post-content-pagination {
    margin: 30px 0;
}

.post-page {
    display: none;
}

.post-page.active-page {
    display: block;
}

.pagination-controls {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background: var(--color-light);
    color: var(--color-dark);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-light-gray);
    border-color: var(--color-secondary);
}

.pagination-btn.active {
    background: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
    box-shadow: var(--box-shadow);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: var(--color-gray);
}

.page-indicator {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--color-primary-dark);
}


/* Sembunyikan tombol prev/next */
.page-indicator#page-info,
.pagination-btn#prev-page,
.pagination-btn#next-page {
    display: none;
}

/* ===== COMMENT BUTTONS STYLES (TANPA DROPDOWN) ===== */
/* Tambahan CSS untuk button komentar - LANGSUNG TAMPIL */

/* Comment Actions - Container untuk button Edit & Hapus */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

/* Comment Action Buttons (Edit & Hapus) */
.comment-action-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #999;
    font-size: 14px;
}

.comment-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.comment-action-btn.edit-comment-btn:hover {
    color: var(--color-primary, #d80808);
    background-color: rgba(216, 8, 8, 0.1);
}

.comment-action-btn.delete-comment-btn:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.comment-action-btn:focus-visible {
    outline: 2px solid var(--color-primary, #d80808);
    outline-offset: 2px;
}

/* Reply Comment Button */
.reply-comment-btn {
    color: var(--color-primary, #d80808);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
}

.reply-comment-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.reply-comment-btn:hover {
    color: var(--color-primary-dark, #b00606);
    background-color: rgba(216, 8, 8, 0.1);
    border-color: rgba(216, 8, 8, 0.2);
}

.reply-comment-btn:hover i {
    transform: translateX(-3px);
}

.reply-comment-btn:active {
    transform: translateY(1px);
}

.reply-comment-btn:focus-visible {
    outline: 2px solid var(--color-primary, #d80808);
    outline-offset: 2px;
}

/* Loading state untuk reply button */
.reply-comment-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.reply-comment-btn.loading i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Comment Footer */
.comment-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* ===== EDIT FORM BUTTONS ===== */
.edit-comment-form {
    margin-top: 15px;
    padding: 15px;
    background: var(--color-light-gray, #f5f5f5);
    border-radius: var(--border-radius, 8px);
    border-left: 3px solid var(--color-primary, #d80808);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    font-family: inherit;
    resize: vertical;
}

.edit-comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary, #d80808);
    box-shadow: 0 0 0 3px rgba(216, 8, 8, 0.1);
}

.edit-comment-form .btn-primary {
    background: var(--color-primary, #d80808);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
    font-family: inherit;
}

.edit-comment-form .btn-primary:hover {
    background: var(--color-primary-dark, #b00606);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(216, 8, 8, 0.2);
}

.edit-comment-form .btn-primary:active {
    transform: translateY(0);
}

.edit-comment-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.edit-comment-form .btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--color-border, #e0e0e0);
    color: var(--color-gray, #777);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
    font-family: inherit;
}

.edit-comment-form .btn-outline-secondary:hover {
    background: var(--color-light-gray, #f5f5f5);
    border-color: #999;
    color: var(--color-dark, #333);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.edit-comment-form .btn-outline-secondary:active {
    transform: translateY(0);
}

.edit-comment-form .d-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===== CANCEL REPLY BUTTON ===== */
.cancel-reply-btn {
    background: transparent;
    border: 1px solid var(--color-border, #e0e0e0);
    color: var(--color-gray, #777);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.cancel-reply-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.cancel-reply-btn:active {
    transform: translateY(0);
}

.cancel-reply-btn:focus-visible {
    outline: 2px solid var(--color-primary, #d80808);
    outline-offset: 2px;
}

/* ===== BADGE STYLES ===== */
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.4;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== REPLY INFO ===== */
.reply-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(216, 8, 8, 0.05);
    border-left: 3px solid var(--color-primary, #d80808);
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.reply-info strong {
    color: var(--color-primary, #d80808);
    font-weight: 600;
}

/* ===== RESPONSIVE BUTTONS ===== */
@media (max-width: 768px) {
    /* Comment Actions mobile */
    .comment-actions {
        gap: 3px;
    }

    .comment-action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Reply button mobile */
    .reply-comment-btn {
        padding: 6px 12px;
        font-size: 11px;
        background-color: rgba(216, 8, 8, 0.05);
        border-radius: 20px;
    }

    .reply-comment-btn i {
        font-size: 10px;
    }

    .reply-comment-btn:hover i {
        transform: translateX(-3px);
    }

    /* Edit form buttons mobile */
    .edit-comment-form .d-flex {
        flex-direction: column;
        gap: 8px;
    }

    .edit-comment-form .btn-primary,
    .edit-comment-form .btn-outline-secondary {
        width: 100%;
        padding: 10px;
    }

    /* Cancel reply button mobile */
    .cancel-reply-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 8px;
    }

    /* Reply info mobile */
    .reply-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .comment-header {
        flex-wrap: wrap;
    }

    .comment-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 5px;
    }

    .reply-comment-btn {
        padding: 5px 10px;
        font-size: 10px;
    }

    .badge.bg-warning {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        width: fit-content;
        font-size: 9px;
    }
}

strong img {
    display: none !important;
}


.video-thumbnail {
    position: relative;
    display: block;
}

.video-thumbnail img {
    width: 100%;
    border-radius: 8px;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 14px;
    text-align: center;
    border-radius: 0 0 8px 8px;
}