﻿/* Ana Container */
.comments-container {
  /*  max-width: 800px;
    margin: 20px auto;*/
    font-family: Arial, sans-serif;
}

/* Mesaj Paneli */
.message-panel {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
}
.message-panel.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.message-panel.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Yorum Formu */
.comment-form-wrapper {
    margin-bottom: 20px;
}
.btn-show-comment {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-show-comment:hover {
    background: #0056b3;
}
.btn-show-comment i {
    font-size: 16px;
}
.comment-form {
    /*background-color: #f9f9f9;*/
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-sizing: border-box;
}
.form-wrapper {
    width: 100%;
    box-sizing: border-box;
}
.form-group {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}
.form-control {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.form-control[textmode="MultiLine"] {
    min-height: 100px;
    resize: vertical;
}

/* Karakter Sayacı */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 5px;
}
.char-counter.limit-near {
    color: #ffa500;
}
.char-counter.limit-reached {
    color: #dc3545;
}

/* Butonlar */
.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}
.submit-btn:hover {
    background-color: #0056b3;
}
.btn-load-more {
    background: none;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-load-more:hover {
    background: #007bff;
    color: white;
}
.btn-load-more i {
    font-size: 16px;
}
.btn-load-more.loading {
    opacity: 0.7;
    cursor: wait;
}
.btn-load-more.loading i {
    animation: spin 1s linear infinite;
}

/* Yorum Listesi */
.comments-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.comments-header h3 {
    margin: 0;
}
.comments-list {
    margin-top: 30px;
}
.comment-card {
    background-color: #fbfbfb;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size:14px;
}
.comment-content {
    color: #444;
    line-height: 1.5;
    font-size: 15px;
    word-wrap: break-word;
}

/* Cevaplar Bölümü */
.replies-section {
    margin-top: 10px;
    margin-left: 20px;
}
.replies-container {
/*    border-left: 2px solid #e9ecef;
    padding-left: 15px;*/
    margin-top: 10px;
}
.replies-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #444;
    cursor: pointer;
    padding: 5px 10px;
    margin-top: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    background-color: #eee;
}
 

/* Aksiyon Butonları */
.btn-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.btn-action:hover {
    background: #e9ecef;
    color: #007bff;
}
.btn-action.active {
    color: #007bff;
}

/* Animasyonlar */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #007bff; }
    100% { transform: scale(1); }
}

/* Yardımcı Sınıflar */
.error-message {
    color: #dc3545;
    display: block;
    font-size: 12px;
    margin-top: 5px;
}
.comments-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}
.load-more-section {
    text-align: center;
    margin: 20px 0;
}



 
/* Aksiyon Butonları */
.btn-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: inline-flex; /* inline-flex kullanıyoruz */
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap; /* Buton içeriğinin alt alta geçmesini engeller */
    min-width: auto; /* Minimum genişliği kaldır */
    flex-shrink: 0; /* Butonların küçülmesini engeller */
}

    .btn-action:hover {
        background: #e9ecef;
        color: #007bff;
    }

    .btn-action.active {
        color: #007bff;
    }

    .btn-action i {
        font-size: 14px;
        margin-right: 4px;
    }

/* Mobil uyumluluk için medya sorgusu */
@media (max-width: 576px) {
    .comment-actions {
        flex-wrap: wrap; /* Mobilde alt alta geçebilir */
        gap: 10px;
    }

    .btn-action {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* Cevap Butonu Stilleri */
.btn-submit-reply {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .btn-submit-reply:hover {
        background: #0056b3;
    }

    .btn-submit-reply:disabled {
        background: #ccc;
        cursor: not-allowed;
        opacity: 0.7;
    }

    .btn-submit-reply i {
        font-size: 14px;
    }

/* Cevap Form Alanı */
.reply-form-container {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 5px;
    resize: vertical;
    font-size: 14px;
}

    .reply-textarea:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    }

/* Mobil uyumluluk */
@media (max-width: 576px) {
    .btn-submit-reply {
        width: 100%; /* Mobilde tam genişlik */
        justify-content: center;
    }
}


/* Yorum Aksiyonları */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    /*border-top: 1px solid #eee;*/
    flex-wrap: nowrap; /* Butonların alt alta geçmesini engeller */
}

/* Aksiyon Butonları */
.btn-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: inline-flex; /* inline-flex kullanıyoruz */
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap; /* Buton içeriğinin alt alta geçmesini engeller */
    min-width: auto; /* Minimum genişliği kaldır */
    flex-shrink: 0; /* Butonların küçülmesini engeller */
}

    .btn-action:hover {
        background: #e9ecef;
        color: #007bff;
    }

    .btn-action.active {
        color: #007bff;
    }

    .btn-action i {
        font-size: 14px;
        margin-right: 4px;
    }

/* Mobil uyumluluk için medya sorgusu */
@media (max-width: 576px) {
    .comment-actions {
        flex-wrap: wrap; /* Mobilde alt alta geçebilir */
        gap: 10px;
    }

    .btn-action {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* Cevap Stilleri */
.comment-reply {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}



 

.reply-content {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    margin: 8px 0;
    word-wrap: break-word;
}

.reply-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    padding-top: 8px;
   /* border-top: 1px solid #eee;*/
}

/* Mobil uyumluluk */
@media (max-width: 576px) {
    .comment-reply {
        margin: 8px 0;
        padding: 12px;
    }

    .reply-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .reply-date {
        font-size: 11px;
    }
}

 




.no-comments-title {
    transition: all 0.3s ease;
}

.first-comment-text {
    text-align: center;
    color: #007bff;
    cursor: pointer;
    padding: 20px;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .first-comment-text:hover {
        background: #e9ecef;
    }

    .first-comment-text i {
        font-size: 18px;
    }





/* Form Submit Alanı */
.form-submit-area {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Sağa hizalama */
    gap: 20px; /* Elemanlar arası boşluk */
    margin-top: 15px;
    flex-wrap: nowrap; /* Elementlerin alt alta geçmesini engelle */
}

.form-check {
    margin: 0; /* Varsayılan margin'i sıfırla */
    flex: 1; /* Checkbox alanının genişlemesine izin ver */
    min-width: 0; /* Flex-basis için minimum genişlik */
}

.form-check-input {
    margin: 0; /* Checkbox margin'ini sıfırla */
    flex-shrink: 0; /* Checkbox'ın küçülmesini engelle */
}

.form-check-label {
    margin: 0 0 0 5px; /* Label margin'ini ayarla */
    font-size: 14px;
    white-space: normal; /* Metin uzunsa alt satıra geçebilir */
    display: inline-block; /* Label'ı blok element yap */
}

    .form-check-label a {
        color: #444 !important;
        text-decoration: none;
    }

        .form-check-label a:hover {
            text-decoration: underline;
        }

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Buton metninin alt alta geçmesini engelle */
    flex-shrink: 0; /* Butonun küçülmesini engelle */
}

    .submit-btn:hover {
        background-color: #0056b3;
    }

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .form-submit-area {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .form-check {
        order: 1; /* Mobilde checkbox'ı üste al */
    }

    .submit-btn {
        order: 2; /* Mobilde butonu alta al */
        width: 100%; /* Tam genişlik */
    }
}


.toast-top-center {
    top: 20px;
}

.reply-form {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.reply-form .form-group {
margin-bottom: 10px;
}

.reply-form .form-control {
border: 1px solid #ced4da;
}

.reply-form .form-control:focus {
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.reply-form .btn {
margin-right: 10px;
}

.reply-form textarea {
min-height: 100px;
resize: vertical;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

    .char-counter.text-warning {
        color: #ffa500;
        background-color: rgba(255, 165, 0, 0.1);
    }

    .char-counter.text-danger {
        color: #dc3545;
        background-color: rgba(220, 53, 69, 0.1);
        font-weight: bold;
    }

.comments-disabled {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #6c757d;
    margin: 10px 0;
}

.commenter-name, .replier-name {
    font-weight: bold;
    font-size: 16px;
    color: #444;
}

.comment-date, .reply-date {
    color: #ccc;
    font-size:13px;
}

 