/* Sequence Builder Game Styles */

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

.description-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.description-box h2 {
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.description-box p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.description-box ul {
    color: #ccc;
    margin-left: 20px;
    line-height: 1.8;
}

.game-area {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.drop-zone {
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    min-width: 350px;
    flex: 1;
}

.drop-zone h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    text-align: center;
}

.sequence-slot {
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

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

.sequence-slot .number {
    background: #00d4ff;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.available-items {
    min-width: 350px;
    flex: 1;
}

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

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

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

.item.dragging {
    opacity: 0.5;
}

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

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

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

.message {
    text-align: center;
    padding: 20px;
    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.wrong {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
}

.stage-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 10px;
}

/* Default stage colors - can be customized via GAME_CONFIG */
.stage-fetch { background: #3498db; }
.stage-decode { background: #f39c12; }
.stage-execute { background: #2ecc71; }

/* Additional stage colors for other sequences */
.stage-compare { background: #9b59b6; }
.stage-swap { background: #e74c3c; }
.stage-move { background: #1abc9c; }
.stage-check { background: #f39c12; }
.stage-divide { background: #3498db; }
.stage-search { background: #e67e22; }
.stage-application { background: #3498db; }
.stage-transport { background: #2ecc71; }
.stage-network { background: #f39c12; }
.stage-link { background: #9b59b6; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-area {
        flex-direction: column;
    }

    .drop-zone,
    .available-items {
        min-width: 100%;
    }
}
