/* Custom animations and styles */
@keyframes steam {
    0% { opacity: 0; transform: translateY(0px) scale(1); }
    50% { opacity: 0.7; transform: translateY(-20px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.8); }
}

.steam-animation {
    animation: steam 1s ease-out;
}

/* Particle effects */
.tea-particle {
    pointer-events: none;
    user-select: none;
    font-weight: bold;
    color: #8B4513;
    animation: float-up 1s ease-out forwards;
}

@keyframes float-up {
    0% { opacity: 1; transform: translateY(0px); }
    100% { opacity: 0; transform: translateY(-50px); }
}

/* Smooth number transitions */
.tea-counter {
    transition: all 0.3s ease;
}

/* Teapot hover effects */
.teapot-container:hover {
    filter: drop-shadow(0 0 10px rgba(139, 69, 19, 0.3));
}

/* Scrollbar styling for upgrade panel */
.upgrade-panel::-webkit-scrollbar {
    width: 8px;
}

.upgrade-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.upgrade-panel::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
}

.upgrade-panel::-webkit-scrollbar-thumb:hover {
    background: #654321;
}

/* Button click animations */
.tea-button:active {
    transform: scale(0.95);
}

/* Steam particle effects */
@keyframes steam-rise {
    0% { 
        opacity: 0.8; 
        transform: translateY(0) scale(1) rotate(0deg); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-60px) scale(1.5) rotate(360deg); 
    }
}

.steam-particle {
    animation: steam-rise 2s ease-out forwards;
}

/* Zen background gradient */
body {
    background-attachment: fixed;
}

/* Card hover effects */
.upgrade-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Tab active state */
.tab-active {
    background: linear-gradient(90deg, #2D5016, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Number counting animation */
@keyframes number-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.number-update {
    animation: number-pop 0.3s ease;
}

/* Tea cup ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}