/* Ideas & Innovation Board Styles */

.board-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 600px;
}

.kanban-column {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.column-title {
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-count {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.column-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.status-new .column-icon { background: var(--status-new); color: white; }
.status-review .column-icon { background: var(--status-review); color: black; }
.status-approved .column-icon { background: var(--status-approved); color: white; }
.status-testing .column-icon { background: var(--status-testing); color: white; }
.status-implemented .column-icon { background: var(--status-implemented); color: white; }
.status-rejected .column-icon { background: var(--status-rejected); color: white; }

/* Idea Cards */
.ideas-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 400px;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.ideas-container.drag-over {
    background: rgba(164, 124, 91, 0.1);
    border: 2px dashed var(--accent-tan);
}

.idea-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.idea-card:hover {
    border-color: var(--accent-tan);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.idea-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.drag-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-color);
    cursor: move;
    opacity: 0;
    transition: opacity 0.2s;
}

.idea-card:hover .drag-handle {
    opacity: 1;
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.idea-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    margin-right: 0.5rem;
}

.idea-priority {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.priority-low {
    background: #3b82f6;
    color: white;
}

.priority-medium {
    background: #f59e0b;
    color: black;
}

.priority-high {
    background: #ef4444;
    color: white;
}

.idea-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.idea-votes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(164, 124, 91, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.idea-votes:hover {
    background: rgba(164, 124, 91, 0.2);
}

.idea-votes.voted {
    background: var(--accent-tan);
    color: white;
}

.idea-delete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    color: #dc3545;
}

.idea-delete:hover {
    background: rgba(220, 53, 69, 0.2);
}

.idea-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.idea-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    background: rgba(164, 124, 91, 0.1);
    color: var(--accent-tan);
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
}

/* Idea Actions */
.idea-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.idea-actions .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.idea-status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.idea-status-badge.approved {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.idea-status-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.idea-status-badge.implemented {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid #6366f1;
}

/* Review Comment */
.review-comment {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(164, 124, 91, 0.1);
    border-left: 3px solid var(--accent-tan);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: 0 4px 4px 0;
}

.review-comment i {
    color: var(--accent-tan);
    margin-right: 0.5rem;
}

/* Idea Details */
.idea-details {
    display: grid;
    gap: 1.5rem;
}

.detail-section {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
}

.scores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 6px;
}

.score-value {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-tan);
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Comments Section */
.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.comment {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 500;
    color: var(--text-primary);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.5;
}

.add-comment {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.add-comment textarea {
    flex: 1;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-controls select {
    min-width: 160px;
}

/* Modal Adjustments */
.modal-large {
    max-width: 800px;
}

/* Empty State */
.empty-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    text-align: center;
    height: 100%;
}

.empty-column i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(3, 1fr);
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
    
    .board-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .filter-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-controls select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}