/* Update Easter themed background styles */
.easter-mode-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #ffe8f3 0%, #ffc1e3 100%);
    opacity: 0.95;
    pointer-events: none;
}

.easter-mode-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 182, 193, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 192, 203, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 105, 180, 0.1) 0%, transparent 70%);
    z-index: -1;
}

/* Improve Easter event page styles */
#easter-event-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffe8f3 0%, #ffc1e3 100%);
    font-family: 'Poppins', sans-serif;
    z-index: 1000;
    overflow: auto;
}

#easter-event-page .container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

#easter-event-page h1 {
    font-size: 3.5rem;
    color: #ff1493;
    margin-bottom: 1.5rem;
    text-shadow: 
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        0 0 15px rgba(255, 20, 147, 0.5);
    animation: floatTitle 3s ease-in-out infinite;
}

@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.subtext {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ff69b4;
    max-width: 600px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

#event-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.event-stat-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.2);
}

.event-stat-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff1493;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
}

.event-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

#event-play-btn {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    border-radius: 30px;
    padding: 1.2rem 3rem;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
    animation: pulse 2s infinite, fadeInUp 0.8s ease-out 0.4s backwards;
}

#event-play-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #ff1493, #ff69b4);
}

#event-shop-btn {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border: none;
    border-radius: 30px;
    padding: 1.2rem 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

#event-shop-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #8BC34A, #4CAF50);
}

#event-back-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, #87ceeb, #4169e1);
    border: none;
    border-radius: 20px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.3);
    z-index: 2;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

#event-back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.4);
    background: linear-gradient(135deg, #4169e1, #87ceeb);
}

/* Add egg rain animation */
.egg-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.egg {
    position: absolute;
    width: 40px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: eggFall linear forwards;
}

@keyframes eggFall {
    from {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0.6;
    }
    to {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
    }
    50% {
        box-shadow: 0 15px 30px rgba(255, 105, 180, 0.5);
    }
    100% {
        box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #easter-event-page .container {
        padding: 1rem;
        margin: 1rem;
    }

    #easter-event-page h1 {
        font-size: 2.5rem;
    }

    .subtext {
        font-size: 1.2rem;
        padding: 1rem;
    }

    #event-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .event-stat-item {
        padding: 1rem;
    }

    #event-play-btn {
        font-size: 1.5rem;
        padding: 1.2rem 3rem;
        width: 90%;
        max-width: 300px;
    }
}

/* Add shop styles */
#easter-shop-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f8ffee 0%, #c1e3a4 100%);
    font-family: 'Poppins', sans-serif;
    z-index: 1000;
    overflow: auto;
}

#easter-shop-page .container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

#easter-shop-page h1 {
    font-size: 3.5rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    text-shadow: 
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        0 0 15px rgba(76, 175, 80, 0.5);
    animation: floatTitle 3s ease-in-out infinite;
}

.shop-eggs {
    font-size: 1.6rem;
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    display: inline-block;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#shop-egg-counter {
    font-weight: bold;
    color: #ff1493;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.shop-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.item-preview {
    height: 150px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.pink-theme-preview {
    background: linear-gradient(135deg, #ffe8f3 0%, #ffc1e3 100%);
    position: relative;
    overflow: hidden;
}

.green-theme-preview {
    background: linear-gradient(135deg, #e8ffe8 0%, #90ee90 100%);
    position: relative;
    overflow: hidden;
}

.preview-egg {
    position: absolute;
    width: 30px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: eggFallPreview linear infinite;
    opacity: 0.8;
}

@keyframes eggFallPreview {
    0% { 
        transform: translateY(-10px) rotate(0deg);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(140px) rotate(360deg);
        opacity: 0;
    }
}

.easter-blade-preview {
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.easter-blade-cursor-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: moveAcross 3s infinite ease-in-out;
}

.egg-cursor {
    position: absolute;
    width: 30px;
    height: 40px;
    background-image: url('https://gcdnb.pbrd.co/images/nbqfaUQRs9pP.png?o=1');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: hue-rotate(90deg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
    animation: rotateEgg 2s infinite linear;
}

@keyframes rotateEgg {
    0% { transform: translate(-50%, -50%) rotate(-10deg); }
    50% { transform: translate(-50%, -50%) rotate(10deg); }
    100% { transform: translate(-50%, -50%) rotate(-10deg); }
}

@keyframes moveAcross {
    0% { left: -20%; }
    50% { left: 20%; }
    100% { left: -20%; }
}

.shop-item h3 {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.item-cost {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 1rem;
}

.buy-button {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: linear-gradient(135deg, #8BC34A, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.buy-button:disabled {
    background: #cccccc;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.shop-item.owned {
    border: 2px solid #4CAF50;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.2);
}

.shop-item.owned .item-cost {
    color: #4CAF50;
}

.shop-item.owned::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background: #4CAF50;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

#shop-back-btn {
    background: linear-gradient(135deg, #87ceeb, #4169e1);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-block;
}

#shop-back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.3);
    background: linear-gradient(135deg, #4169e1, #87ceeb);
}

/* Admin panel styles */
#admin-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 15px;
    z-index: 1001;
    border: 1px solid #ff1493;
}

#admin-panel h3 {
    color: #ff1493;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
}

.admin-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-button {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.3);
}

/* Mobile responsiveness for shop */
@media (max-width: 768px) {
    .shop-items {
        grid-template-columns: 1fr;
    }
    
    #easter-shop-page h1 {
        font-size: 2.5rem;
    }
    
    .buy-button, #shop-back-btn {
        padding: 0.7rem;
        font-size: 1rem;
    }
    
    .event-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    #event-play-btn, #event-shop-btn {
        width: 100%;
        font-size: 1.5rem;
        padding: 1.2rem;
    }
}

.easter-background-egg {
    position: absolute;
    width: 40px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    animation: eggFallSlow linear infinite;
}

@keyframes eggFallSlow {
    from {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0.6;
    }
    to {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

/* Add loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff69b4;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}