/* =========================================
   YORUM BÖLÜMÜ (MODERN & CLEAN)
   ========================================= */

.comments-section-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.section-header-sm {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header-sm h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.comment-count-badge {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    background: var(--bg-body);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* --- YORUM YAPMA FORMU --- */
.comment-form-container {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.user-avatar-sm {
    flex-shrink: 0;
}

.user-avatar-sm img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-body {
    flex: 1;
}

.form-control {
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    color: var(--text-main);
    width: 100%;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* Giriş Yap Uyarısı */
.login-to-comment {
    background-color: var(--bg-body);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px dashed var(--border-color);
    margin-bottom: 40px;
    color: var(--text-muted);
}

.login-to-comment p {
    font-size: 1rem;
    margin: 0;
}

.login-to-comment a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.login-to-comment a:hover {
    text-decoration: underline;
}

/* --- YORUM LİSTESİ --- */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comment-item {
    display: flex;
    gap: 20px;
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.comment-content {
    flex: 1;
}

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

.author-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.badge-owner {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    top: 1px;
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    word-break: break-word;
    opacity: 0.9;
}

/* --- AKSİYONLAR --- */
.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.btn-delete-comment {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-delete-comment:hover {
    color: #e63946;
}

/* --- BOŞ DURUM --- */
.no-comments-state {
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

.no-comments-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
    display: block;
}

.no-comments-state p {
    font-size: 1rem;
}

/* --- GENEL BUTON DÜZENLEMESİ --- */
.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .comments-section-wrapper {
        margin-top: 40px;
    }

    .comment-form-container {
        gap: 15px;
    }
    
    .user-avatar-sm img {
        width: 40px;
        height: 40px;
    }
    
    .comment-item {
        gap: 15px;
    }
    
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
}