/* Retro Game Easter Egg Overlay Styles */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Custom cursor when game is active (shooting mode) */
/* Only show shotgun cursor when actively shooting, not when overlay is visible */
/* Note: Some browsers limit cursor images to 32x32 or 128x128 pixels */
/* Hotspot set to approximate barrel tip position (top-right area of 512x512 image) */
body.easter-egg-active:not(.overlay-active) {
    cursor: url('../../res/shotgun.png') 400 100, auto;
}

body.easter-egg-active:not(.overlay-active) * {
    cursor: url('../../res/shotgun.png') 400 100, auto;
}

/* X gifs should have default cursor outside shooting mode (easter egg hidden) */
.popup-gif {
    cursor: default !important;
}

/* Override for clickable class - still default when not in shooting mode */
.popup-gif.easter-egg-clickable {
    cursor: default !important;
}

/* Shotgun cursor for X gifs only when in active shooting mode */
body.easter-egg-active:not(.overlay-active) .popup-gif {
    cursor: url('../res/shotgun.png') 400 100, pointer !important;
}

/* HUD Elements (corner displays) */
.easter-egg-hud {
    position: fixed;
    z-index: 99;
    font-family: 'Press Start 2P', monospace;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.easter-egg-hud.active {
    opacity: 1;
}

.easter-egg-hud-item {
    position: fixed;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #e3fc02;
    color: #e3fc02;
    text-shadow: 0 0 10px #e3fc02;
    box-shadow: 
        0 0 15px rgba(227, 252, 2, 0.5),
        inset 0 0 10px rgba(227, 252, 2, 0.1);
    backdrop-filter: blur(5px);
    min-width: 120px;
}

.easter-egg-hud-item.top-left {
    top: 20px;
    left: 20px;
}

.easter-egg-hud-item.bottom-left {
    bottom: 20px;
    left: 20px;
}

.easter-egg-hud-item.bottom-right {
    bottom: 20px;
    right: 20px;
}

.easter-egg-hud-label {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.easter-egg-hud-value {
    font-size: 18px;
    color: #e3fc02;
    text-shadow: 
        0 0 5px #e3fc02,
        0 0 10px #e3fc02;
    line-height: 1.4;
}

/* Make sure language selector stays on top (it has z-index: 100 inline, dropdown has 1000) */
#homeLanguageSelector {
    z-index: 100 !important;
}

/* Mobile: Hide HUD */
@media (max-width: 768px) {
    .easter-egg-hud {
        display: none !important;
    }
}

.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    color: #e3fc02;
    overflow: hidden;
}

.easter-egg-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scanline effect */
.easter-egg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

/* CRT screen effect */
.easter-egg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.easter-egg-container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
    border: 4px solid #e3fc02;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 20px #e3fc02,
        inset 0 0 20px rgba(227, 252, 2, 0.1);
    max-width: 600px;
    width: 90%;
    animation: pixelate 0.1s steps(4) infinite;
}

@keyframes pixelate {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
}

.easter-egg-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 
        0 0 10px #e3fc02,
        0 0 20px #e3fc02,
        0 0 30px #e3fc02;
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px #e3fc02,
            0 0 20px #e3fc02,
            0 0 30px #e3fc02;
    }
    to {
        text-shadow: 
            0 0 20px #e3fc02,
            0 0 30px #e3fc02,
            0 0 40px #e3fc02,
            0 0 50px #e3fc02;
    }
}

.easter-egg-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    font-size: 14px;
    line-height: 1.8;
}

.easter-egg-stat {
    padding: 15px;
    border: 2px solid #e3fc02;
    background: rgba(227, 252, 2, 0.05);
}

.easter-egg-stat-label {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 10px;
}

.easter-egg-stat-value {
    display: block;
    font-size: 18px;
    color: #e3fc02;
    text-shadow: 0 0 5px #e3fc02;
}

.easter-egg-combo {
    margin: 20px 0;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.easter-egg-combo.active {
    opacity: 1;
    animation: comboPop 0.5s ease-out;
}

@keyframes comboPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.easter-egg-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.easter-egg-button {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 15px 25px;
    background: rgba(227, 252, 2, 0.1);
    border: 3px solid #e3fc02;
    color: #e3fc02;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.easter-egg-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(227, 252, 2, 0.2);
    transition: left 0.3s;
}

.easter-egg-button:hover::before {
    left: 100%;
}

.easter-egg-button:hover {
    background: rgba(227, 252, 2, 0.2);
    box-shadow: 
        0 0 15px #e3fc02,
        inset 0 0 15px rgba(227, 252, 2, 0.1);
    transform: translateY(-2px);
}

.easter-egg-button:active {
    transform: translateY(0);
    box-shadow: 
        0 0 10px #e3fc02,
        inset 0 0 10px rgba(227, 252, 2, 0.2);
}

.easter-egg-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #e3fc02;
    cursor: pointer;
    z-index: 4;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e3fc02;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.easter-egg-close:hover {
    background: rgba(227, 252, 2, 0.2);
    box-shadow: 0 0 10px #e3fc02;
}

.easter-egg-instruction {
    font-size: 10px;
    margin-top: 20px;
    opacity: 0.7;
    line-height: 1.6;
}

/* Mobile: Hide easter egg overlay */
@media (max-width: 768px) {
    .easter-egg-overlay {
        display: none !important;
    }
}

/* Prevent text selection for retro feel */
.easter-egg-overlay * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

