/* Simplified Character Display - Stone and Wood Emojis */

.character-sprite {
    display: inline-block;
    width: 80px;
    height: 80px;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

/* Mining Character - Simple Stone Emoji */
.character-mining {
    width: 100%;
    height: 100%;
    position: relative;
}

.character-mining::after {
    content: '🪨';
    position: absolute;
    font-size: 56px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: all 0.3s ease;
}

/* Mining hover animation - Simple bounce */
.action-btn:hover .character-mining::after {
    animation: simpleBounce 1s infinite ease-in-out;
}

@keyframes simpleBounce {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Woodcutting Character - Simple Wood Emoji */
.character-woodcutting {
    width: 100%;
    height: 100%;
    position: relative;
}

.character-woodcutting::after {
    content: '🪵';
    position: absolute;
    font-size: 56px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: all 0.3s ease;
}

/* Woodcutting hover animation - Simple bounce */
.action-btn:hover .character-woodcutting::after {
    animation: simpleBounce 1s infinite ease-in-out;
}

/* Idle Character */
.character-idle {
    width: 100%;
    height: 100%;
    position: relative;
}

.character-idle::after {
    content: '😴';
    position: absolute;
    font-size: 56px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: all 0.3s ease;
}

/* Simple hover effect for idle */
.action-btn:hover .character-idle::after {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Action Button Styling - Dark Theme Compatible */
.action-btn {
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 16px;
    margin: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Default button state - dark theme compatible */
.action-btn:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: inherit;
}

/* Active State - Green accent, no animations */
.action-btn.active {
    border: 2px solid #28a745;
    background: rgba(40, 167, 69, 0.15);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.action-btn.active .character-sprite {
    filter: brightness(1.2) contrast(1.1);
}

/* Hover Effects - Simple and clean */
.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.action-btn.active:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: rgba(40, 167, 69, 0.2);
}

/* Remove all complex animations from active state */
.action-btn.active .character-mining::after,
.action-btn.active .character-woodcutting::after,
.action-btn.active .character-idle::after {
    animation: none !important;
}

/* Button text styling */
.action-btn .action-title {
    color: inherit;
    font-weight: 600;
    margin-top: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.action-btn .action-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-top: 4px;
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .character-sprite {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
    
    .character-mining::after,
    .character-woodcutting::after,
    .character-idle::after {
        font-size: 48px;
    }
    
    .action-btn {
        padding: 12px;
        margin: 6px;
    }
}

@media (max-width: 480px) {
    .character-sprite {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .character-mining::after,
    .character-woodcutting::after,
    .character-idle::after {
        font-size: 40px;
    }
    
    .action-btn {
        padding: 10px;
        margin: 4px;
    }
}

/* Performance Optimization */
.character-mining,
.character-woodcutting,
.character-idle {
    will-change: transform;
    backface-visibility: hidden;
}

/* Light theme adjustments */
@media (prefers-color-scheme: light) {
    .action-btn:not(.active) {
        background: rgba(0, 0, 0, 0.05);
        border: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    .action-btn:hover {
        background: rgba(0, 0, 0, 0.1);
    }
    
    .action-btn .action-description {
        color: rgba(0, 0, 0, 0.6);
    }
} 