@import 'game-shared.css';

/* Control Pill Component - matching Game 6 */
.game-1-section .control-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid #e1e7ea;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    min-height: 56px;
}

.game-1-section .control-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.game-1-section .control-pill .label,
.game-1-section .control-pill span {
    white-space: nowrap;
}

.game-1-section .control-pill i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-1-section .control-pill--primary {
    border-color: #cfe9f2;
}

.game-1-section .control-pill--primary i {
    background: linear-gradient(135deg, #2d9ca9, #4a90e2);
    color: #fff;
}

.game-1-section .control-pill--secondary {
    border-color: #e1e7ea;
}

.game-1-section .control-pill--secondary i {
    background: linear-gradient(135deg, #6d8a99, #4f6b78);
    color: #fff;
}

/* Game Controls */
.game-1-section .game-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Progress Bar */
.game-1-section .progress {
    height: 12px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.game-1-section .progress-bar {
    background: #2d9ca9;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Draggable Items */
.draggable-item {
    padding: 15px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    cursor: move;
    text-align: center;
    width: 180px;
    height: 180px;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.draggable-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #2d9ca9;
}

.draggable-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
}

.draggable-item span {
    display: block;
    font-size: 14px;
    color: #2d9ca9;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

/* Basket Containers - matching Game 6 */



.basket {
    margin-bottom: 20px;
}

.basket-container {
    background: linear-gradient(145deg, rgba(45, 156, 169, 0.02), rgba(129, 179, 50, 0.02));
    border: 2px dashed #2d9ca9;
    border-radius: 14px;
    min-height: 160px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.basket-container.highlight {
    background: rgba(45, 156, 169, 0.08);
    border-color: #81b332;
    transform: scale(1.02);
}

.basket-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #ccc;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.basket-container:not(:empty) .basket-overlay {
    opacity: 0;
}


/* Instructions Section - matching Game 6 */
.game-1-section .instructions-section {
    background: #ffffff;
    border: 1px solid #eef2f4;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.game-1-section .instructions-section h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2f3b45;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-1-section .tutorial-steps {
    display: grid;
    gap: 10px;
}

.game-1-section .tutorial-steps .step {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #2f3b45;
    background: #f8fafb;
    border: 1px solid #eef2f4;
    border-left: 4px solid #2d9ca9;
    border-radius: 12px;
    padding: 12px 14px;
}

.game-1-section .tutorial-steps .step:first-child {
    background: linear-gradient(180deg, #f2fbfd, #f8fafb);
    border-left-color: #4a90e2;
}

.game-1-section .tutorial-steps .step strong {
    color: #1d2b36;
}

.game-1-section .tutorial-steps .number {
    width: 30px;
    height: 30px;
    background: #2d9ca9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.game-1-section .tutorial-steps p {
    margin: 0;
    color: #2f3b45;
    line-height: 1.6;
}

/* Image Instructions - matching Game 6 */
.image-instructions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2f3b45;
    background: #f8fafb;
    border: 1px solid #eef2f4;
    border-left: 4px solid #2d9ca9;
    border-radius: 12px;
    padding: 10px 12px;
}

.image-instructions i {
    background: #2d9ca9;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Main Game Image */
.game-1-section .main-game-image-section {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.game-1-section .main-game-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-1-section .main-game-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.game-1-section .image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-1-section .main-game-image-section:hover .image-overlay {
    opacity: 1;
}

/* Animations */
@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: incorrectShake 0.5s ease;
}

.correct-item {
    background-color: rgba(123, 179, 43, 0.1) !important;
    border: 2px solid #7BB32B !important;
    animation: correctPulse 0.5s ease;
}

.incorrect-item {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 2px solid #dc3545 !important;
    animation: incorrectShake 0.5s ease;
}

/* Carousel Modal Styles - matching Game 6 */
#imageCarouselModal1 .modal-dialog {
    max-width: 90vw;
}

#imageCarouselModal1 .carousel {
    border-radius: 12px;
    overflow: hidden;
}

#imageCarouselModal1 .carousel-item img {
    max-height: 80vh;
    object-fit: contain;
    background-color: #f8f9fa;
}

#imageCarouselModal1 .carousel-indicators {
    bottom: 10px;
}

#imageCarouselModal1 .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2d9ca9;
    border: 2px solid #2d9ca9;
}

#imageCarouselModal1 .carousel-indicators button.active {
    background-color: #fff;
}

#imageCarouselModal1 .carousel-control-prev,
#imageCarouselModal1 .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

#imageCarouselModal1 .carousel-control-prev {
    left: 20px;
}

#imageCarouselModal1 .carousel-control-next {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-1-section .draggable-item {
        width: 150px;
        height: 150px;
    }
    
    .game-1-section .draggable-item img {
        width: 80px;
        height: 80px;
    }
    
    .game-1-section .game-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .game-1-section .control-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    #imageCarouselModal1 .modal-dialog {
        max-width: 95vw;
        margin: 10px;
    }
    
    #imageCarouselModal1 .carousel-control-prev,
    #imageCarouselModal1 .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 15px;
    }
    
    .modal-content {
        border-radius: 6px;
    }
} 