/* ========================================
   Bottom Sheet / Overlay 공통 스타일
   ======================================== */

/* Bottom Sheet Container */
.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.bottom-sheet.active {
    pointer-events: auto;
}

/* Overlay Background */
.bottom-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 0.25s ease, backdrop-filter 0.4s ease 0.15s;
    pointer-events: none;
}

.bottom-sheet.active .bottom-sheet-overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

/* Content Wrapper */
.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 66.67vh;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active .bottom-sheet-content {
    transform: translateY(0);
}

/* Header */
.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 12px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.bottom-sheet-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.bottom-sheet-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
}

/* Options List */
.bottom-sheet-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px 20px 20px;
    overflow-y: auto;
    flex: 1;
}

.bottom-sheet-options::-webkit-scrollbar {
    width: 8px;
}

.bottom-sheet-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.bottom-sheet-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.bottom-sheet-options::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.bottom-sheet-option {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bottom-sheet-option:active {
    transform: scale(0.98);
}

.bottom-sheet-option.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* 저사양 기기: 블러 비활성화 */
@media (prefers-reduced-motion: reduce) {
    .bottom-sheet-overlay {
        backdrop-filter: none !important;
    }
}

/* Mobile Trigger Button */
.mobile-trigger-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.mobile-trigger-btn::after {
    content: "\25BC";
    font-size: 10px;
    color: #666;
}
