/* Pokémon Game Styles */
.pokemon-game-section {
    background: linear-gradient(135deg, var(--colorBg) 0%, #fff5e6 100%);
    padding: 60px 0;
    margin-bottom: 0;
}

.pokemon-game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--colorPrimary);
    position: relative;
}

.pokemon-game-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.pokemon-game-title {
    color: var(--colorPrimary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
}

.pokemon-display {
    text-align: center;
    margin-bottom: 20px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pokemon-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.pokemon-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.pokemon-sprite {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    transition: filter 0.5s ease;
}

.pokemon-sprite.hidden {
    filter: brightness(0) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.pokemon-sprite.revealed {
    filter: brightness(1) drop-shadow(0 0 15px rgba(241, 115, 141, 0.5));
    animation: reveal 0.5s ease;
}

@keyframes reveal {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.pokemon-name-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--colorPrimary);
    margin-top: 8px;
    text-transform: capitalize;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pokemon-name-display.show {
    opacity: 1;
}

.pokemon-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.pokemon-option-btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: 3px solid var(--colorSecundary);
    background: white;
    color: #4a2c2a;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    flex: 0 1 auto;
    min-width: 120px;
}

.pokemon-option-btn:hover:not(:disabled) {
    background: var(--colorSecundary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(248, 210, 111, 0.4);
}

.pokemon-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pokemon-option-btn.correct {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border-color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6), 0 0 40px rgba(76, 175, 80, 0.4);
    animation: correctPulse 0.8s ease infinite;
    font-weight: 700;
    transform: scale(1.05);
}

.pokemon-option-btn.incorrect {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
    border-color: #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.6), 0 0 40px rgba(244, 67, 54, 0.4);
    animation: incorrectShake 0.5s ease;
    font-weight: 700;
}

@keyframes correctPulse {
    0%, 100% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6), 0 0 40px rgba(76, 175, 80, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.8), 0 0 60px rgba(76, 175, 80, 0.6);
    }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.play-again-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 50px;
    height: 50px;
    padding: 0;
    background: transparent;
    color: var(--colorPrimary);
    border: 2px solid var(--colorPrimary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(241, 115, 141, 0.3);
}

.play-again-btn.show {
    display: flex;
    animation: fadeInFloat 0.5s ease forwards;
}

@keyframes fadeInFloat {
    0% { 
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.play-again-btn:hover {
    background: var(--colorPrimary);
    color: white;
    transform: translateY(-50%) rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(241, 115, 141, 0.5);
}

.play-again-btn svg {
    width: 26px;
    height: 26px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--colorPink);
    border-top: 5px solid var(--colorPrimary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feedback-message {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-message.show {
    opacity: 1;
}

.feedback-message.correct {
    color: #4caf50;
}

.feedback-message.incorrect {
    color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pokemon-game-container {
        padding: 20px;
    }

    .pokemon-game-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .pokemon-image-wrapper {
        gap: 20px;
    }

    .pokemon-image-container {
        width: 200px;
        height: 200px;
    }

    .play-again-btn {
        width: 45px;
        height: 45px;
        right: 12px;
        top: 12px;
    }

    .play-again-btn svg {
        width: 22px;
        height: 22px;
    }

    .pokemon-display {
        min-height: 250px;
        margin-bottom: 15px;
    }

    .pokemon-options {
        gap: 8px;
        min-height: 45px;
    }

    .pokemon-option-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .pokemon-name-display {
        font-size: 1.3rem;
        min-height: 35px;
    }

    .feedback-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .pokemon-game-container {
        padding: 15px;
        border-width: 2px;
    }

    .pokemon-game-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .pokemon-image-wrapper {
        gap: 15px;
    }

    .pokemon-image-container {
        width: 160px;
        height: 160px;
    }

    .play-again-btn {
        width: 40px;
        height: 40px;
        right: 10px;
        top: 10px;
    }

    .play-again-btn svg {
        width: 20px;
        height: 20px;
    }

    .pokemon-display {
        min-height: 220px;
    }

    .pokemon-options {
        gap: 6px;
        min-height: 40px;
    }

    .pokemon-option-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 90px;
        border-width: 2px;
    }

    .pokemon-name-display {
        font-size: 1.1rem;
        min-height: 30px;
    }
}

/* Modal Pokémon */
#pokemonModal .modal-content {
    background: linear-gradient(135deg, var(--colorPink) 0%, var(--colorSecundary) 100%);
    border: 3px solid var(--colorPrimary);
    border-radius: 30px;
}

#pokemonModal .modal-header {
    border-bottom: none;
    padding: 1.5rem;
    justify-content: center;
    position: relative;
}

#pokemonModal .modal-title {
    font-family: var(--font-Asiana);
    color: var(--colorPrimary);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    flex-grow: 1;
}

#pokemonModal .btn-close {
    filter: brightness(0) saturate(100%) invert(52%) sepia(55%) saturate(1826%) hue-rotate(316deg) brightness(96%) contrast(93%);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

#pokemonModal .modal-body {
    padding: 3rem;
    background-color: white;
    border-radius: 0 0 27px 27px;
    min-height: 650px;
}

#pokemonModal .pokemon-game-container {
    max-width: 100%;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

#pokemonModal .pokemon-display {
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#pokemonModal .pokemon-sprite {
    width: 350px !important;
    height: 350px !important;
}

#pokemonModal .pokemon-image-container {
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

#pokemonModal .pokemon-image-wrapper {
    display: flex;
    justify-content: center;
}

#pokemonModal .pokemon-name-display {
    font-size: 2rem;
    margin-top: 2rem;
    font-weight: 700;
}

#pokemonModal .pokemon-options {
    margin-top: 2.5rem;
    gap: 15px;
    min-height: 60px;
}

#pokemonModal .pokemon-option-btn {
    padding: 14px 30px;
    font-size: 1.1rem;
    min-width: 140px;
}

#pokemonModal .pokemon-game-header {
    margin-bottom: 30px;
}

#pokemonModal .play-again-btn {
    width: 55px;
    height: 55px;
}

#pokemonModal .loading-spinner {
    width: 80px;
    height: 80px;
    border-width: 6px;
    margin-top: 150px;
}

/* Responsive para modal de Pokémon */
@media (max-width: 768px) {
    #pokemonModal .pokemon-sprite {
        width: 280px !important;
        height: 280px !important;
    }
    
    #pokemonModal .pokemon-image-container {
        width: 280px;
        height: 280px;
    }
    
    #pokemonModal .pokemon-display {
        height: 380px;
    }
    
    #pokemonModal .modal-body {
        padding: 2rem 1.5rem;
        min-height: 580px;
    }
    
    #pokemonModal .loading-spinner {
        margin-top: 120px;
    }
    
    #pokemonModal .pokemon-option-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 120px;
    }
}
