/* Enhanced Pokémon Guess Game Styles */

/* Background with animated particles */
.pokemon-guess-bg {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animated background particles */
.bg-orb, .bg-orb1, .bg-orb2, .bg-orb3 {
    position: fixed;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.bg-orb1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffcb05 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-orb2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.bg-orb3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #4ecdc4 0%, transparent 70%);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Floating particles */
.floating-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255, 203, 5, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* Game animations */
@keyframes correctReveal {
    0% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced main container */
.pokemon-guess-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 203, 5, 0.1);
    max-width: 1000px;
    margin: 80px auto 0 auto;
    padding: 2.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Game Status Bar */
.game-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Two-column layout */
.game-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    justify-content: center;
    margin-top: 2rem;
}

/* Left side: Pokémon Image Section */
.pokemon-image-section {
    flex: 1;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Right side: Game Info Section */
.game-info-section {
    flex: 1;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.pokemon-guess-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.pokemon-guess-container:hover::before {
    left: 100%;
}

.pokemon-guess-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 55px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 50px rgba(255, 203, 5, 0.2);
}

.outlined {
    border: 3px solid rgba(255, 203, 5, 0.4);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 203, 5, 0.1),
        0 0 20px rgba(255, 203, 5, 0.3);
}

/* Enhanced title */
.guess-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 2rem;
    color: #ffcb05;
    text-shadow: none;
    animation: none;
    position: relative;
}

/* Difficulty Selector */
.difficulty-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.difficulty-selector h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #fff;
    margin-bottom: 1rem;
}

.difficulty-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.difficulty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.difficulty-btn.active {
    background: linear-gradient(135deg, #ffcb05 0%, #ffa726 100%);
    color: #000;
    border-color: #ffcb05;
    box-shadow: 0 4px 12px rgba(255, 203, 5, 0.3);
}







/* Enhanced Pokémon image wrapper */
.pokemon-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pokemon-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.pokemon-image-wrapper:hover::before {
    transform: translateX(100%);
}

.pokemon-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 203, 5, 0.2);
}

/* Enhanced Pokémon silhouette */
.pokemon-silhouette {
    width: 200px;
    height: 200px;
    filter: brightness(0) contrast(100%);
    object-fit: contain;
    transition: all 0.3s ease;
    animation: silhouettePulse 2s ease-in-out infinite;
}

@keyframes silhouettePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced tries info */
.tries-info {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    animation: triesGlow 2s ease-in-out infinite;
}

/* Hint Display */
.hint-display {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #4ecdc4;
    font-family: 'Press Start 2P', cursive;
    background: rgba(78, 205, 196, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    display: inline-block;
    min-height: 1.2em;
    width: 100%;
    text-align: center;
}

/* Score Display */
.score-display {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #ffcb05;
    font-family: 'Press Start 2P', cursive;
    background: rgba(255, 203, 5, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 203, 5, 0.3);
    display: inline-block;
}

@keyframes triesGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
}

/* Enhanced form styling */
#guess-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

/* Enhanced input field */
.guess-input {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-family: 'Press Start 2P', cursive;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.guess-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.guess-input:focus {
    border-color: #ffcb05;
    box-shadow: 
        0 0 20px rgba(255, 203, 5, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* Enhanced buttons */
.guess-btn, .next-btn {
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 12px rgba(238, 90, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: buttonGlow 3s ease-in-out infinite;
}

.guess-btn::before, .next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.guess-btn:hover::before, .next-btn:hover::before {
    left: 100%;
}

@keyframes buttonGlow {
    0%, 100% { 
        box-shadow: 
            0 6px 12px rgba(238, 90, 36, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 8px 16px rgba(238, 90, 36, 0.5),
            0 0 20px rgba(238, 90, 36, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.guess-btn:hover, .next-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 20px rgba(238, 90, 36, 0.4),
        0 0 25px rgba(238, 90, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.guess-btn:active, .next-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Enhanced feedback */
.guess-feedback {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-top: 1.5rem;
    min-height: 2em;
    font-family: 'Press Start 2P', cursive;
    color: #ffcb05;
    text-shadow: none;
    background: rgba(255, 203, 5, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 203, 5, 0.3);
    animation: none;
}



/* Enhanced Responsive design */
@media (max-width: 768px) {
    .pokemon-guess-container {
        margin: 80px 1rem 0 1rem;
        padding: 1.5rem 1rem;
        max-width: none;
        min-height: auto;
        height: auto;
    }
    
    .game-status {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
        margin: 1rem 0;
    }
    
    .game-layout {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .pokemon-image-section,
    .game-info-section {
        max-width: none;
        width: 100%;
    }
    
    .pokemon-silhouette {
        width: 140px;
        height: 140px;
    }
    
    .pokemon-image-wrapper {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .guess-title {
        font-size: clamp(1rem, 3vw, 1.3rem);
        margin-bottom: 1.5rem;
    }
    
    .difficulty-selector h3 {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }
    
    .difficulty-btn {
        padding: 0.6rem 1rem;
        font-size: clamp(0.6rem, 2.2vw, 0.8rem);
    }
    
    .tries-info, .hint-display, .score-display {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        padding: 0.5rem 1rem;
    }
    
    .guess-input {
        padding: 0.8rem 1rem;
        font-size: clamp(0.8rem, 2.8vw, 1rem);
    }
    
    .guess-btn, .next-btn {
        padding: 0.8rem 1.5rem;
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }
    
    .guess-feedback {
        font-size: clamp(0.8rem, 2.8vw, 1rem);
        padding: 0.8rem 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .pokemon-guess-container {
        margin: 70px 0.5rem 0 0.5rem;
        padding: 1rem 0.8rem;
        border-radius: 20px;
    }
    
    .game-status {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.6rem;
        margin: 0.8rem 0;
        border-radius: 12px;
    }
    
    .game-layout {
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 0.8rem;
    }
    
    .pokemon-image-section,
    .game-info-section {
        max-width: none;
        width: 100%;
    }
    
    .pokemon-silhouette {
        width: 110px;
        height: 110px;
    }
    
    .pokemon-image-wrapper {
        padding: 1rem;
        margin-bottom: 0.8rem;
        border-radius: 15px;
    }
    
    .guess-title {
        font-size: clamp(0.9rem, 2.8vw, 1.2rem);
        margin-bottom: 1.2rem;
    }
    
    .difficulty-selector {
        margin-bottom: 1.5rem;
    }
    
    .difficulty-selector h3 {
        font-size: clamp(0.65rem, 2.3vw, 0.85rem);
        margin-bottom: 0.8rem;
    }
    
    .difficulty-buttons {
        gap: 0.8rem;
    }
    
    .difficulty-btn {
        padding: 0.5rem 0.8rem;
        font-size: clamp(0.55rem, 2vw, 0.75rem);
        border-radius: 10px;
    }
    
    .tries-info, .hint-display, .score-display {
        font-size: clamp(0.65rem, 2.3vw, 0.85rem);
        padding: 0.4rem 0.8rem;
        border-radius: 10px;
    }
    
    .guess-input {
        padding: 0.7rem 0.8rem;
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        border-radius: 12px;
    }
    
    .guess-btn, .next-btn {
        padding: 0.7rem 1.2rem;
        font-size: clamp(0.65rem, 2.3vw, 0.85rem);
        border-radius: 12px;
    }
    
    .guess-feedback {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        padding: 0.6rem 0.8rem;
        margin-top: 0.8rem;
        border-radius: 12px;
    }
    
    #guess-form {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 360px) {
    .pokemon-guess-container {
        margin: 60px 0.3rem 0 0.3rem;
        padding: 0.8rem 0.6rem;
    }
    
    .pokemon-silhouette {
        width: 100px;
        height: 100px;
    }
    
    .pokemon-image-wrapper {
        padding: 0.8rem;
    }
    
    .guess-title {
        font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    }
    
    .difficulty-btn {
        padding: 0.4rem 0.6rem;
        font-size: clamp(0.5rem, 1.8vw, 0.7rem);
    }
    
    .guess-input {
        padding: 0.6rem 0.7rem;
        font-size: clamp(0.7rem, 2.3vw, 0.85rem);
    }
    
    .guess-btn, .next-btn {
        padding: 0.6rem 1rem;
        font-size: clamp(0.6rem, 2vw, 0.8rem);
    }
} 