/* css/comments.css (GÜNCELLENMİŞ HALİ) */

.comments-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border-color);
}

.comments-container h2 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.comment-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
}

.comment-box {
    background-color: var(--glass-input-bg);
    border-radius: 8px;
    padding: 10px 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-username {
    font-weight: bold;
    color: var(--text-main);
    font-size: 0.9em;
}

.comment-date {
    font-size: 0.75em;
    color: #aaa;
}

.comment-body {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.9;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 8px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px;
}
.comment-action-btn:hover {
    color: #fff;
}
.comment-action-btn.like-btn.liked {
    color: #f0567b;
}

.comment-replies {
    margin-top: 15px;
    padding-left: 25px;
    border-left: 2px solid var(--glass-border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reply-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--glass-border-color);
    animation: fadeInReply 0.4s ease-out;
}

.reply-form textarea {
    min-height: 70px;
    font-size: 0.9em;
    width: 100%;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* Yanıt formunun yumuşak bir şekilde görünmesini sağlayan animasyon */
@keyframes fadeInReply {
  from { 
    opacity: 0;
    transform: translateY(-10px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

#commentForm textarea {
    min-height: 80px;
    margin-bottom: 10px;
}

#commentForm .button {
    display: block;
    margin-left: auto;
}

.login-for-comment {
    text-align: center;
    padding: 20px;
    background-color: var(--glass-input-bg);
    border-radius: 8px;
    font-size: 0.9em;
}

.login-for-comment a {
    color: #f7c843;
    font-weight: bold;
}
/* css/comments.css dosyasının sonuna eklenecek */

.comment-action-btn.block-btn {
    color: #f44336; /* Kırmızı renk */
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

.comment-action-btn.block-btn:hover {
    opacity: 1;
    color: #ff5252; /* Üzerine gelince daha parlak bir kırmızı */
    text-decoration: underline;
}
/* css/public_profile.css dosyasının sonuna eklenecek */

.profile-actions .block-btn {
    background-color: #f44336;
    border: 1px solid #f44336;
    color: white;
}

.profile-actions .block-btn:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.profile-actions .block-btn:disabled {
    background-color: #757575;
    border-color: #757575;
    cursor: not-allowed;
}
/* css/comments.css dosyasının en sonuna ekleyin */

/* Yanıt Veriliyor Bilgi Kutusu */
.replying-to-container {
    background-color: rgba(166, 120, 242, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(166, 120, 242, 0.3);
    animation: fadeInReply 0.3s ease-out;
}

.cancel-reply-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cancel-reply-btn:hover {
    opacity: 1;
}

/* Yorum kutusu odaklandığında belirginleştirme */
#commentForm textarea:focus {
    border-color: #a678f2;
    box-shadow: 0 0 10px rgba(166, 120, 242, 0.5);
}

/* Yanıt formunun yumuşak bir şekilde görünmesini sağlayan animasyon */
@keyframes fadeInReply {
  from { 
    opacity: 0;
    transform: translateY(-10px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}