/* Mobile UX Optimizations */

/* Touch Targets */
button,
a,
input[type="range"],
.color-card {
    touch-action: manipulation;
    /* Improves tap response */
    cursor: pointer;
}

/* Ensure minimum touch target size of 44px for critical elements */
.mobile-touch-target {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom Sheet */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.bottom-sheet-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-handle-area {
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    cursor: grab;
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
}

.bottom-sheet-content {
    padding: 0 24px 32px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Base Mobile Styles overrides */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Enhance slider thumbs for touch */
    input[type=range]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    /* Better spacing for mobile lists */
    .mobile-list-item {
        padding: 16px 0;
        border-bottom: 1px solid #F3F4F6;
    }
}