/* 
 * Yorum Sistemi CSS
 * TRManga Yorum Sistemi Stilleri
 */

.comments-section {
    margin-top: 30px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e4e6ef;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #181c32;
}

.comments-count {
    background: #f3f6f9;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #7e8299;
}

/* Yorum Formu */
.comment-form-wrapper {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-form-login-notice {
    background: #fff4de;
    border-left: 4px solid #ffa800;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.comment-form-login-notice p {
    margin: 0 0 10px 0;
    color: #7e8299;
}

.comment-form-login-notice a {
    font-weight: 600;
    margin-right: 15px;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-textarea:focus {
    outline: none;
    border-color: #3699ff;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.1);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.comment-char-count {
    color: #7e8299;
    font-size: 13px;
}

.comment-submit-btn {
    background: #3699ff;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-submit-btn:hover {
    background: #187de4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(54, 153, 255, 0.3);
}

.comment-submit-btn:disabled {
    background: #e4e6ef;
    color: #b5b5c3;
    cursor: not-allowed;
    transform: none;
}

/* End of existing styles */

/* ========================================
   LIKE SYSTEM STYLES
   ======================================== */

/* User comment count badge */
.user-comment-count {
    font-size: 12px;
    color: #7e8299;
    font-weight: normal;
    margin-left: 4px;
}

/* Like button */
.comment-like-btn {
    background: transparent;
    border: 1px solid #e4e6ef;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #7e8299;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.comment-like-btn:hover {
    background: #f9f9f9;
    border-color: #d1d3e2;
}

.comment-like-btn i {
    font-size: 14px;
    transition: all 0.2s;
}

.comment-like-btn .like-count {
    font-weight: 500;
}

/* Liked state */
.comment-like-btn.liked {
    color: #f64e60;
    border-color: #f64e60;
    background: rgba(246, 78, 96, 0.1);
}

.comment-like-btn.liked:hover {
    background: rgba(246, 78, 96, 0.15);
}

.comment-like-btn.liked i {
    color: #f64e60;
    animation: likeAnimation 0.3s ease;
}

/* Like animation */
@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Disabled state */
.comment-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reply actions spacing */
.comment-reply .comment-actions {
    margin-top: 8px;
}

/* Yorum Listesi */
.comments-list {
    margin-top: 20px;
}

.comment-item {
    background: white;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.comment-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: #e4e6ef;
}

.comment-user-info {
    flex: 1;
}

.comment-username {
    font-weight: 600;
    color: #181c32;
    text-decoration: none;
    font-size: 14px;
}

.comment-username:hover {
    color: #3699ff;
}

.comment-time {
    color: #7e8299;
    font-size: 12px;
    margin-top: 2px;
}

/* Pending Status Badge */
.comment-pending-badge {
    background: #fff4de;
    color: #856404;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    border-left: 3px solid #ffc107;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.comment-pending-badge i {
    color: #ffc107;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.comment-item.comment-pending {
    border-left: 3px solid #ffc107;
    background: #fffbf0;
}

/* Yorum Silme Butonu */
.comment-delete-btn {
    background: transparent;
    border: none;
    color: #f64e60;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: auto;
}

.comment-delete-btn:hover {
    background: #ffe2e5;
    color: #f1416c;
}

.comment-delete-btn i {
    pointer-events: none;
}

.comment-content {
    color: #3f4254;
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    white-space: pre-wrap;
    /* Satır sonlarını koru */
}

.comment-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

.comment-content a {
    color: #3699ff;
    text-decoration: none;
}

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

/* Reply Feature */
.comment-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f6f9;
}

.comment-reply-btn {
    background: transparent;
    border: 1px solid #e4e6ef;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #3699ff;
    transition: all 0.2s;
}

.comment-reply-btn:hover {
    background: #3699ff;
    color: white;
    border-color: #3699ff;
}

.comment-reply-btn i {
    margin-right: 4px;
}

.comment-reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #3699ff;
}

.reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.reply-textarea:focus {
    outline: none;
    border-color: #3699ff;
    box-shadow: 0 0 0 3px rgba(54, 153, 255, 0.1);
}

.reply-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.reply-char-count {
    color: #7e8299;
    font-size: 12px;
}

.reply-form-buttons {
    display: flex;
    gap: 8px;
}

.reply-cancel-btn,
.reply-submit-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.reply-cancel-btn {
    background: #e4e6ef;
    color: #7e8299;
}

.reply-cancel-btn:hover {
    background: #d1d3e2;
}

.reply-submit-btn {
    background: #3699ff;
    color: white;
}

.reply-submit-btn:hover {
    background: #187de4;
}

.comment-replies {
    margin-top: 15px;
}

.comment-reply {
    margin-left: 40px;
    margin-top: 12px;
    border-left: 2px solid #e4e6ef;
    padding-left: 15px;
    position: relative;
}

.comment-reply::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 20px;
    background: #3699ff;
}

/* Sayfalama */
.comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e4e6ef;
    background: white;
    color: #7e8299;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #3699ff;
    color: white;
    border-color: #3699ff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #3699ff;
    color: white;
    border-color: #3699ff;
}

.pagination-info {
    color: #7e8299;
    font-size: 14px;
    padding: 0 10px;
}

/* Loading & Empty States */
.comments-loading {
    text-align: center;
    padding: 40px;
    color: #7e8299;
}

.comments-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7e8299;
}

.comments-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Alert Mesajları */
.comment-alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
}

.comment-alert.show {
    display: block;
}

.comment-alert-success {
    background: #c9f7f5;
    border-left: 4px solid #1bc5bd;
    color: #0bb7af;
}

.comment-alert-error {
    background: #ffe2e5;
    border-left: 4px solid #f64e60;
    color: #f64e60;
}

.comment-alert-warning {
    background: #fff4de;
    border-left: 4px solid #ffa800;
    color: #f1a700;
}

/* Responsive */
@media (max-width: 768px) {
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .comment-form-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .comment-submit-btn {
        width: 100%;
    }

    .comment-header {
        flex-wrap: wrap;
    }

    .comment-avatar {
        width: 35px;
        height: 35px;
    }
}

/* Emoji Picker Stilleri */
#emoji-picker-btn {
    transition: all 0.2s;
}

#emoji-picker-btn:hover {
    background: #3699ff !important;
    color: white !important;
    border-color: #3699ff !important;
    transform: translateY(-1px);
}

#emoji-picker-btn i {
    margin-right: 5px;
}

/* Emoji picker scrollbar stilleri */
.emoji-picker-container::-webkit-scrollbar {
    width: 8px;
}

.emoji-picker-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.emoji-picker-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.emoji-picker-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobil responsive */
@media (max-width: 768px) {
    #emoji-picker-btn {
        width: 100%;
        justify-content: center;
    }
}