/* =================================================================
   DISCUSSION SYSTEM STYLES
   Reddit-style threaded discussions
   ================================================================= */

/* Vote Controls */
.vote-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.vote-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2em;
    cursor: pointer;
    padding: 2px 8px;
    transition: color 0.2s ease, transform 0.1s ease;
}

.vote-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.vote-btn.upvote.active {
    color: #ff6b35;
}

.vote-btn.downvote.active {
    color: #9494ff;
}

.score {
    font-weight: bold;
    font-size: 1.1em;
    color: #e0d5c1;
}

/* Small vote controls for comments */
.vote-controls-small {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vote-btn-sm {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.vote-btn-sm:hover {
    color: rgba(255, 255, 255, 0.8);
}

.vote-btn-sm.upvote.active {
    color: #ff6b35;
}

.vote-btn-sm.downvote.active {
    color: #9494ff;
}

.score-sm {
    font-weight: bold;
    font-size: 0.95em;
    color: #e0d5c1;
    min-width: 20px;
    text-align: center;
}

/* Post Styles */
.discussion-post {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.discussion-post-item {
    transition: background 0.2s ease;
}

.discussion-post-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.post-content {
    flex: 1;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.category-badge {
    background: #3d3d5c;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.post-actions {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.post-actions a {
    color: #3498db;
    text-decoration: none;
}

.post-actions a:hover {
    text-decoration: underline;
}

/* Comment Styles */
.comments-section {
    margin-top: 30px;
}

.comment {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.comment:hover {
    border-left-color: rgba(255, 255, 255, 0.3);
}

.comment-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Variants */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .discussion-post {
        flex-direction: column;
        gap: 10px;
    }

    .vote-controls {
        flex-direction: row;
        justify-content: flex-start;
    }

    .discussion-post-item {
        flex-direction: column;
    }

    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
}
