/* Yorum Görüntüleme Stilleri - Site Temasıyla Uyumlu */
.comment-content {
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* Markdown Elementleri */
.comment-content h1,
.comment-content h2,
.comment-content h3,
.comment-content h4,
.comment-content h5,
.comment-content h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.comment-content h1 {
    font-size: 1.5rem;
}

.comment-content h2 {
    font-size: 1.4rem;
}

.comment-content h3 {
    font-size: 1.3rem;
}

.comment-content h4 {
    font-size: 1.2rem;
}

.comment-content h5 {
    font-size: 1.1rem;
}

.comment-content h6 {
    font-size: 1rem;
}

.comment-content p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

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

/* Kalın ve İtalik */
.comment-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.comment-content em {
    font-style: italic;
    color: var(--text-color);
}

.comment-content del {
    text-decoration: line-through;
    opacity: 0.7;
    color: var(--description-color);
}

/* Kod Blokları - Site Temasıyla Uyumlu */
.comment-content code {
    background-color: rgba(108, 117, 125, 0.1);
    color: #e83e8c;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 0.875em;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.comment-content pre {
    background-color: rgba(108, 117, 125, 0.05);
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-size: 0.875rem;
    color: var(--text-color);
}

.comment-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    border: none;
}

/* Alıntılar - Site Temasıyla Uyumlu */
.comment-content blockquote {
    border-left: 4px solid #0d6efd;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    color: var(--description-color);
    font-style: italic;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 0 0.375rem 0.375rem 0;
    position: relative;
}

.comment-content blockquote::before {
    content: '"';
    font-size: 2rem;
    color: rgba(13, 110, 253, 0.3);
    position: absolute;
    left: 0.5rem;
    top: -0.5rem;
    font-family: serif;
}

/* Listeler */
.comment-content ul,
.comment-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.comment-content li {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.comment-content ul li::marker {
    color: #0d6efd;
}

.comment-content ol li::marker {
    color: #0d6efd;
    font-weight: 600;
}

/* Bağlantılar - Site Temasıyla Uyumlu */
.comment-content a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.comment-content a:hover {
    color: #0b5ed7;
    text-decoration: none;
    border-bottom-color: #0b5ed7;
}

/* Tablolar - Site Temasıyla Uyumlu */
.comment-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    font-size: 0.875rem;
    background-color: var(--card-bg);
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--card-shadow);
}

.comment-content th,
.comment-content td {
    border: 1px solid rgba(108, 117, 125, 0.2);
    padding: 0.75rem;
    text-align: left;
    color: var(--text-color);
}

.comment-content th {
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: 600;
    color: var(--text-color);
}

.comment-content tbody tr:nth-child(even) {
    background-color: rgba(108, 117, 125, 0.05);
}

.comment-content tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Dark Mode Desteği - Site Temasıyla Uyumlu */
[data-theme="dark"] .comment-content code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff6b9d;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .comment-content pre {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

[data-theme="dark"] .comment-content blockquote {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--description-color);
    border-left-color: #0d6efd;
}

[data-theme="dark"] .comment-content blockquote::before {
    color: rgba(13, 110, 253, 0.4);
}

[data-theme="dark"] .comment-content th {
    background-color: rgba(13, 110, 253, 0.2);
}

[data-theme="dark"] .comment-content th,
[data-theme="dark"] .comment-content td {
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .comment-content tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .comment-content tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

[data-theme="dark"] .comment-content a {
    color: #6ea8fe;
}

[data-theme="dark"] .comment-content a:hover {
    color: #9ec5fe;
    border-bottom-color: #9ec5fe;
}

/* Profil Sayfası Yorum Stilleri */
.profile-comment-item {
    transition: all 0.3s ease;
    padding: 0.75rem 0.5rem;
    margin: 0 -0.5rem 0.75rem -0.5rem;
    border-radius: 0.375rem;
}

.profile-comment-item:hover {
    background-color: rgba(13, 110, 253, 0.02);
    transform: translateX(3px);
}

[data-theme="dark"] .profile-comment-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.profile-comment-content {
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.profile-comment-content.truncated {
    max-height: 150px;
    overflow: hidden;
}

.profile-comment-content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--card-bg, #ffffff));
    pointer-events: none;
}

[data-theme="dark"] .profile-comment-content.truncated::after {
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.03));
}

.profile-comment-content.expanded {
    max-height: none;
}

.profile-comment-content.expanded::after {
    display: none;
}

.profile-comment-content h1,
.profile-comment-content h2,
.profile-comment-content h3,
.profile-comment-content h4,
.profile-comment-content h5,
.profile-comment-content h6 {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.profile-comment-content p {
    margin-bottom: 0.5rem;
}

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

.profile-comment-content code {
    font-size: 0.8rem;
    padding: 0.1rem 0.2rem;
}

.profile-comment-content pre {
    font-size: 0.8rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
    max-height: 100px;
    overflow-y: auto;
}

.profile-comment-content blockquote {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
}

.profile-comment-content blockquote::before {
    font-size: 1.2rem;
    left: 0.25rem;
    top: -0.25rem;
}

.profile-comment-content ul,
.profile-comment-content ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.profile-comment-content li {
    margin-bottom: 0.125rem;
}

.profile-comment-content table {
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.profile-comment-content th,
.profile-comment-content td {
    padding: 0.375rem 0.5rem;
}

/* Expand/Collapse butonu */
.comment-expand-btn {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-expand-btn:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

[data-theme="dark"] .comment-expand-btn {
    color: #6ea8fe;
}

[data-theme="dark"] .comment-expand-btn:hover {
    color: #9ec5fe;
}

/* Anime başlığı hover efekti */
.profile-comment-item h6 a {
    transition: all 0.3s ease;
}

.profile-comment-item h6 a:hover {
    color: #0d6efd !important;
    transform: translateX(3px);
}

.profile-comment-item h6 a:hover i {
    transform: scale(1.1);
}

[data-theme="dark"] .profile-comment-item h6 a:hover {
    color: #6ea8fe !important;
}

/* Responsive Tasarım - Site Temasıyla Uyumlu */
@media (max-width: 768px) {
    .comment-content {
        font-size: 0.9rem;
    }

    .comment-content h1 {
        font-size: 1.3rem;
    }

    .comment-content h2 {
        font-size: 1.2rem;
    }

    .comment-content h3 {
        font-size: 1.1rem;
    }

    .comment-content h4 {
        font-size: 1rem;
    }

    .comment-content h5 {
        font-size: 0.95rem;
    }

    .comment-content h6 {
        font-size: 0.9rem;
    }

    .comment-content pre {
        padding: 0.75rem;
        font-size: 0.8rem;
        margin: 0.75rem 0;
    }

    .comment-content blockquote {
        padding: 0.5rem 0.75rem;
        margin: 0.75rem 0;
        font-size: 0.85rem;
    }

    .comment-content blockquote::before {
        font-size: 1.5rem;
        left: 0.25rem;
        top: -0.25rem;
    }

    .comment-content table {
        font-size: 0.8rem;
        margin: 0.75rem 0;
    }

    .comment-content th,
    .comment-content td {
        padding: 0.5rem 0.375rem;
    }

    /* Editör Mobil Uyumluluğu */
    .comment-editor-wrapper {
        padding: 0.75rem;
    }

    .comment-textarea {
        min-height: 120px;
        font-size: 0.9rem;
    }

    .editor-toolbar {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .editor-toolbar .btn-group {
        margin-bottom: 0.25rem;
    }

    .editor-toolbar .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }

    .emoji-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 0.125rem;
    }

    .emoji-item {
        padding: 0.375rem;
        font-size: 1rem;
    }

    .editor-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .preview-content {
        padding: 0.75rem;
        min-height: 150px;
        font-size: 0.85rem;
    }

    #submitComment {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Karakter sayacı mobilde */
    #char-count {
        font-size: 0.8rem;
    }
}

/* Tablet boyutları için */
@media (min-width: 769px) and (max-width: 1024px) {
    .comment-editor-wrapper {
        padding: 0.875rem;
    }

    .comment-textarea {
        min-height: 140px;
    }

    .emoji-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .preview-content {
        min-height: 180px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    .comment-content {
        font-size: 0.85rem;
    }

    .comment-content h1 {
        font-size: 1.2rem;
    }

    .comment-content h2 {
        font-size: 1.1rem;
    }

    .comment-content h3 {
        font-size: 1rem;
    }

    .comment-content h4 {
        font-size: 0.95rem;
    }

    .comment-content h5 {
        font-size: 0.9rem;
    }

    .comment-content h6 {
        font-size: 0.85rem;
    }

    .comment-editor-wrapper {
        padding: 0.5rem;
        margin: 0 -0.25rem;
    }

    .comment-textarea {
        min-height: 100px;
        font-size: 0.85rem;
    }

    .editor-toolbar .btn-group .btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }

    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .emoji-item {
        padding: 0.25rem;
        font-size: 0.9rem;
    }

    .preview-content {
        padding: 0.5rem;
        min-height: 120px;
        font-size: 0.8rem;
    }

    .editor-tabs .nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Mobilde tablo kaydırma */
    .comment-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .comment-content th,
    .comment-content td {
        padding: 0.25rem;
        min-width: 80px;
    }
}

/* Yorum Editörü Stilleri - Site Temasıyla Uyumlu */
.comment-editor-wrapper {
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px var(--card-shadow);
    transition: all 0.3s ease;
}

.comment-editor-wrapper:hover {
    box-shadow: 0 4px 10px var(--card-shadow);
}

.comment-textarea {
    border: none;
    resize: vertical;
    min-height: 150px;
    background-color: transparent;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    box-shadow: none;
    border-color: transparent;
    outline: none;
}

.comment-textarea::placeholder {
    color: var(--description-color);
    opacity: 0.8;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
    margin-bottom: 0.5rem;
}

.editor-toolbar .btn-group .btn {
    border-color: rgba(108, 117, 125, 0.3);
    color: var(--text-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.editor-toolbar .btn-group .btn:hover {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-1px);
}

.editor-toolbar .btn-group .btn:active {
    background-color: rgba(13, 110, 253, 0.2);
    border-color: #0d6efd;
    color: #0d6efd;
}

/* Emoji Seçici - Site Temasıyla Uyumlu */
.emoji-picker {
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px var(--card-shadow);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.25rem;
}

.emoji-item {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.emoji-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    transform: scale(1.1);
}

/* Tab Stilleri - Site Temasıyla Uyumlu */
.editor-tabs .nav-tabs {
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
}

.editor-tabs .nav-link {
    border: 1px solid transparent;
    color: var(--description-color);
    background-color: transparent;
    transition: all 0.3s ease;
    border-radius: 0.375rem 0.375rem 0 0;
}

.editor-tabs .nav-link:hover {
    border-color: rgba(13, 110, 253, 0.3);
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.editor-tabs .nav-link.active {
    color: #0d6efd;
    background-color: var(--card-bg);
    border-color: rgba(108, 117, 125, 0.2);
    border-bottom-color: var(--card-bg);
    font-weight: 600;
}

/* Önizleme İçeriği */
.preview-content {
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 200px;
    padding: 1rem;
    background-color: rgba(108, 117, 125, 0.02);
    border-radius: 0.375rem;
    border: 1px solid rgba(108, 117, 125, 0.1);
}

.preview-content h1,
.preview-content h2,
.preview-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.preview-content blockquote {
    border-left: 4px solid #0d6efd;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    color: var(--description-color);
    font-style: italic;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 0 0.375rem 0.375rem 0;
}

.preview-content code {
    background-color: rgba(108, 117, 125, 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.preview-content pre {
    background-color: rgba(108, 117, 125, 0.05);
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    border: 1px solid rgba(108, 117, 125, 0.2);
    color: var(--text-color);
}

.preview-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    border: none;
}

/* Karakter Sayacı - Site Temasıyla Uyumlu */
#char-count {
    font-weight: 600;
    transition: color 0.3s ease;
}

#char-count.warning {
    color: #fd7e14 !important;
}

#char-count.danger {
    color: #dc3545 !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Gönder Butonu - Site Temasıyla Uyumlu */
#submitComment {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

#submitComment:hover:not(:disabled) {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
}

#submitComment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Dark Mode Desteği - Site Temasıyla Uyumlu */
[data-theme="dark"] .comment-editor-wrapper {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.125);
}

[data-theme="dark"] .editor-toolbar {
    border-bottom-color: rgba(255, 255, 255, 0.125);
}

[data-theme="dark"] .editor-toolbar .btn-group .btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

[data-theme="dark"] .editor-toolbar .btn-group .btn:hover {
    background-color: rgba(13, 110, 253, 0.2);
    border-color: #6ea8fe;
    color: #6ea8fe;
}

[data-theme="dark"] .emoji-picker {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.125);
    backdrop-filter: blur(15px);
}

[data-theme="dark"] .emoji-item:hover {
    background-color: rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.4);
}

[data-theme="dark"] .editor-tabs .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.125);
}

[data-theme="dark"] .editor-tabs .nav-link:hover {
    border-color: rgba(13, 110, 253, 0.4);
    color: #6ea8fe;
    background-color: rgba(13, 110, 253, 0.1);
}

[data-theme="dark"] .editor-tabs .nav-link.active {
    color: #6ea8fe;
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.125);
    border-bottom-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .preview-content {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .preview-content blockquote {
    background-color: rgba(13, 110, 253, 0.1);
    border-left-color: #6ea8fe;
}

[data-theme="dark"] .preview-content code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff6b9d;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .preview-content pre {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}