/* Custom CSS for Postingan Detail Page */

/* Maroon Colors */
:root {
    --maroon-color: #8B2332;
    --maroon-hover: #6D1C28;
}

/* Background Maroon */
.bg-maroon {
    background-color: var(--maroon-color) !important;
    color: white !important;
}

/* Button Maroon */
.btn-maroon {
    color: #fff;
    background-color: var(--maroon-color);
    border-color: var(--maroon-color);
}

.btn-maroon:hover {
    color: #fff;
    background-color: var(--maroon-hover);
    border-color: var(--maroon-hover);
}

.btn-maroon:focus,
.btn-maroon.focus {
    color: #fff;
    background-color: var(--maroon-hover);
    border-color: var(--maroon-hover);
    box-shadow: 0 0 0 0.2rem rgba(139, 35, 50, 0.5);
}

.btn-maroon:active,
.btn-maroon.active {
    color: #fff;
    background-color: var(--maroon-hover);
    border-color: var(--maroon-hover);
}

/* Text Maroon */
.text-maroon {
    color: var(--maroon-color) !important;
}

/* Comment Section Styling */
.comments-list {
    margin-top: 20px;
}

.comment-item {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.comment-item:first-child {
    border-top: none !important;
    padding-top: 0;
}

.comment-item.bg-light {
    border-radius: 8px;
    padding: 15px !important;
    margin: 15px 0 !important;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-placeholder {
    font-size: 20px;
    flex-shrink: 0;
}

.comment-item h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-item p {
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
}

.comment-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    vertical-align: middle;
}

/* Social Share Buttons */
.social-share {
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.social-share h6 {
    margin-bottom: 15px;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Post Content Styling */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Badge Styling */
.badge.bg-maroon {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
    }
    
    .social-links .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .comment-item .d-flex {
        flex-direction: column;
    }
    
    .comment-item .flex-shrink-0 {
        margin-bottom: 15px;
    }
}

