/* Paragraf Yorum Sistemi CSS - Compact Version */

.paragraph-comment-wrapper {
    margin: 8px 0; /* Daha az margin */
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.paragraph-comment-wrapper .paragraph-content {
    flex: 1;
}

.paragraph-comment-wrapper .comment-button-container {
    flex-shrink: 0;
    margin-top: 5px;
}

.paragraph-comment-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 4px 10px; /* Daha küçük padding */
    border-radius: 12px; /* Daha küçük border-radius */
    cursor: pointer;
    font-size: 12px; /* Daha küçük font */
    display: inline-flex;
    align-items: center;
    gap: 3px; /* Daha az gap */
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Daha hafif gölge */
    line-height: 1;
	height: 40px;
}

.paragraph-comment-btn:hover {
    background: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.paragraph-comment-btn .comment-icon {
    font-size: 12px; /* Daha küçük icon */
}

.paragraph-comment-btn .comment-count {
    color: white;
    border-radius: 50%;
    padding: 1px 4px; /* Daha küçük padding */
    font-size: 10px; /* Daha küçük font */
    min-width: 14px; /* Daha küçük genişlik */
    text-align: center;
    margin-left: 3px;
    line-height: 1.2;
}

.paragraph-comments-container {
    border-radius: 8px; /* Daha küçük border-radius */
    margin-top: 8px; /* Daha az margin */
    padding: 15px; /* Daha az padding */
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    max-width: 600px;
}

.existing-comments {
    margin-bottom: 15px; /* Daha az margin */
    max-height: 250px; /* Daha küçük max-height */
    overflow-y: auto;
}

.comment-item {
    background: #34495e;
    padding: 10px; /* Daha az padding */
    margin-bottom: 8px; /* Daha az margin */
    border-radius: 6px; /* Daha küçük border-radius */
    border-left: 3px solid #3498db; /* Daha ince border */
    position: relative;
}

.comment-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.comment-delete-btn:hover {
    background: #c0392b;
}

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

.comment-author {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 4px; /* Daha az margin */
    font-size: 13px; /* Daha küçük font */
}

.comment-text {
    color: #ecf0f1;
    line-height: 1.3; /* Daha sıkı line-height */
    margin-bottom: 6px; /* Daha az margin */
    font-size: 13px; /* Daha küçük font */
}

.comment-date {
    color: #95a5a6;
    font-size: 11px; /* Daha küçük font */
    text-align: right;
}

.comment-form {
    border-top: 1px solid #34495e;
    padding-top: 12px; /* Daha az padding */
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 8px; /* Daha az padding */
    margin-bottom: 8px; /* Daha az margin */
    border: 1px solid #34495e;
    border-radius: 4px; /* Daha küçük border-radius */
    background: #34495e;
    color: #ecf0f1;
    font-size: 13px; /* Daha küçük font */
    font-family: inherit;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #95a5a6;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    background: #3c5568;
}

.comment-form textarea {
    min-height: 60px; /* Daha küçük min-height */
    resize: vertical;
}

.submit-comment-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px; /* Daha küçük padding */
    border-radius: 4px; /* Daha küçük border-radius */
    cursor: pointer;
    font-size: 13px; /* Daha küçük font */
    transition: background 0.3s ease;
    float: right;
}

.submit-comment-btn:hover {
    background: #2ecc71;
}

.submit-comment-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Mesaj bildirimleri */
.paragraph-comment-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px; /* Daha küçük padding */
    border-radius: 4px; /* Daha küçük border-radius */
    color: white;
    z-index: 9999;
    display: none;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    font-size: 13px; /* Daha küçük font */
}

.paragraph-comment-message.success {
    background: #27ae60;
}

.paragraph-comment-message.error {
    background: #e74c3c;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .paragraph-comment-wrapper {
        flex-direction: column;
        gap: 5px;
    }
    
    .paragraph-comment-wrapper .comment-button-container {
        align-self: flex-end;
        margin-top: 0;
    }
    
    .paragraph-comments-container {
        margin: 8px -10px; /* Daha az margin */
        border-radius: 0;
        padding: 12px; /* Daha az padding */
    }
    
    .paragraph-comment-btn {
        font-size: 11px; /* Daha küçük font */
        padding: 3px 8px; /* Daha küçük padding */
    }
    
    .paragraph-comment-btn .comment-icon {
        font-size: 11px;
    }
    
    .paragraph-comment-btn .comment-count {
        font-size: 9px;
        padding: 1px 3px;
        min-width: 12px;
    }
    
    .comment-form input,
    .comment-form textarea {
        font-size: 16px; /* iOS zoom önleme */
        padding: 6px;
    }
    
    .paragraph-comment-message {
        left: 10px;
        right: 10px;
        top: 10px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .comment-delete-btn {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* Scrollbar stilleri */
.existing-comments::-webkit-scrollbar {
    width: 4px; /* Daha ince scrollbar */
}

.existing-comments::-webkit-scrollbar-track {
    background: #2c3e50;
}

.existing-comments::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 2px;
}       

.existing-comments::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px); /* Daha az hareket */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item {
    animation: slideIn 0.2s ease; /* Daha hızlı animasyon */
}

/* Emoji butonları (isteğe bağlı) */
.emoji-buttons {
    margin-bottom: 8px;
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 14px; /* Daha küçük emoji */
    padding: 3px; /* Daha küçük padding */
    cursor: pointer;
    border-radius: 3px;
    margin-right: 3px;
}

.emoji-btn:hover {
    background: #3c5568;
}

/* Yükleme animasyonu */
.loading {
    display: inline-block;
    width: 12px; /* Daha küçük loading icon */
    height: 12px;
    border: 1px solid #95a5a6;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ekstra compact seçenek - isteğe bağlı */
.paragraph-comment-btn.ultra-compact {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 8px;
}

.paragraph-comment-btn.ultra-compact .comment-icon {
    font-size: 10px;
}

.paragraph-comment-btn.ultra-compact .comment-count {
    font-size: 8px;
    padding: 0px 3px;
    min-width: 12px;
}