/* Category Sort Game Styles */

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat {
    background: rgba(255,255,255,0.1);
    padding: 10px 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
}

.stat-label {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.game-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.items-area {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    min-height: 100px;
}

.items-area h3 {
    color: #f39c12;
    margin-bottom: 15px;
    text-align: center;
}

.items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.item {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: grab;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.item:hover {
    transform: scale(1.05);
}

.item.dragging {
    opacity: 0.5;
}

.item.correct {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.item.incorrect {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.category {
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    min-height: 200px;
    transition: all 0.3s;
}

.category.drag-over {
    border-color: #00d4ff;
    background: rgba(0,212,255,0.1);
}

.category h3 {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Category color classes - dynamically applied */
.category.cat-color-0 h3 { color: #e74c3c; }
.category.cat-color-1 h3 { color: #2ecc71; }
.category.cat-color-2 h3 { color: #3498db; }
.category.cat-color-3 h3 { color: #f39c12; }
.category.cat-color-4 h3 { color: #9b59b6; }
.category.cat-color-5 h3 { color: #1abc9c; }

.controls {
    text-align: center;
    margin-top: 25px;
}

.message {
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    max-width: 500px;
    border-radius: 10px;
    display: none;
}

.message.show {
    display: block;
}

.message.win {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
}

.message.partial {
    background: rgba(241, 196, 15, 0.2);
    border: 1px solid #f1c40f;
}

/* Responsive */
@media (max-width: 768px) {
    .categories {
        grid-template-columns: 1fr;
    }
}
