/* Ruh Comment - Yeni Tasarım - #005B43 Ana Renk */
:root {
    /* Ana Renk Paleti - #005B43 bazlı */
    --primary-color: #005B43;
    --primary-hover: #007a5a;
    --primary-dark: #003d2e;
    --primary-light: rgba(0, 91, 67, 0.1);
    --primary-accent: #00b894;
    
    /* Arkaplan Renkleri - Koyu tema korundu */
    --bg-primary: #1C1C1C;
    --bg-secondary: #2a2a2a;
    --bg-card: #333333;
    --bg-input: #404040;
    --bg-hover: #4a4a4a;
    
    /* Metin Renkleri */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Sınır ve Gölgeler */
    --border: #505050;
    --border-light: #606060;
    --shadow-primary: 0 4px 20px rgba(0, 91, 67, 0.3);
    --shadow-hover: 0 8px 25px rgba(0, 91, 67, 0.4);
    
    /* Durum Renkleri */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Boyutlar ve Animasyonlar */
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET ve BASE */
.comments-area * {
    box-sizing: border-box;
}

/* Ana Container */
.comments-area {
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 20px 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* 1. EMOJI TEPKI BÖLÜMÜ - Yeni minimal tasarım */
.ruh-reactions-section {
    background: var(--bg-secondary);
    padding: 30px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.reactions-header {
    margin-bottom: 20px;
}

.reactions-header .section-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px;
}

.total-reactions {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Tepki Butonları - Düzeltilmiş parlaklık */
.reactions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.reaction {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    opacity: 1;
}

.reaction:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px) scale(1.05);
}

.reaction.selected {
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 15px rgba(0, 91, 67, 0.3);
}

.reaction .emoji {
    font-size: 24px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: var(--transition);
}

.reaction:hover .emoji,
.reaction.selected .emoji {
    transform: scale(1.1);
}

/* Tepki ismi - emoji altında küçük */
.reaction span:not(.count) {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    opacity: 0.8;
}

.reaction.selected span:not(.count) {
    color: var(--primary-color);
    font-weight: 600;
    opacity: 1;
}

.reaction .count {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.reaction.selected .count {
    background: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Mobil tepki düzeni - 3x2 grid */
@media (max-width: 768px) {
    .reactions {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 300px;
    }
    
    .reaction {
        padding: 10px 6px;
    }
    
    .reaction .emoji {
        font-size: 20px;
    }
    
    .reaction span:not(.count) {
        font-size: 9px;
    }
}

/* 2. YORUM FORM ALANI */
#ruh-comment-form-wrapper {
    background: var(--bg-secondary);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 16px;
}

.comment-user-info {
    flex-shrink: 0;
}

.comment-user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: block;
    transition: var(--transition);
}

.comment-user-info img:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: scale(1.05);
}

.comment-form {
    flex: 1;
    min-width: 0;
}

/* Yorum formu */
#ruh-editor-container {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

#ruh-editor-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

#ruh-editor-toolbar {
    background: var(--bg-input);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.ruh-toolbar-button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 11px;
    position: relative;
    overflow: hidden;
}

/* Görsel yükleme butonu */
.ruh-toolbar-button.image-upload {
    font-size: 14px;
    padding: 0;
}

.ruh-toolbar-button.image-upload input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ruh-toolbar-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 91, 67, 0.2);
}

.comment-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    padding: 16px;
    min-height: 120px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.comment-form textarea::placeholder {
    color: var(--text-muted);
}

/* Form submit alanı */
.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-input);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.form-submit-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Karakter sayacı */
.char-counter {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.char-counter.warning {
    color: #d97706;
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.char-counter.danger {
    color: #dc2626;
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

/* Submit Button */
.ruh-submit, #submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.ruh-submit::before, #submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.ruh-submit:hover, #submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-accent));
}

.ruh-submit:hover::before, #submit:hover::before {
    left: 100%;
}

/* 3. HEADER VE SIRALAMA */
.comments-header {
    background: var(--bg-secondary);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.comments-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 91, 67, 0.3);
}

/* Sıralama Dropdown */
.comment-sorting {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-sorting label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: space-between;
    transition: var(--transition);
}

.sort-dropdown-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-input);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 91, 67, 0.2);
}

.sort-dropdown-btn::after {
    content: '▼';
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-dropdown.open .sort-dropdown-btn::after {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-dropdown.open .sort-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.sort-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.sort-option.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* 4. YORUM LISTESI */
.comment-list {
    background: var(--bg-secondary);
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 40px;
    border-left: 2px solid var(--border);
    margin-top: 12px;
    position: relative;
}

.comment-list .children::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
    border-radius: 2px;
}

.ruh-comment-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    transition: var(--transition);
    position: relative;
}

.ruh-comment-item:hover {
    background: rgba(0, 91, 67, 0.05);
}

.ruh-comment-item:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 12px;
}

.comment-author {
    flex-shrink: 0;
}

.comment-author .avatar-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
}

.comment-author .avatar-link:hover img {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
    transform: scale(1.05);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-author-meta .author-name {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.comment-author-meta .author-name:hover {
    color: var(--primary-accent);
}

/* Seviye Rozeti - Animasyonlu geçiş efekti */
.user-level, .user-level-oval {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(0, 91, 67, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.user-level::before, .user-level-oval::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 1s ease-in-out;
}

.user-level:hover::before, .user-level-oval:hover::before {
    left: 100%;
}

.user-level:hover, .user-level-oval:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 91, 67, 0.6);
}

/* Kullanıcı Rozetleri - Animasyonlu renk geçişi */
.user-badges {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.badge-item-with-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Animasyonlu renk geçişi */
@keyframes badge-color-shift {
    0%, 100% { 
        border-color: var(--border);
        background: var(--bg-card);
    }
    50% { 
        border-color: var(--primary-color);
        background: var(--primary-light);
    }
}

.badge-item-with-text {
    animation: badge-color-shift 3s ease-in-out infinite;
}

.badge-item-with-text:hover {
    transform: scale(1.1) translateY(-2px);
    animation-duration: 1s; /* Hover'da daha hızlı geçiş */
}

.badge-item-with-text svg {
    width: 12px;
    height: 12px;
}

.comment-metadata {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 8px;
}

.comment-metadata .comment-time {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.comment-metadata .comment-time:hover {
    color: var(--primary-accent);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 8px 0;
    font-size: 14px;
}

.comment-text a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: var(--transition);
}

.comment-text a:hover {
    color: #1abc9c;
    text-decoration: underline;
}

/* 5. BEĞENİ BUTONLARI */
.comment-like-buttons {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.comment-like-buttons button {
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    font-family: inherit !important;
    will-change: transform !important;
    min-width: 40px !important;
    justify-content: center !important;
}

.comment-like-buttons button:hover {
    background: var(--bg-input) !important;
    color: var(--text-secondary) !important;
    transform: scale(1.05) !important;
}

.comment-like-buttons button.active.like-btn {
    color: var(--success) !important;
    background: rgba(16, 185, 129, 0.15) !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.comment-like-buttons button.active.dislike-btn {
    color: var(--error) !important;
    background: rgba(239, 68, 68, 0.15) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* 6. YORUM AKSİYONLARI */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid var(--border);
}

.comment-actions button,
.comment-actions a {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-reply-link {
    color: var(--primary-accent) !important;
    background: var(--primary-light) !important;
    border-color: var(--primary-color) !important;
}

.comment-reply-link:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.comment-edit-btn {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: #f59e0b !important;
}

.comment-edit-btn:hover {
    background: #f59e0b !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.comment-delete-btn {
    color: var(--error) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: var(--error) !important;
}

.comment-delete-btn:hover {
    background: var(--error) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.report-btn {
    color: var(--error) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: var(--error) !important;
}

.report-btn:hover {
    background: var(--error) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Yorum düzenleme formu */
.comment-edit-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 12px;
    animation: slideInDown 0.3s ease;
}

.comment-edit-toolbar {
    background: var(--bg-input);
    padding: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 6px;
}

.comment-edit-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    padding: 12px;
    min-height: 80px;
    resize: vertical;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
}

.comment-edit-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    background: var(--bg-input);
}

.comment-edit-save {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.comment-edit-save:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.comment-edit-cancel {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.comment-edit-cancel:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 7. INLINE REPLY FORM */
.inline-reply-container {
    background: var(--bg-card);
    padding: 16px;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inline-reply-container .comment-user-info img {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.inline-reply-form {
    flex: 1;
    min-width: 0;
}

.inline-reply-editor {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.inline-reply-editor:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.inline-reply-toolbar {
    background: var(--bg-secondary);
    padding: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 6px;
}

.inline-reply-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 12px;
    min-height: 80px;
    resize: vertical;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
}

.inline-reply-form textarea::placeholder {
    color: var(--text-muted);
}

.inline-reply-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.inline-reply-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.inline-reply-submit:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 91, 67, 0.3);
}

.inline-reply-cancel {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.inline-reply-cancel:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 8. SPOILER, AUTH, LOAD MORE ve NOTIFICATION */
.ruh-spoiler {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.spoiler-header {
    padding: 12px 16px;
    cursor: pointer;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 600;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-size: 13px;
}

.spoiler-header:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.spoiler-content {
    padding: 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: none;
    line-height: 1.6;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-required-message {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.auth-required-message h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.auth-required-message p {
    margin: 0 0 16px;
    opacity: 0.9;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.auth-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.auth-button:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

.auth-button.primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
    font-weight: 700;
}

#load-more-comments {
    width: 100%;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-size: 14px;
    font-family: inherit;
}

#load-more-comments:hover {
    background: var(--bg-input);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 67, 0.2);
}

.no-comments {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin: 16px;
    border: 2px dashed var(--border);
}

.comments-closed {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin: 16px;
    border: 1px solid var(--border);
}

.ruh-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    font-size: 14px;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease;
}

.ruh-notification.error {
    background: linear-gradient(135deg, var(--error), #dc2626);
}

.ruh-notification.success {
    background: linear-gradient(135deg, var(--success), #059669);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

/* Görsel önizleme stilleri */
.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview .upload-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* LOADING STATES */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#comment-loader {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .comments-area {
        margin: 10px 0;
        border-radius: var(--radius-sm);
    }
    
    /* Form mobil */
    #ruh-comment-form-wrapper {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }
    
    .comment-user-info {
        align-self: flex-start;
    }
    
    .comment-user-info img {
        width: 40px;
        height: 40px;
    }
    
    #ruh-editor-toolbar {
        padding: 8px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .ruh-toolbar-button {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .form-submit {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 12px;
    }
    
    .form-submit-info {
        justify-content: space-between;
        order: 2;
    }
    
    .ruh-submit, #submit {
        width: 100%;
        order: 1;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Header mobil */
    .comments-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }
    
    .comments-title {
        font-size: 16px;
        text-align: center;
    }
    
    .comment-sorting {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-dropdown-btn {
        width: 120px;
        font-size: 11px;
        padding: 6px 8px;
    }
    
    /* Yorumlar mobil */
    .comment-list .children {
        padding-left: 20px;
    }
    
    .ruh-comment-item {
        padding: 16px;
    }
    
    .comment-body {
        gap: 10px;
    }
    
    .comment-author .avatar-link img {
        width: 36px;
        height: 36px;
    }
    
    .comment-author-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .user-level,
    .user-level-oval {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .user-badges {
        gap: 4px;
    }
    
    .badge-item-with-text {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .badge-item-with-text svg {
        width: 10px;
        height: 10px;
    }
    
    .comment-text {
        font-size: 13px;
    }
    
    .comment-actions {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .comment-like-buttons {
        order: -1;
        margin-bottom: 8px;
        width: fit-content;
    }
    
    .comment-like-buttons button {
        font-size: 10px !important;
        padding: 4px 8px !important;
        min-width: 35px !important;
    }
    
    /* İnline reply mobil */
    .inline-reply-container {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .inline-reply-container .comment-user-info {
        align-self: flex-start;
    }
    
    .inline-reply-container .comment-user-info img {
        width: 32px;
        height: 32px;
    }
    
    .inline-reply-toolbar {
        padding: 6px;
        gap: 4px;
    }
    
    .inline-reply-form textarea {
        min-height: 60px;
        font-size: 12px;
        padding: 10px;
    }
    
    .inline-reply-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .inline-reply-submit,
    .inline-reply-cancel {
        width: 100%;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .ruh-reactions-section {
        padding: 16px 12px;
    }
    
    .reactions {
        gap: 10px;
        padding: 0 5px;
    }
    
    .reaction {
        padding: 10px;
        min-height: 60px;
    }
    
    .reaction .emoji {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .reaction span:not(.count) {
        font-size: 8px;
    }
    
    .reaction .count {
        font-size: 8px;
        padding: 1px 4px;
        min-width: 14px;
    }
    
    .comments-title {
        font-size: 14px;
    }
    
    .comment-count {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .sort-dropdown-btn {
        width: 100px;
        font-size: 10px;
        padding: 4px 6px;
        min-width: auto;
    }
    
    .ruh-comment-item {
        padding: 12px;
    }
    
    .comment-author .avatar-link img {
        width: 32px;
        height: 32px;
    }
}

/* Görsel önizleme stilleri - geliştirilmiş */
.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    animation: slideInDown 0.3s ease;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
}

.image-preview:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.image-preview .remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.image-preview .upload-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-direction: column;
    gap: 5px;
}

.image-preview .upload-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}