/* Commentics Modern Design - Completely Rewritten */
/* ================================================= */

:root {
    /* Light Mode Colors */
    --commentics-card-bg: #ffffff;
    --commentics-text: #1e293b;
    --commentics-text-muted: #64748b;
    --commentics-border: #e2e8f0;
    --commentics-border-light: #f1f5f9;
    --commentics-primary: #3b82f6;
    --commentics-primary-hover: #2563eb;
    --commentics-success: #10b981;
    --commentics-warning: #f59e0b;
    --commentics-danger: #ef4444;
    --commentics-gold: #f59e0b;
    --commentics-shadow: rgba(0, 0, 0, 0.05);
    --commentics-shadow-hover: rgba(0, 0, 0, 0.1);
    --commentics-blue-light: rgba(59, 130, 246, 0.1);
    --commentics-hover-bg: rgba(0, 0, 0, 0.02);

    /* Button Colors */
    --btn-reply-bg: rgba(59, 130, 246, 0.1);
    --btn-reply-hover: rgba(59, 130, 246, 0.2);
    --btn-reply-color: #1e40af;
    --btn-edit-bg: rgba(249, 115, 22, 0.1);
    --btn-edit-hover: rgba(249, 115, 22, 0.2);
    --btn-edit-color: #c2410c;
    --btn-delete-bg: rgba(239, 68, 68, 0.1);
    --btn-delete-hover: rgba(239, 68, 68, 0.2);
    --btn-delete-color: #dc2626;
    --btn-pin-bg: rgba(245, 158, 11, 0.1);
    --btn-pin-hover: rgba(245, 158, 11, 0.2);
    --btn-pin-color: #d97706;
}

/* Dark Mode Colors */
body.dark {
    --commentics-card-bg: #1e2931;
    --commentics-text: #f1f5f9;
    --commentics-text-muted: #94a3b8;
    --commentics-border: #334155;
    --commentics-border-light: #475569;
    --commentics-primary: #60a5fa;
    --commentics-primary-hover: #3b82f6;
    --commentics-success: #34d399;
    --commentics-warning: #fbbf24;
    --commentics-danger: #f87171;
    --commentics-gold: #fbbf24;
    --commentics-shadow: rgba(0, 0, 0, 0.2);
    --commentics-shadow-hover: rgba(0, 0, 0, 0.3);
    --commentics-blue-light: rgba(96, 165, 250, 0.15);
    --commentics-hover-bg: rgba(255, 255, 255, 0.05);
    
    /* Dark Mode Button Colors */
    --btn-reply-bg: rgba(96, 165, 250, 0.15);
    --btn-reply-hover: rgba(96, 165, 250, 0.25);
    --btn-reply-color: #93c5fd;
    --btn-edit-bg: rgba(251, 191, 36, 0.15);
    --btn-edit-hover: rgba(251, 191, 36, 0.25);
    --btn-edit-color: #fcd34d;
    --btn-delete-bg: rgba(248, 113, 113, 0.15);
    --btn-delete-hover: rgba(248, 113, 113, 0.25);
    --btn-delete-color: #fca5a5;
    --btn-pin-bg: rgba(251, 191, 36, 0.15);
    --btn-pin-hover: rgba(251, 191, 36, 0.25);
    --btn-pin-color: #fcd34d;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

.commentics-container {
    max-width: 100%;
    width: 100%;
    margin: 24px auto;
    padding: 24px;
    color: var(--commentics-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-bottom: 0 !important;
}

@media (max-width: 480px) {
    .commentics-container {
        padding: 0 !important;
    }
}

/* Header */
.commentics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--commentics-border);
}

.commentics-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--commentics-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.commentics-title svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Auth Section */
.commentics-auth {
    display: flex;
    gap: 8px;
    align-items: center;
}

.commentics-login-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.commentics-login-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.commentics-login-btn.discord {
    background: #5865f2;
    color: white;
}

.commentics-login-btn.discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.commentics-login-btn.google {
    background: #fff;
    color: #333;
    border: 1px solid var(--commentics-border);
}

.commentics-login-btn.google:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* User Info */
.commentics-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--commentics-blue-light);
    border-radius: 6px;
    border: 1px solid var(--commentics-primary);
}

.commentics-user-avatar {
    width: 36px; /* 28px'den 36px'e artırıldı */
    height: 36px; /* 28px'den 36px'e artırıldı */
    border-radius: 50%;
    object-fit: cover;
}

.commentics-user-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--commentics-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.commentics-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
}

.commentics-badge.admin {
    background: var(--commentics-gold);
    color: #92400e;
}

.commentics-badge.moderator {
    background: var(--commentics-primary);
    color: white;
}

.commentics-logout-btn {
    padding: 4px 8px;
    background: var(--commentics-danger);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.commentics-logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Comment Form */
.commentics-form {
    background: var(--commentics-card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--commentics-border);
    box-shadow: 0 2px 8px var(--commentics-shadow);
}

.commentics-form h3 {
    margin: 0 0 16px 0;
    color: var(--commentics-text);
    font-size: 16px;
    font-weight: 600;
}

/* Editor */
.commentics-editor {
    border: 1px solid var(--commentics-border);
    border-radius: 6px;
    margin-bottom: 16px;
    background: var(--commentics-card-bg);
    transition: border-color 0.2s ease;
}

.commentics-editor:focus-within {
    border-color: var(--commentics-primary);
    box-shadow: 0 0 0 2px var(--commentics-blue-light);
}

.commentics-editor .ql-toolbar {
    border-bottom: 1px solid var(--commentics-border);
    background: var(--commentics-border-light);
    border-radius: 6px 6px 0 0;
    padding: 8px;
}

.commentics-editor .ql-container {
    border: none;
    border-radius: 0 0 6px 6px;
    font-family: inherit;
}

.commentics-editor .ql-editor {
    min-height: 100px;
    color: var(--commentics-text);
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
}

.commentics-editor .ql-editor.ql-blank::before {
    color: var(--commentics-text-muted);
    font-style: italic;
}

/* Character Counter */
.commentics-char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--commentics-text-muted);
}

.commentics-char-count {
    font-weight: 500;
}

.commentics-char-count.warning {
    color: var(--commentics-warning);
}

.commentics-char-count.danger {
    color: var(--commentics-danger);
}

/* Submit Button */
.commentics-submit-btn {
    background: linear-gradient(135deg, var(--commentics-primary), var(--commentics-primary-hover));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.commentics-submit-btn svg {
    width: 14px;
    height: 14px;
}

.commentics-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.commentics-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.commentics-cancel-btn {
    background: var(--commentics-card-bg);
    color: var(--commentics-text);
    border: 1px solid var(--commentics-border);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.commentics-cancel-btn:hover {
    background: var(--commentics-danger);
    color: white;
    border-color: var(--commentics-danger);
}

/* Comments - Flex Container */
.commentics-comments {
    margin-top: 24px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px; /* 16px'den 20px'e artırıldı */
}

.commentics-c {
    padding: 24px; /* 32px'den 24px'e azaltıldı ama modern spacing */
    border-bottom: 1px solid var(--commentics-border);
    border-radius: 12px; /* 8px'den 12px'e artırıldı */
}

@media (max-width: 480px) {
    .commentics-c {
        padding: 0 !important;
    }
}

.commentics-comment {
    background: var(--commentics-card-bg);
    transition: all 0.2s ease;
    position: relative;
}

/* Tüm comment'lerde margin sıfırla */
.commentics-comment,
.commentics-comment.reply {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.commentics-comment:hover {
    box-shadow: none;
}

.commentics-comment.pinned {
    border-color: var(--commentics-gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 191, 36, 0.05));
}

.commentics-comment.pinned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--commentics-gold), #fbbf24);
    border-radius: 8px 8px 0 0;
}

/* Reply Alignment System */
.commentics-comment.reply {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Level 1: First reply */
.commentics-comment.reply.depth-1 {
    margin-left: 24px;
    padding-left: 16px;
}

/* Level 2+: All other replies flat - back to main level */
.commentics-comment.reply.depth-2,
.commentics-comment.reply.depth-3,
.commentics-comment.reply.depth-4,
.commentics-comment.reply.depth-5,
.commentics-comment.reply.depth-6,
.commentics-comment.reply.depth-7,
.commentics-comment.reply.depth-8,
.commentics-comment.reply.depth-9,
.commentics-comment.reply.depth-10 {
    margin-left: 0;
    padding-left: 0;
}

/* Comment Header */
.commentics-comment-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 16px; /* 12px'den 16px'e artırıldı */
    gap: 14px; /* 12px'den 14px'e artırıldı */
    position: relative;
}

.commentics-comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.commentics-comment-avatar {
    width: 44px; /* 32px'den 44px'e artırıldı */
    height: 44px; /* 32px'den 44px'e artırıldı */
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--commentics-border);
}

.commentics-comment-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.commentics-comment-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--commentics-text);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

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

/* Pin Info */
.commentics-pin-info {
    background: var(--commentics-gold);
    color: #92400e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

/* Comment Content */
.commentics-comment-content {
    color: var(--commentics-text);
    line-height: 1.6;
    margin-bottom: 16px; /* 12px'den 16px'e artırıldı */
    font-size: 16px; /* 14px'den 16px'e artırıldı */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.commentics-comment-content p {
    margin: 0 0 8px 0;
}

.commentics-comment-content p:last-child {
    margin-bottom: 0;
}

.commentics-comment-content strong,
.commentics-comment-content b,
.commentics-comment-content str {
    font-weight: 600 !important;
    color: inherit !important;
}

.commentics-comment-content em,
.commentics-comment-content i {
    font-style: italic !important;
}

.commentics-comment-content u {
    text-decoration: underline !important;
}

.commentics-comment-content img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.commentics-comment-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* GIF specific styling */
.commentics-comment-content img[src*=".gif"],
.commentics-comment-content img[src*="giphy.com"] {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    border: 2px solid var(--commentics-border);
}

/* Mobile responsive images */
@media (max-width: 768px) {
    .commentics-comment-content img {
        max-height: 250px;
        border-radius: 6px;
    }
    
    .commentics-comment-content img[src*=".gif"],
    .commentics-comment-content img[src*="giphy.com"] {
        max-height: 200px;
        border-radius: 8px;
    }
}

/* Content Collapse */
.comment-content-preview,
.comment-content-full {
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.comment-content-preview {
    position: relative;
}

.comment-content-full {
    display: none;
}

.comment-content-full.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

.show-more-btn,
.show-less-btn {
    background: var(--commentics-bg-light, #f8fafc);
    border: 1px solid var(--commentics-border-light, #e2e8f0);
    color: var(--commentics-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    margin: 8px 0 4px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: inline-block;
    min-height: 32px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.show-more-btn:hover,
.show-less-btn:hover {
    color: #fff;
    background: var(--commentics-primary);
    border-color: var(--commentics-primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.show-more-btn:focus,
.show-less-btn:focus {
    outline: 2px solid var(--commentics-primary);
    outline-offset: 2px;
}

/* Dark mode support */
body.dark .show-more-btn,
body.dark .show-less-btn {
    background: var(--commentics-bg-dark, #374151);
    border-color: var(--commentics-border-dark, #4b5563);
    color: var(--commentics-primary-dark, #60a5fa);
}

body.dark .show-more-btn:hover,
body.dark .show-less-btn:hover {
    background: var(--commentics-primary-dark, #60a5fa);
    border-color: var(--commentics-primary-dark, #60a5fa);
    color: #1f2937;
}

@media (max-width: 768px) {
    .show-more-btn,
    .show-less-btn {
        font-size: 14px;
        padding: 12px 20px;
        min-height: 44px;
        margin: 10px 0 6px 0;
        border-radius: 8px;
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Comment Footer */
.commentics-comment-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px; /* 12px'den 16px'e artırıldı */
    margin-top: 16px; /* 12px'den 16px'e artırıldı */
    padding-top: 12px; /* 8px'den 12px'e artırıldı */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reactions */
.commentics-reactions {
    display: flex;
    gap: 8px; /* 4px'den 8px'e artırıldı */
    align-items: center;
}

/* Modern Action Buttons */
.commentics-comment-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.commentics-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0;
}

.commentics-action-btn svg {
    width: 16px;
    height: 16px;
}

.commentics-action-btn:hover {
    transform: scale(1.05);
}

.commentics-action-btn:active {
    transform: scale(0.95);
}

/* Reply Button */
.commentics-action-btn.reply {
    background: var(--btn-reply-bg);
    color: var(--btn-reply-color);
}

.commentics-action-btn.reply:hover {
    background: var(--btn-reply-hover);
}

/* Edit Button */
.commentics-action-btn.edit {
    background: var(--btn-edit-bg);
    color: var(--btn-edit-color);
}

.commentics-action-btn.edit:hover {
    background: var(--btn-edit-hover);
}

/* Delete Button */
.commentics-action-btn.delete {
    background: var(--btn-delete-bg);
    color: var(--btn-delete-color);
}

.commentics-action-btn.delete:hover {
    background: var(--btn-delete-hover);
}

/* Pin Button */
.commentics-action-btn.pin,
.commentics-action-btn.unpin {
    background: var(--btn-pin-bg);
    color: var(--btn-pin-color);
}

.commentics-action-btn.pin:hover,
.commentics-action-btn.unpin:hover {
    background: var(--btn-pin-hover);
}

/* Tooltip */
.commentics-action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 4px;
}

.commentics-action-btn:hover::after {
    opacity: 1;
    visibility: visible;
}



.commentics-reaction-btn {
    padding: 6px 12px; /* 4px 8px'den 6px 12px'e artırıldı */
    border: 1px solid var(--commentics-border);
    border-radius: 6px; /* 4px'den 6px'e artırıldı */
    background: var(--commentics-card-bg);
    cursor: pointer;
    font-size: 14px; /* 12px'den 14px'e artırıldı */
    display: flex;
    align-items: center;
    gap: 6px; /* 4px'den 6px'e artırıldı */
    transition: all 0.2s ease;
    height: 36px; /* 32px'den 36px'e artırıldı */
    min-height: 36px; /* 32px'den 36px'e artırıldı */
    box-sizing: border-box;
}

.commentics-reaction-btn:hover {
    background: var(--commentics-hover-bg);
    border-color: var(--commentics-primary);
}

.commentics-reaction-btn.active {
    background: var(--commentics-blue-light);
    border-color: var(--commentics-primary);
    color: var(--commentics-primary);
}

/* Reply button in footer */
.commentics-reaction-btn.reply {
    background: var(--commentics-card-bg);
    color: var(--commentics-text);
    border-color: var(--commentics-border);
    height: 36px; /* Like ve dislike ile aynı yükseklik */
    min-height: 36px;
}

.commentics-reaction-btn.reply:hover {
    background: var(--commentics-hover-bg);
    border-color: var(--commentics-primary);
    color: var(--commentics-primary);
}

.commentics-reaction-btn.reply .icon svg {
    color: #3b82f6; /* Mavi reply icon */
}

.commentics-reaction-btn.reply:hover .icon svg {
    color: var(--commentics-primary);
}

.commentics-reaction-btn.reply .text {
    font-weight: 500;
}

/* Dropdown Menu */
.comment-dropdown-container {
    position: relative;
}

.commentics-action-btn.more {
    background: rgba(107, 114, 128, 0.1);
    color: var(--commentics-text-muted);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.commentics-action-btn.more:hover {
    background: rgba(107, 114, 128, 0.2);
    color: var(--commentics-text);
    border-color: rgba(107, 114, 128, 0.4);
}

.comment-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--commentics-card-bg);
    border: 1px solid var(--commentics-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.comment-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--commentics-text);
    font-size: 14px; /* 13px'den 14px'e artırıldı */
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:only-child {
    border-radius: 8px;
}

.dropdown-item:hover {
    background: var(--commentics-hover-bg);
}

.dropdown-item.edit {
    color: var(--commentics-text);
}

.dropdown-item.edit svg {
    color: #10b981; /* Yeşil edit icon */
}

.dropdown-item.edit:hover {
    background: var(--commentics-hover-bg);
    color: var(--commentics-text);
}

.dropdown-item.edit:hover svg {
    color: #059669; /* Daha koyu yeşil hover */
}

.dropdown-item.delete {
    color: var(--commentics-text);
}

.dropdown-item.delete svg {
    color: #ef4444; /* Kırmızı delete icon */
}

.dropdown-item.delete:hover {
    background: var(--commentics-hover-bg);
    color: var(--commentics-text);
}

.dropdown-item.delete:hover svg {
    color: #dc2626; /* Daha koyu kırmızı hover */
}

.dropdown-item.pin {
    color: var(--commentics-text);
}

.dropdown-item.pin svg {
    color: #f59e0b; /* Turuncu pin icon */
}

.dropdown-item.pin:hover {
    background: var(--commentics-hover-bg);
    color: var(--commentics-text);
}

.dropdown-item.pin:hover svg {
    color: #d97706; /* Daha koyu turuncu hover */
}

.dropdown-item.ban {
    color: var(--commentics-text);
}

.dropdown-item.ban svg {
    color: #ef4444; /* Kırmızı ban icon */
}

.dropdown-item.ban:hover {
    background: var(--commentics-hover-bg);
    color: var(--commentics-text);
}

.dropdown-item.ban:hover svg {
    color: #dc2626; /* Daha koyu kırmızı hover */
}

.dropdown-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

/* Reply Form - İyileştirilmiş */
.reply-form {
    margin-top: 20px !important;
    padding: 20px !important;
    background: var(--commentics-card-bg);
    border: 1px solid var(--commentics-border);
    box-shadow: 0 2px 8px var(--commentics-shadow);
    border-radius: 8px !important;
    max-width: 100% !important;
}

.reply-form-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--commentics-border) !important;
}

.reply-form-header h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--commentics-text) !important;
    margin: 0 !important;
}

.close-reply {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    background: var(--commentics-hover-bg) !important;
    border: 1px solid var(--commentics-border) !important;
    color: var(--commentics-text-muted) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.close-reply:hover {
    background: var(--commentics-danger) !important;
    color: white !important;
    border-color: var(--commentics-danger) !important;
}

.reply-form .commentics-editor {
    margin-bottom: 16px !important;
    border: 1px solid var(--commentics-border) !important;
    border-radius: 8px !important;
    background: var(--commentics-card-bg) !important;
}

.reply-form .commentics-editor:focus-within {
    border-color: var(--commentics-primary) !important;
    box-shadow: 0 0 0 2px var(--commentics-blue-light) !important;
}

.reply-form .ql-toolbar {
    background: var(--commentics-border-light) !important;
    border-radius: 8px 8px 0 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--commentics-border) !important;
    padding: 10px !important;
}

.reply-form .ql-container {
    border: none !important;
    border-radius: 0 0 8px 8px !important;
}

.reply-form .ql-editor {
    min-height: 120px !important;
    font-size: 14px !important;
    border: 1px solid var(--commentics-border) !important;
    border-radius: 0 0 6px 6px !important;
    line-height: 1.6 !important;
    padding: 16px !important;
    color: var(--commentics-text) !important;
}

.reply-form .ql-editor.ql-blank::before {
    color: var(--commentics-text-muted) !important;
    font-style: italic !important;
}

.reply-form-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-top: 16px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--commentics-border) !important;
}

.reply-form .commentics-submit-btn,
.reply-form .commentics-cancel-btn {
    font-size: 14px !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.reply-form .commentics-submit-btn {
    background: linear-gradient(135deg, var(--commentics-primary), var(--commentics-primary-hover)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

.reply-form .commentics-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
    background: linear-gradient(135deg, var(--commentics-primary-hover), #1d4ed8) !important;
}

.reply-form .commentics-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.reply-form .commentics-cancel-btn {
    background: rgba(107, 114, 128, 0.1) !important;
    color: var(--commentics-text-muted) !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

.reply-form .commentics-cancel-btn:hover {
    background: rgba(107, 114, 128, 0.2) !important;
    color: var(--commentics-text) !important;
    border-color: rgba(107, 114, 128, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2) !important;
}

/* Dark mode reply form */
body.dark .reply-form {
    background: var(--commentics-card-bg) !important;
    border-color: var(--commentics-border) !important;
    box-shadow: 0 2px 8px var(--commentics-shadow) !important;
}

body.dark .reply-form-header {
    border-bottom-color: var(--commentics-border) !important;
}

body.dark .reply-form .ql-toolbar {
    background: var(--commentics-border) !important;
    border-bottom-color: var(--commentics-border) !important;
}

body.dark .reply-form .ql-editor {
    color: var(--commentics-text) !important;
    background: var(--commentics-card-bg) !important;
}

body.dark .reply-form .ql-editor.ql-blank::before {
    color: var(--commentics-text-muted) !important;
}

body.dark .close-reply {
    background: var(--commentics-hover-bg) !important;
    border-color: var(--commentics-border) !important;
    color: var(--commentics-text-muted) !important;
}

body.dark .close-reply:hover {
    background: var(--commentics-danger) !important;
    color: white !important;
    border-color: var(--commentics-danger) !important;
}

body.dark .reply-form .commentics-cancel-btn {
    background: transparent !important;
    color: var(--commentics-text-muted) !important;
    border-color: var(--commentics-border) !important;
}

body.dark .reply-form .commentics-cancel-btn:hover {
    background: var(--commentics-hover-bg) !important;
    color: var(--commentics-text) !important;
    border-color: var(--commentics-text-muted) !important;
}

/* Dark mode edit form */
body.dark .commentics-edit-form {
    background: var(--commentics-card-bg) !important;
    border-color: var(--commentics-border) !important;
    box-shadow: 0 2px 8px var(--commentics-shadow) !important;
}

body.dark .commentics-edit-header {
    border-bottom-color: var(--commentics-border) !important;
}

body.dark .commentics-edit-editor .ql-toolbar {
    background: var(--commentics-border) !important;
    border-bottom-color: var(--commentics-border) !important;
}

body.dark .commentics-edit-editor .ql-editor {
    color: var(--commentics-text) !important;
    background: var(--commentics-card-bg) !important;
}

body.dark .commentics-edit-editor .ql-editor.ql-blank::before {
    color: var(--commentics-text-muted) !important;
}

body.dark .commentics-edit-close {
    background: var(--commentics-hover-bg) !important;
    border-color: var(--commentics-border) !important;
    color: var(--commentics-text-muted) !important;
}

body.dark .commentics-edit-close:hover {
    background: var(--commentics-danger) !important;
    color: white !important;
    border-color: var(--commentics-danger) !important;
}

/* Dark mode edit form Quill editor */
body.dark .commentics-edit-editor .ql-toolbar.ql-snow .ql-stroke {
    stroke: var(--commentics-text) !important;
}

body.dark .commentics-edit-editor .ql-toolbar.ql-snow .ql-fill {
    fill: var(--commentics-text) !important;
}

body.dark .commentics-edit-editor .ql-toolbar.ql-snow button:hover {
    background: var(--commentics-hover-bg) !important;
}

body.dark .commentics-edit-editor .ql-toolbar.ql-snow button.ql-active {
    background: var(--commentics-blue-light) !important;
}

/* Dark mode form actions border */
body.dark .reply-form-actions,
body.dark .commentics-edit-actions {
    border-top-color: var(--commentics-border) !important;
}

/* Edit Form - Reply form ile aynı tasarım */
.commentics-edit-form {
    margin: 0 !important;
    padding: 20px !important;
    background: var(--commentics-card-bg) !important;
    border: 1px solid var(--commentics-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px var(--commentics-shadow) !important;
    max-width: 100% !important;
}

.commentics-edit-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--commentics-border) !important;
}

.commentics-edit-header h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--commentics-text) !important;
    margin: 0 !important;
}

.commentics-edit-close {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    background: var(--commentics-hover-bg) !important;
    border: 1px solid var(--commentics-border) !important;
    color: var(--commentics-text-muted) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.commentics-edit-close:hover {
    background: var(--commentics-danger) !important;
    color: white !important;
    border-color: var(--commentics-danger) !important;
}

/* Safari-specific fixes for edit close button */
@supports (-webkit-appearance: none) {
    .commentics-edit-close {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        -webkit-box-align: center !important;
        -webkit-box-pack: center !important;
    }
    
    .commentics-edit-close::before {
        content: "×" !important;
        display: block !important;
        line-height: 1 !important;
        font-weight: bold !important;
        font-size: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.commentics-edit-close:hover {
    background: var(--commentics-danger) !important;
    color: white !important;
    border-color: var(--commentics-danger) !important;
}

.commentics-edit-editor {
    margin-bottom: 16px !important;
    border: 1px solid var(--commentics-border) !important;
    border-radius: 8px !important;
    background: var(--commentics-card-bg) !important;
}

.commentics-edit-editor:focus-within {
    border-color: var(--commentics-primary) !important;
    box-shadow: 0 0 0 2px var(--commentics-blue-light) !important;
}

.commentics-edit-editor .ql-toolbar {
    background: var(--commentics-border-light) !important;
    border-radius: 8px 8px 0 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--commentics-border) !important;
    padding: 10px !important;
}

.commentics-edit-editor .ql-container {
    border: none !important;
    border-radius: 0 0 8px 8px !important;
}

.commentics-edit-editor .ql-editor {
    min-height: 120px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 16px !important;
    color: var(--commentics-text) !important;
}

.commentics-edit-editor .ql-editor.ql-blank::before {
    color: var(--commentics-text-muted) !important;
    font-style: italic !important;
}

.commentics-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--commentics-border) !important;
}

/* Edit form button styles - Modern tasarım */
.commentics-edit-actions .commentics-submit-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.commentics-edit-actions .commentics-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
}

.commentics-edit-actions .commentics-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3) !important;
}

.commentics-edit-actions .commentics-cancel-btn {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.commentics-edit-actions .commentics-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

/* Modals */
.commentics-delete-modal,
.commentics-gif-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.commentics-delete-modal.show,
.commentics-gif-modal.show {
    opacity: 1;
    visibility: visible;
}

.commentics-modal-content {
    background: var(--commentics-card-bg);
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.commentics-delete-modal.show .commentics-modal-content {
    transform: scale(1);
}

.commentics-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.commentics-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--commentics-text);
}

.commentics-modal-close {
    background: none;
    border: none;
    color: var(--commentics-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.commentics-modal-close:hover {
    background: var(--commentics-hover-bg);
    color: var(--commentics-text);
}

.commentics-modal-body p {
    color: var(--commentics-text);
    margin-bottom: 16px;
    line-height: 1.5;
}

.commentics-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.commentics-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.commentics-btn.cancel {
    background: var(--commentics-card-bg);
    color: var(--commentics-text);
    border: 1px solid var(--commentics-border);
}

.commentics-btn.cancel:hover {
    background: var(--commentics-hover-bg);
}

.commentics-btn.delete {
    background: var(--commentics-danger);
    color: white;
}

.commentics-btn.delete:hover {
    background: #dc2626;
}

/* GIF Modal Styles */
.gif-search-modal {
    max-width: 600px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

.gif-search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.gif-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--commentics-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--commentics-card-bg);
    color: var(--commentics-text);
    transition: all 0.2s ease;
}

.gif-search-input:focus {
    outline: none;
    border-color: var(--commentics-primary);
    box-shadow: 0 0 0 3px var(--commentics-blue-light);
}

.gif-search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--commentics-primary), var(--commentics-primary-hover));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.gif-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.gif-upload-option {
    margin-bottom: 20px;
    text-align: center;
    padding: 0 4px;
}

.gif-upload-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--commentics-success), #059669);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.gif-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.gif-results {
    max-height: 400px;
    overflow-y: auto;
}

.gif-loading {
    text-align: center;
    padding: 20px;
    color: var(--commentics-text-muted);
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px 0;
    max-height: 400px;
    overflow-y: auto;
}

.gif-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: var(--commentics-border-light);
}

.gif-item:hover {
    transform: scale(1.05);
    border-color: var(--commentics-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.gif-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.gif-item:hover img {
    opacity: 0.9;
}

/* Dark mode GIF modal */
body.dark .gif-search-input {
    background: var(--commentics-card-bg);
    color: var(--commentics-text);
    border-color: var(--commentics-border);
}

body.dark .gif-search-input:focus {
    border-color: var(--commentics-primary);
    box-shadow: 0 0 0 2px var(--commentics-blue-light);
}

/* Messages */
.commentics-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.commentics-message.commentics-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--commentics-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.commentics-message.commentics-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--commentics-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    }
    
/* Loading */
.commentics-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--commentics-text-muted);
}

.commentics-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--commentics-border);
    border-top-color: var(--commentics-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    }
    
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.commentics-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--commentics-text-muted);
}

.commentics-empty h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    }
    
.commentics-empty p {
    font-size: 14px;
}

/* Quill Editor Styles */
.ql-toolbar.ql-snow {
    border: none !important;
    background: var(--commentics-border-light) !important;
}

.ql-container.ql-snow {
    border: none !important;
}

/* Custom GIF button styling */
.ql-toolbar .ql-gif {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    border: 1px solid var(--commentics-border) !important;
    border-radius: 4px !important;
    background: var(--commentics-card-bg) !important;
    margin: 0 2px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.ql-toolbar .ql-gif:before {
    content: "GIF" !important;
    font-size: 9px !important;
    font-weight: bold !important;
    color: var(--commentics-text) !important;
    line-height: 1 !important;
}

.ql-toolbar .ql-gif:hover {
    background: var(--commentics-blue-light) !important;
    border-color: var(--commentics-primary) !important;
}

.ql-toolbar .ql-gif:hover:before {
    color: var(--commentics-primary) !important;
}

/* Ensure all toolbar buttons are aligned */
.ql-toolbar .ql-formats button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: top !important;
}

/* Image button alignment */
.ql-toolbar .ql-image {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* GIF Modal Overlay */
.commentics-gif-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
}

.commentics-gif-modal.show {
    opacity: 1;
    visibility: visible;
}

.commentics-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.gif-search-modal {
    position: relative;
    z-index: 10001;
    background: var(--commentics-card-bg);
    border-radius: 12px;
    border: 1px solid var(--commentics-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ql-editor strong,
.ql-editor b,
strong,
b {
    font-weight: 700 !important;
    color: var(--commentics-text) !important;
}

.ql-editor em,
.ql-editor i,
em,
i {
    font-style: italic !important;
}

.ql-editor u,
u {
    text-decoration: underline !important;
}

/* Force bold styling in all contexts */
.commentics-comment-content strong,
.commentics-comment-content b,
.ql-editor strong,
.ql-editor b {
    font-weight: 700 !important;
    color: inherit !important;
}

/* Ensure formatting is visible in dark mode */
body.dark .commentics-comment-content strong,
body.dark .commentics-comment-content b,
body.dark .ql-editor strong,
body.dark .ql-editor b {
    font-weight: 700 !important;
    color: var(--commentics-text) !important;
}

/* Dark Mode Quill Fixes */
body.dark .ql-toolbar.ql-snow {
    background: var(--commentics-border) !important;
}

body.dark .ql-toolbar.ql-snow .ql-stroke {
    stroke: var(--commentics-text) !important;
}

body.dark .ql-toolbar.ql-snow .ql-fill {
    fill: var(--commentics-text) !important;
}

body.dark .ql-toolbar.ql-snow button:hover {
    background: var(--commentics-hover-bg) !important;
}

body.dark .ql-toolbar.ql-snow button.ql-active {
    background: var(--commentics-blue-light) !important;
}

/* Reply form'da Quill editor dark mode düzeltmeleri */
body.dark .reply-form .ql-toolbar.ql-snow .ql-stroke {
    stroke: var(--commentics-text) !important;
}

body.dark .reply-form .ql-toolbar.ql-snow .ql-fill {
    fill: var(--commentics-text) !important;
}

body.dark .reply-form .ql-toolbar.ql-snow button:hover {
    background: var(--commentics-hover-bg) !important;
}

body.dark .reply-form .ql-toolbar.ql-snow button.ql-active {
    background: var(--commentics-blue-light) !important;
}

/* Dark mode GIF button */
body.dark .ql-toolbar .ql-gif {
    background: var(--commentics-card-bg) !important;
    border-color: var(--commentics-border) !important;
}

body.dark .ql-toolbar .ql-gif:before {
    color: var(--commentics-text) !important;
}

body.dark .ql-toolbar .ql-gif:hover {
    background: var(--commentics-blue-light) !important;
    border-color: var(--commentics-primary) !important;
}

body.dark .ql-toolbar .ql-gif:hover:before {
    color: var(--commentics-primary) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .commentics-container {
        margin: 8px;
        padding: 12px;
    }
    
    /* Mobile pinned section */
    .commentics-pinned-section {
        margin-bottom: 24px;
        border-radius: 8px;
    }
    
    .commentics-pinned-header {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .commentics-pinned-comments {
        padding: 16px;
    }
    
    .commentics-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .commentics-auth {
        justify-content: center;
        gap: 8px;
    }
    
    /* Mobile reply depth system - improved spacing */
    .commentics-comment.reply.depth-1 {
        padding-left: 16px !important;
    }
    
    /* All replies from depth-2 onward back to main level - exactly like PC */
    .commentics-comment.reply.depth-2,
    .commentics-comment.reply.depth-3,
    .commentics-comment.reply.depth-4,
    .commentics-comment.reply.depth-5,
    .commentics-comment.reply.depth-6,
    .commentics-comment.reply.depth-7,
    .commentics-comment.reply.depth-8,
    .commentics-comment.reply.depth-9,
    .commentics-comment.reply.depth-10 {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    .commentics-comment-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .commentics-comment-user {
        flex: 1;
        min-width: 0;
        max-width: 70%;
    }

    .commentics-comment-actions {
        flex-shrink: 0;
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin-top: 0;
        align-self: flex-start;
        display: flex !important;
        gap: 8px !important;
    }
    
    .commentics-comment-footer {
        margin-top: 10px;
        padding-top: 8px;
    }
    
    /* Mobile spacing improvements - reduced gaps */
    .commentics-comments {
        gap: 16px;
    }
    
    .comment-replies {
        gap: 12px;
        margin-top: 14px;
    }
    
    /* Mobile font size improvements */
    .commentics-comment-name {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    .commentics-comment-date {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    .commentics-comment-content {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    /* Mobile reply form improvements */
    .reply-form {
        margin-top: 10px !important;
        padding: 14px !important;
        border-radius: 8px !important;
    }
    
    .reply-form-header {
        padding-bottom: 8px !important;
        margin-bottom: 10px !important;
    }
    
    .reply-form-header h4 {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    .close-reply {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
        text-align: center !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: var(--commentics-hover-bg) !important;
        border: 1px solid var(--commentics-border) !important;
        color: var(--commentics-text-muted) !important;
        transition: all 0.2s ease !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    .close-reply:hover {
        background: var(--commentics-danger) !important;
        color: white !important;
        border-color: var(--commentics-danger) !important;
    }
    
    /* Safari-specific fixes for close button */
    @supports (-webkit-appearance: none) {
        .close-reply {
            display: -webkit-flex !important;
            display: flex !important;
            -webkit-align-items: center !important;
            align-items: center !important;
            -webkit-justify-content: center !important;
            justify-content: center !important;
            -webkit-box-align: center !important;
            -webkit-box-pack: center !important;
        }
        
        .close-reply::before {
            content: "×" !important;
            display: block !important;
            line-height: 1 !important;
            font-weight: bold !important;
            font-size: 20px !important;
            margin: 0 !important;
            padding: 0 !important;
        }
    }
    
    .reply-form .ql-editor {
        min-height: 80px !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .reply-form .commentics-submit-btn,
    .reply-form .commentics-cancel-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        min-height: 44px !important;
    }
    
    .commentics-edit-actions .commentics-submit-btn,
    .commentics-edit-actions .commentics-cancel-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        min-height: 44px !important;
    }
    
    .reply-form-actions {
        gap: 10px !important;
        margin-top: 12px !important;
    }
    
    .commentics-modal-content {
        margin: 16px;
        padding: 20px;
    }
    
    /* Mobile touch target improvements */
    .commentics-reaction-btn {
        padding: 8px 12px !important;
        min-height: 36px !important;
        font-size: 13px !important;
    }
    
    .commentics-action-btn {
        min-width: 36px !important;
        min-height: 36px !important;
    }
}

@media (max-width: 480px) {
    .commentics-container {
        padding: 8px;
        margin: 4px;
    }
    
    /* Small screen pinned section */
    .commentics-pinned-section {
        margin-bottom: 20px;
        border-radius: 6px;
    }
    
    .commentics-pinned-header {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .commentics-pinned-comments {
        padding: 12px;
    }
    
    .commentics-login-btn {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 42px;
    }
    
    .commentics-action-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .commentics-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .commentics-comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .commentics-comment {
        padding: 0 !important;
    }
    
    /* Improved mobile font sizes */
    .commentics-comment-name {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    
    .commentics-comment-date {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    
    .commentics-comment-content {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
    
    /* Small screen reply spacing - consistent with tablet */
    .commentics-comment.reply.depth-1 {
        padding-left: 12px !important;
    }
    
    /* Small screen - depth-2+ back to main level exactly like PC */
    .commentics-comment.reply.depth-2,
    .commentics-comment.reply.depth-3,
    .commentics-comment.reply.depth-4,
    .commentics-comment.reply.depth-5,
    .commentics-comment.reply.depth-6,
    .commentics-comment.reply.depth-7,
    .commentics-comment.reply.depth-8,
    .commentics-comment.reply.depth-9,
    .commentics-comment.reply.depth-10 {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Reduced spacing for small screens */
    .commentics-comments {
        gap: 4px;
    }
    
    .commentics-comment-header {
        gap: 8px;
        margin-bottom: 6px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .commentics-comment-footer {
        padding-top: 4px;
    }
    
    /* Mobile collapse button */
    .replies-collapse-btn {
        font-size: 12px !important;
        padding: 6px 8px !important;
        min-height: 36px !important;
        margin: 4px !important;
    }
    
    /* Mobile reply banner */
    .commentics-replying-to {
        font-size: 9px !important;
        margin-bottom: 2px !important;
        gap: 2px !important;
    }

    .commentics-replying-to svg {
        width: 9px !important;
        height: 9px !important;
    }
    
    /* Mobile comment spacing */
    .commentics-comments {
        gap: 12px !important;
    }
    
    .comment-replies {
        gap: 12px !important;
        margin-top: 12px !important;
    }
    
    /* Mobile form improvements */
    .reply-form {
        padding: 12px !important;
    }
    
    .reply-form .ql-editor {
        min-height: 70px !important;
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    .reply-form .commentics-submit-btn,
    .reply-form .commentics-cancel-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 40px !important;
    }
    
    /* Mobile reaction buttons */
    .commentics-reaction-btn {
        padding: 8px 12px !important;
        min-height: 40px !important;
        font-size: 13px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    /* Mobile user badge adjustments */
    .commentics-user-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
        margin-left: 4px !important;
        border-radius: 8px !important;
    }
    
    /* Mobile comment badge adjustments */
    .commentics-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
        min-width: 16px !important;
        height: 16px !important;
    }
}

/* === SADSCANS CUSTOM UI IMPROVEMENTS === */

/* Pinned Comments Section */
.commentics-pinned-section {
    margin-bottom: 32px;
    border: 2px solid var(--commentics-gold);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 191, 36, 0.05));
    overflow: hidden;
}

.commentics-pinned-header {
    background: linear-gradient(135deg, var(--commentics-gold), #fbbf24);
    color: #92400e;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.commentics-pinned-header svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.commentics-pinned-comments {
    padding: 20px;
}

.commentics-pinned-comments .commentics-c {
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    margin-bottom: 0;
}

.commentics-pinned-comments .commentics-c:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Dark mode pinned section */
body.dark .commentics-pinned-section {
    border-color: var(--commentics-gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
}

body.dark .commentics-pinned-header {
    background: linear-gradient(135deg, var(--commentics-gold), #fbbf24);
    color: #92400e;
    border-bottom-color: rgba(245, 158, 11, 0.3);
}

body.dark .commentics-pinned-comments .commentics-c {
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

/* Regular Comments Section */
.commentics-regular-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
}

/* Pinned Copy Comments */
.commentics-pinned-copy {
    border: 2px solid var(--commentics-gold) !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 191, 36, 0.05)) !important;
    position: relative;
}

.commentics-pinned-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--commentics-gold), #fbbf24);
    border-radius: 8px 8px 0 0;
}

.commentics-copy-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--commentics-text-muted);
    margin-left: auto;
    padding: 4px 8px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 4px;
    font-weight: 500;
}

.commentics-copy-notice svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Dark mode pinned copy */
body.dark .commentics-pinned-copy {
    border-color: var(--commentics-gold) !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1)) !important;
}

body.dark .commentics-copy-notice {
    background: rgba(107, 114, 128, 0.2);
    color: var(--commentics-text-muted);
}

/* 1. Remove reply line decoration */
.commentics-reply-line {
  display: none !important;
}

/* 2. Reply indentation - Sadece padding-left ile */
.commentics-comment.reply.depth-1 {
  padding-left: 36px !important;
  border-left: none;
  background: transparent;
}

.commentics-comment.reply.depth-2 {
  padding-left: 52px !important;
  border-left: none;
  background: transparent;
}

@media (max-width: 768px) {
    .commentics-comment.reply.depth-1 {
            padding-left: 12px !important;
    }

    .commentics-comment.reply.depth-2 {
        padding-left: 16px !important;
    }
}

/* Mobile overrides - now using PC logic: depth-1 indented, depth-2+ back to main level */

/* 3. Deep replies - ana yorum seviyesinde (already handled above) */

/* 4. Reply banner styling - kullanıcı adının üstünde */
.commentics-replying-to {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--commentics-text-muted);
  margin-bottom: 4px;
  opacity: 0.8;
}

.commentics-replying-to svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.replying-to-user {
  font-weight: 600;
  color: var(--commentics-primary);
}

/* 5. Remove shadows from comments */
.commentics-comment,
.commentics-comment:hover {
  box-shadow: none !important;
}

/* 6. Dark mode - no shadows and reaction colors */
body.dark .commentics-comment {
  box-shadow: none !important;
}

/* Dark mode reaction button colors */
body.dark .commentics-reaction-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

body.dark .commentics-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #60a5fa !important;
  color: #60a5fa !important;
}

body.dark .commentics-reaction-btn.active {
  background: rgba(96, 165, 250, 0.2) !important;
  border-color: #60a5fa !important;
  color: #60a5fa !important;
}

body.dark .commentics-reaction-btn svg path {
  fill: currentColor !important;
}

body.dark .commentics-reaction-btn .count {
  color: inherit !important;
}

/* Dark mode reply banner */
body.dark .commentics-replying-to {
  color: rgba(156, 163, 175, 0.9) !important;
}

body.dark .replying-to-user {
  color: #60a5fa !important;
}

/* Dark mode footer border */
body.dark .commentics-comment-footer {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark mode dropdown */
body.dark .comment-dropdown {
  background: var(--commentics-card-bg);
  border-color: var(--commentics-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark .dropdown-item {
  color: var(--commentics-text);
}

body.dark .dropdown-item:hover {
  background: var(--commentics-hover-bg);
}

/* Dark mode dropdown icon colors */
body.dark .dropdown-item.edit svg {
  color: #34d399; /* Açık yeşil dark mode'da */
}

body.dark .dropdown-item.edit:hover svg {
  color: #10b981; /* Hover'da daha koyu */
}

body.dark .dropdown-item.delete svg {
  color: #f87171; /* Açık kırmızı dark mode'da */
}

body.dark .dropdown-item.delete:hover svg {
  color: #ef4444; /* Hover'da daha koyu */
}

body.dark .dropdown-item.pin svg {
  color: #fbbf24; /* Açık turuncu dark mode'da */
}

body.dark .dropdown-item.pin:hover svg {
  color: #f59e0b; /* Hover'da daha koyu */
}

body.dark .dropdown-item.ban svg {
  color: #f87171; /* Açık kırmızı dark mode'da */
}

body.dark .dropdown-item.ban:hover svg {
  color: #ef4444; /* Hover'da daha koyu */
}

body.dark .commentics-action-btn.more {
  background: rgba(107, 114, 128, 0.15);
  color: var(--commentics-text-muted);
  border-color: rgba(107, 114, 128, 0.3);
}

body.dark .commentics-action-btn.more:hover {
  background: rgba(107, 114, 128, 0.25);
  color: var(--commentics-text);
  border-color: rgba(107, 114, 128, 0.5);
}

body.dark .commentics-reaction-btn.reply {
  background: var(--commentics-card-bg);
  color: var(--commentics-text);
  border-color: var(--commentics-border);
  height: 36px; /* 32px'den 36px'e artırıldı */
  min-height: 36px; /* 32px'den 36px'e artırıldı */
}

body.dark .commentics-reaction-btn.reply:hover {
  background: var(--commentics-hover-bg);
  border-color: var(--commentics-primary);
  color: var(--commentics-primary);
}

body.dark .commentics-reaction-btn.reply .icon svg {
  color: #60a5fa; /* Açık mavi dark mode'da */
}

body.dark .commentics-reaction-btn.reply:hover .icon svg {
  color: var(--commentics-primary);
}

/* Dark mode collapse button */
body.dark .replies-collapse-btn {
  color: var(--commentics-primary);
}

body.dark .replies-collapse-btn:hover {
  background: var(--commentics-blue-light);
  color: var(--commentics-primary-hover);
}

/* 7. Flex yapısında margin temizliği - Güçlü override */
.commentics-comment,
.commentics-comment.reply,
.commentics-comment + .commentics-comment,
.commentics-comment.reply + .commentics-comment.reply,
.commentics-comment.reply:first-child,
.commentics-comment.reply:last-child,
.commentics-comment:not(.reply),
.commentics-comment:not(.reply) + .commentics-comment:not(.reply) {
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Reply container - Flex yapısı */
.comment-replies {
    margin-top: 20px; /* 16px'den 20px'e artırıldı */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 18px; /* 16px'den 18px'e artırıldı */
}

/* Reply Collapse System */
.replies-collapse-btn {
    background: none;
    border: none;
    color: var(--commentics-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.replies-collapse-btn:hover {
    background: var(--commentics-blue-light);
    color: var(--commentics-primary-hover);
}

.replies-collapse-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.replies-collapse-btn.expanded svg {
    transform: rotate(180deg);
}

.replies-hidden {
    display: none !important;
}

.replies-visible {
    display: flex !important;
}

/* Reply wrapper for collapse system */
.reply-wrapper {
    width: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.reply-hidden {
    display: none !important;
}

.reply-visible {
    display: block !important;
}

/* Hidden replies group container */
.hidden-replies-group {
    width: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Smooth animations for jQuery slideUp/slideDown */
.reply-wrapper.reply-hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.reply-wrapper.reply-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reply form gap sistemi ile uyumlu */
.comment-replies .reply-form {
  margin-top: 10px !important;
}

/* END SADSCANS CUSTOM UI IMPROVEMENTS */

/* --- SAFARI ACTION BUTTON FIX --- */
.commentics-comment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10; /* Safari için artırıldı */
  background: transparent;
}

.commentics-action-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0;
  background: none;
  z-index: 11; /* Safari için artırıldı */
}

/* Safari'de overflow ve flex uyumluluğu için */
@media not all and (min-resolution:.001dpcm) { @supports (-webkit-appearance:none) {
  .commentics-comment-actions {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -webkit-align-items: center !important;
    align-items: center !important;
    -webkit-box-pack: end !important;
    -webkit-justify-content: flex-end !important;
    justify-content: flex-end !important;
    z-index: 10 !important;
  }
}}

/* --- X (close) icon ortalama ve dokunmatik için --- */
.commentics-edit-close, .close-reply {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  font-weight: bold !important;
  background: var(--commentics-hover-bg) !important;
  border: 1px solid var(--commentics-border) !important;
  color: var(--commentics-text-muted) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  z-index: 20 !important;
}

.commentics-edit-close:hover, .close-reply:hover {
  background: var(--commentics-danger) !important;
  color: white !important;
  border-color: var(--commentics-danger) !important;
}

.commentics-edit-close svg, .close-reply svg {
  display: block;
  margin: auto;
  width: 20px !important;
  height: 20px !important;
  pointer-events: none;
}

/* Safari-specific close button fixes */
@supports (-webkit-appearance: none) {
  .commentics-edit-close, .close-reply {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-align-items: center !important;
    align-items: center !important;
    -webkit-justify-content: center !important;
    justify-content: center !important;
    -webkit-box-align: center !important;
    -webkit-box-pack: center !important;
  }
  
  .commentics-edit-close::before, .close-reply::before {
    content: "×" !important;
    display: block !important;
    line-height: 1 !important;
    font-weight: bold !important;
    font-size: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

.commentics-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--commentics-gold, #fbbf24);
    color: #222;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: none;
    border: none;
}

.commentics-pin-badge svg {
    width: 13px;
    height: 13px;
    margin-right: 2px;
}

/* Asıl yorumda pinned vurgusu olmasın */
.commentics-comment.pinned,
.commentics-pinned-copy,
.commentics-pinned-copy-simple {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.commentics-pinned-above-form {
    margin-bottom: 18px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.commentics-pin-info-simple {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--commentics-gold, #fbbf24);
    margin-bottom: 2px;
    background: none;
    border: none;
    box-shadow: none;
}

.commentics-pinned-copy-simple {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0;
    padding: 0;
}

.commentics-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--commentics-gold, #fbbf24);
    color: #222;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: none;
    border: none;
}

.commentics-pin-badge svg {
    width: 13px;
    height: 13px;
    margin-right: 2px;
}

.commentics-comment.pinned,
.commentics-pinned-copy,
.commentics-pinned-copy-simple {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Modern Pinned Top UI */
.commentics-pinned-above-form {
    margin: 32px 0 24px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: none;
    border: none;
}

.commentics-pinned-top-box {
    background: linear-gradient(135deg, rgba(251,191,36,0.18) 0%, rgba(245,158,11,0.12) 100%);
    border: 1.5px solid var(--commentics-gold, #fbbf24);
    border-radius: 16px;
    box-shadow: 0 4px 24px 0 rgba(251,191,36,0.10), 0 1.5px 0 0 var(--commentics-gold, #fbbf24);
    padding: 24px 32px 20px 32px;
    position: relative;
    margin-bottom: 0;
    transition: box-shadow 0.2s;
}

.commentics-pinned-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(90deg, var(--commentics-gold, #fbbf24) 60%, #fde68a 100%);
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    padding: 5px 18px 5px 12px;
    box-shadow: 0 2px 8px rgba(251,191,36,0.10);
    position: absolute;
    top: -18px;
    left: 24px;
    z-index: 2;
    letter-spacing: 0.2px;
    border: 1.5px solid #fbbf24;
}

.commentics-pinned-top-badge svg {
    width: 18px;
    height: 18px;
    color: #92400e;
    filter: drop-shadow(0 1px 2px rgba(146, 64, 14, 0.3));
}

@media (max-width: 600px) {
    .commentics-pinned-top-box {
        padding: 14px 8px 14px 8px;
    }
    .commentics-pinned-top-badge {
        left: 8px;
        font-size: 13px;
        padding: 4px 10px 4px 8px;
    }
}

/* Yorum yaz ve yorumlar başlığı arasına boşluk */
.commentics-form {
    margin-top: 32px !important;
}

/* SADSCANS: Devamını Göster butonu UI override */
.show-more-btn,
.show-less-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 100%;
    margin: 12px 0 8px 0;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    background: var(--commentics-card-bg, #23272f);
    color: var(--commentics-primary, #3b82f6);
    border: 1px solid var(--commentics-border, #3b82f6);
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.show-more-btn:hover,
.show-less-btn:hover {
    background: var(--commentics-primary, #3b82f6);
    color: #fff;
    border-color: var(--commentics-primary, #3b82f6);
}

.comment-content-preview,
.comment-content-full {
    margin-bottom: 8px !important;
    word-break: break-word;
    text-align: left;
}

@media (max-width: 768px) {
    .show-more-btn,
    .show-less-btn {
        font-size: 16px !important;
        padding: 14px 24px !important;
        min-width: 90vw !important;
        margin: 16px 0 12px 0 !important;
    }
    .comment-content-preview,
    .comment-content-full {
        font-size: 15px !important;
    }
}