/* ═══════════════════════════════════════════════════════════════
   GAME.CSS - Game-specific Styles
   Max 300 Lines | GrowTycoon
   ═══════════════════════════════════════════════════════════════ */

/* ─── Grow Room Background ─── */
.grow-room {
    background-image: url('/img/backgrounds/bg-keller.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Fallback gradient if no image */
.grow-room:not([style*="background-image"]) {
    background: 
        radial-gradient(ellipse at center bottom, rgba(57, 255, 20, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--gray-100) 0%, var(--dark-bg) 100%);
}

/* ─── Lamp Container ─── */
.lamp-container {
    position: absolute;
    top: var(--space-2);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-above);
}

.lamp {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(255, 200, 100, 0.6));
    animation: lampSwing 4s ease-in-out infinite;
    transform-origin: top center;
}

/* Light cone effect */
.lamp-container::after {
    content: '';
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-top: 250px solid rgba(255, 200, 100, 0.04);
    pointer-events: none;
}

/* ─── Plants Grid ─── */
.plants-grid {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
    max-width: 350px;
    width: 100%;
}

.plant-slot {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast);
    overflow: hidden;
}

.plant-slot.filled {
    border-style: solid;
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.15);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.plant-slot.ready {
    animation: pulse 1.5s ease-in-out infinite;
}

.plant-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    animation: growPlant 0.6s var(--ease-bounce);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.plant-emoji {
    font-size: 2.5rem;
    animation: growPlant 0.6s var(--ease-bounce);
    filter: drop-shadow(0 0 8px var(--neon-green));
}

/* ─── Harvest Button ─── */
.harvest-btn {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    background: url('/img/ui/btn-harvest.jpg') center/contain no-repeat;
    border: none;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-bounce);
    z-index: var(--z-above);
    filter: drop-shadow(0 0 15px var(--neon-green));
}

.harvest-btn:hover {
    transform: translateX(-50%) scale(1.08);
    filter: drop-shadow(0 0 30px var(--neon-green));
}

.harvest-btn:active {
    transform: translateX(-50%) scale(0.92);
}

.harvest-btn.ready {
    animation: pulse 1s ease-in-out infinite;
}

.harvest-icon {
    display: none;
}

.harvest-text {
    position: absolute;
    bottom: -25px;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--neon-green);
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--neon-green);
}
}

.harvest-icon {
    font-size: var(--text-3xl);
}

.harvest-text {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--neon-green);
    letter-spacing: 0.1em;
}

/* ─── Shop Items ─── */
.shop-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.shop-icon {
    font-size: var(--text-3xl);
}

.shop-info {
    flex: 1;
}

.shop-name {
    font-weight: var(--font-semibold);
    color: white;
}

.shop-rate {
    font-size: var(--text-sm);
    color: var(--neon-green);
}

.shop-status {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

/* ─── Level Up Effect ─── */
.level-up-effect {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal);
    animation: fadeIn 0.3s ease-out;
}

.level-up-text {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-black);
    color: var(--neon-green);
    text-shadow: 0 0 30px var(--neon-green);
    animation: pop 0.5s var(--ease-bounce);
}

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

/* ─── Particle Effects (CSS only) ─── */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: var(--radius-full);
    pointer-events: none;
    animation: sparkle 0.6s ease-out forwards;
}

@keyframes sparkle {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--gray-400);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-text {
    font-size: var(--text-sm);
}
