/**
 * Floating Menu - 모바일 전용 플로팅 메뉴
 */

/* 데스크톱에서는 숨김 */
.floating-menu-wrapper {
    display: none;
}

/* 모바일에서만 표시 (768px 이하) */
@media screen and (max-width: 768px) {
    .floating-menu-wrapper {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        pointer-events: none;
    }
    
    .floating-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding: 8px 0;
        border-radius: 20px 20px 0 0;
        pointer-events: auto;
    }
    
    .floating-menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 8px;
        text-decoration: none;
        color: #666;
        transition: all 0.3s ease;
        border-radius: 12px;
        min-width: 60px;
        flex: 1;
        position: relative;
    }
    
    .floating-menu-item i {
        font-size: var(--icon-size, 24px);
        margin-bottom: 4px;
        transition: all 0.3s ease;
    }
    
    .floating-menu-label {
        font-size: 11px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    /* 호버 효과 - 비활성 아이템만 */
    .floating-menu-item:not(.active):hover {
        background: rgba(0, 0, 0, 0.05);
        transform: translateY(-4px);
        color: #333 !important;
    }
    
    .floating-menu-item:not(.active):hover i {
        transform: scale(1.15);
        color: #333 !important;
    }
    
    .floating-menu-item:not(.active):hover .floating-menu-label {
        color: #333 !important;
    }
    
    /* 활성 아이템은 호버 효과 없음 */
    .floating-menu-item.active:hover {
        transform: scale(1.05);
    }
    
    /* 활성 상태 - 훨씬 더 명확하게 */
    .floating-menu-item.active {
        color: #fff !important;
        background: var(--item-active-color, #667eea) !important;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .floating-menu-item.active i {
        transform: scale(1.2);
        font-weight: bold;
    }
    
    .floating-menu-item.active .floating-menu-label {
        font-weight: 700;
    }
    
    /* 각 아이템별 활성 색상 */
    .floating-menu-item[data-active-color="#ff5252"].active {
        background: linear-gradient(135deg, #ff5252 0%, #ff6b6b 100%) !important;
    }
    
    .floating-menu-item[data-active-color="#0088ff"].active {
        background: linear-gradient(135deg, #0088ff 0%, #00c6ff 100%) !important;
    }
    
    .floating-menu-item[data-active-color="#00c853"].active {
        background: linear-gradient(135deg, #00c853 0%, #00e676 100%) !important;
    }
    
    .floating-menu-item[data-active-color="#e91e63"].active {
        background: linear-gradient(135deg, #e91e63 0%, #ff6090 100%) !important;
    }
    
    .floating-menu-item[data-active-color="#5e35b1"].active {
        background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%) !important;
    }
    
    /* 비활성 상태는 회색톤 */
    .floating-menu-item:not(.active) {
        color: #999 !important;
    }
    
    .floating-menu-item:not(.active) i {
        color: #999 !important;
    }
    
    .floating-menu-item:not(.active) .floating-menu-label {
        color: #999 !important;
    }
    
    /* 터치 효과 */
    .floating-menu-item:not(.active):active {
        transform: scale(0.95);
    }
    
    .floating-menu-item.active:active {
        transform: scale(1.02);
    }
    
    /* 페이지 하단 여백 추가 (플로팅 메뉴만큼) */
    body.has-floating-menu {
        padding-bottom: 80px;
    }
}

/* 작은 모바일 (360px 이하) */
@media screen and (max-width: 360px) {
    .floating-menu-item {
        padding: 6px 8px;
        min-width: 60px;
    }
    
    .floating-menu-item i {
        font-size: 22px;
        margin-bottom: 3px;
    }
    
    .floating-menu-label {
        font-size: 10px;
    }
}

