/* assets/css/comments.css */

/* --- TETİKLEYİCİ BUTON --- */
.comment-trigger-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-trigger-box:hover {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.trigger-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trigger-icon {
    font-size: 24px;
    color: var(--primary-color);
    background: #eff6ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.trigger-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
}

.trigger-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.btn-trigger {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- YORUM ALANI --- */
.comment-area-wrapper {
    margin-top: 30px;
    animation: fadeIn 0.3s ease-out;
}

.loader-box {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Form */
.comment-form-wrapper {
    background: #fff;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 30px;
}

.comment-form-wrapper h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.comment-login-notice {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Liste */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f1f5f9;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-header .name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-heading);
}

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

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body);
}

/* Mobil Uyumluluk */
@media (max-width: 576px) {
    .trigger-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .trigger-action {
        width: 100%;
        text-align: center;
    }
    .btn-trigger {
        justify-content: center;
        background: #eff6ff;
        padding: 10px;
        border-radius: 6px;
    }
}

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