/* Controls and Action Buttons */
/* ============================ */

/* Action Menu */
/* ============ */

.action-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, #4682B4, #5F9EA0);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #5F9EA0, #87CEEB);
}

.action-btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    font-size: 1.2em;
    animation: iconFloat 2s ease-in-out infinite alternate;
}

/* Specialized button styles */
/* ========================= */

.shop-btn {
    background: linear-gradient(135deg, #32CD32, #228B22);
}

.shop-btn:hover {
    background: linear-gradient(135deg, #00FF7F, #32CD32);
}

.inventory-btn {
    background: linear-gradient(135deg, #FF6347, #CD5C5C);
}

.inventory-btn:hover {
    background: linear-gradient(135deg, #FF7F50, #FF6347);
}

.auth-btn {
    background: linear-gradient(135deg, #9370DB, #8A2BE2);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #BA55D3, #9370DB);
}

.pause-btn {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.pause-btn:hover {
    background: linear-gradient(135deg, #FFB347, #FFA500);
}

/* Game Controls */
/* ============== */

.controls {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-instruction {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.control-icon {
    font-size: 1.2em;
    animation: keyboardPulse 1.5s ease-in-out infinite;
}

.control-tips {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tip {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: tipGlow 3s ease-in-out infinite;
}

/* Mobile Controls */
/* ================ */

.mobile-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 999;
}

.mobile-dpad {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.mobile-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: all 0.1s ease;
    cursor: pointer;
}

.mobile-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.mobile-btn.up { grid-column: 2; grid-row: 1; }
.mobile-btn.left { grid-column: 1; grid-row: 2; }
.mobile-btn.right { grid-column: 3; grid-row: 2; }
.mobile-btn.down { grid-column: 2; grid-row: 3; }