/* ========================================
   REACTIONS & COMMENTS STYLES
======================================== */

/* Reactions Container */
.reactions-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(14, 36, 53, 0.4);
    border-radius: 8px;
}

.reactions-buttons {
    display: flex;
    gap: 8px;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(86, 176, 255, 0.1);
    border: 1px solid rgba(86, 176, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.reaction-btn:hover {
    background: rgba(86, 176, 255, 0.2);
    border-color: rgba(86, 176, 255, 0.4);
    transform: translateY(-2px);
}

.reaction-btn.active {
    background: rgba(86, 176, 255, 0.3);
    border-color: #56b0ff;
    box-shadow: 0 0 10px rgba(86, 176, 255, 0.3);
}

.reaction-emoji {
    font-size: 18px;
}

.reaction-count {
    font-size: 12px;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

.reaction-animate {
    animation: reactionPop 0.6s ease;
}

@keyframes reactionPop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.reactions-total {
    font-size: 12px;
    color: #888;
    margin-left: auto;
}

/* Comments Container */
.comments-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(14, 36, 53, 0.4);
    border-radius: 12px;
}

.comments-title {
    color: #56b0ff;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Comment Form */
.comment-form {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(86, 176, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #56b0ff;
    box-shadow: 0 0 10px rgba(86, 176, 255, 0.2);
}

.login-prompt {
    text-align: center;
    padding: 20px;
    color: #888;
}

.login-prompt a {
    color: #56b0ff;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-comments {
    text-align: center;
    color: #888;
    padding: 20px;
}

/* Comment */
.comment {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid rgba(86, 176, 255, 0.3);
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(86, 176, 255, 0.3);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: bold;
    color: #56b0ff;
}

.comment-time {
    font-size: 12px;
    color: #888;
}

.comment-text {
    color: #ddd;
    margin-bottom: 10px;
    line-height: 1.5;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-reply-btn,
.comment-delete-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.comment-reply-btn:hover {
    color: #56b0ff;
    background: rgba(86, 176, 255, 0.1);
}

.comment-delete-btn:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

/* Comment Replies */
.comment-replies {
    margin-top: 15px;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid rgba(86, 176, 255, 0.2);
}

.comment-replies .comment {
    background: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .reactions-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .reactions-buttons {
        flex-wrap: wrap;
    }

    .reaction-btn {
        padding: 6px 10px;
    }

    .comment {
        flex-direction: column;
    }

    .comment-avatar img {
        width: 35px;
        height: 35px;
    }

    .comment-replies {
        margin-left: 10px;
        padding-left: 10px;
    }
}