/* Custom styles for Wordle Solver */

/* Game board styles */
.game-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.game-tile {
    width: 3.5rem;
    height: 3.5rem;
    border: 2px solid #d3d6da;
    margin-right: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.game-tile:last-child {
    margin-right: 0;
}

.game-tile.absent {
    background-color: #787c7e;
    border-color: #787c7e;
    color: white;
}

.game-tile.present {
    background-color: #c9b458;
    border-color: #c9b458;
    color: white;
}

.game-tile.correct {
    background-color: #6aaa64;
    border-color: #6aaa64;
    color: white;
}

/* Keyboard styles */
.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.keyboard-key {
    min-width: 2rem;
    height: 3rem;
    margin-right: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d3d6da;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 0 0.5rem;
}

.keyboard-key:last-child {
    margin-right: 0;
}

.keyboard-key.wide {
    min-width: 4rem;
}

.keyboard-key.absent {
    background-color: #787c7e;
    color: white;
}

.keyboard-key.present {
    background-color: #c9b458;
    color: white;
}

.keyboard-key.correct {
    background-color: #6aaa64;
    color: white;
}

/* Suggestions styles */
.suggestion-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 0.25rem;
    border-left: 4px solid #6aaa64;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-item:hover {
    background-color: #f0f9f0;
}

.suggestion-word {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.suggestion-info {
    font-size: 0.875rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .game-tile {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
    
    .keyboard-key {
        min-width: 1.75rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
    
    .keyboard-key.wide {
        min-width: 3rem;
    }
}

/* Animation for tile flipping */
@keyframes flip {
    0% {
        transform: rotateX(0);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0);
    }
}

.tile-flip {
    animation: flip 0.5s;
}

/* Pulse animation for suggestions */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s;
}