/* ===== STYLING UTAMA KOMENTAR ===== */
.comments-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comments-section h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* ===== NOTIFIKASI ===== */
.comment-notice {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}
    
.comment-error {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    color: #cc0000;
}
    
.comment-success {
    background: #e6ffe6;
    border: 1px solid #99ff99;
    color: #006600;
}

/* ===== FORM KOMENTAR ===== */
.custom-comment-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.custom-comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}
    
.custom-comment-form textarea:focus {
    border-color: #4a2e1f;
    outline: none;
}
    
.submit-comment-btn {
    background: linear-gradient(135deg, #4a2e1f, #6d4c3a);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
    
.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 46, 31, 0.2);
}

/* ===== TAMPILAN BELUM LOGIN ===== */
.comment-login-required {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comment-login-required a {
    color: #3498db;
    font-weight: 600;
}

/* ===== KOMENTAR ===== */
.custom-comment {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
    
.custom-comment:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}
    
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
    
.comment-author-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 12px;
}
    
.comment-author-info {
    flex: 1;
}
    
.comment-author-name {
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
    
.comment-author-title {
    font-size: 11px !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}
    
.comment-badge-count {
    font-size: 10px !important;
    padding: 1px 6px !important;
    border-radius: 8px !important;
}
    
.comment-date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 3px;
}
    
.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}
    
.comment-badge {
    animation: badge-pop 0.5s ease;
}
    
@keyframes badge-pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
    }
    
/* ===== BELUM ADA KOMENTAR ===== */
.no-comments {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .custom-comment {
        padding: 15px;
    }
    
    .comment-author-name {
        font-size: 14px;
    }
        
    .comment-author-title,
    .comment-badge-count {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }

    .comments-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .submit-comment-btn {
        width: 100%;
    }
}