/* Bottom Sheet Menu Styles */

/* Floating Trigger Button */
.menu-trigger-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.6); /* 투명도 증가로 플로팅 효과 강화 */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px); /* 블러 효과 강화 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* 그림자 부드럽게 */
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.menu-trigger-btn:hover {
    background: rgba(50, 50, 50, 0.95);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.menu-trigger-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.menu-trigger-btn i {
    transition: transform 0.3s;
}

/* Bottom Sheet Overlay */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sheet-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Bottom Sheet Container */
.bottom-sheet {
    position: fixed;
    bottom: 24px; /* 바닥에서 띄움 */
    left: 16px;   /* 좌측 여백 */
    right: 16px;  /* 우측 여백 */
    width: auto;  /* 자동 너비 */
    max-width: 400px; /* 너무 넓어지지 않게 제한 */
    margin: 0 auto; /* 중앙 정렬 */
    background: rgba(30, 30, 30, 0.95); /* 다크 테마 배경 */
    backdrop-filter: blur(12px); /* 블러 효과 */
    border-radius: 24px; /* 둥근 모서리 */
    /* 메뉴 버튼 위치(하단 중앙)에서 확장되는 효과 */
    transform-origin: bottom center;
    transform: scale(0) translateY(50px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.25s ease;
    z-index: 201;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1); /* 깊이감 + 테두리 */
    will-change: transform, opacity;
}

.bottom-sheet.open {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Sheet Header */
.sheet-header {
    padding: 16px 20px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sheet-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-sheet-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.close-sheet-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Menu Content */
.sheet-content {
    padding: 10px 16px 20px 16px;
    overflow-y: auto;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Flat Menu Items */
.menu-item-flat {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: left;
    gap: 8px;
}

.menu-drag-handle {
    width: 28px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    cursor: grab;
    transition: all 0.2s;
    flex-shrink: 0;
}

.menu-drag-handle:hover {
    color: rgba(255, 255, 255, 0.6);
}

.menu-drag-handle:active {
    cursor: grabbing;
}

.menu-item-content {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.menu-item-flat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.menu-item-flat.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.menu-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #e0e0e0;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.menu-item-flat.active .menu-icon-box {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.menu-text-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-label {
    font-size: 1rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 2px;
}

.menu-item-flat.active .menu-label {
    color: #60a5fa;
}

.menu-desc {
    font-size: 0.75rem;
    color: #9ca3af;
}

.menu-check {
    color: #3b82f6;
    margin-left: 10px;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

.menu-item-flat.active .menu-check {
    opacity: 1;
    transform: translateX(0);
}

/* 드래그 중 스타일 */
.menu-item-flat.sortable-ghost {
    opacity: 0.3;
}

.menu-item-flat.sortable-chosen {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.menu-item-flat.sortable-drag {
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
