/**
 * Nashville EDM - Bottom Sheet Styles
 * Mobile-friendly bottom sheet modal styles
 */

/* Bottom Sheet Overlay */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Backdrop */
.bottom-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Bottom Sheet Container */
.bottom-sheet-container {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}

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

/* Header */
.bottom-sheet-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-sheet-drag-handle {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.bottom-sheet-title {
    flex: 1;
    margin: 0.5rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.bottom-sheet-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.bottom-sheet-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Content */
.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    color: white;
}

.bottom-sheet-content::-webkit-scrollbar {
    width: 6px;
}

.bottom-sheet-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Actions */
.bottom-sheet-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-sheet-action-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bottom-sheet-action-btn:hover,
.bottom-sheet-action-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.bottom-sheet-action-btn.primary {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    border-color: transparent;
}

.bottom-sheet-action-btn.primary:hover {
    background: linear-gradient(135deg, #8338ec, #00f5ff);
}

/* Menu Style */
.bottom-sheet-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bottom-sheet-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.bottom-sheet-menu-item:hover,
.bottom-sheet-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateX(4px);
}

.bottom-sheet-menu-item i {
    width: 24px;
    text-align: center;
    color: #00f5ff;
    font-size: 1.125rem;
}

.bottom-sheet-menu-item span {
    flex: 1;
}

.menu-item-badge {
    background: rgba(255, 0, 110, 0.2);
    color: #ff006e;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Confirm Style */
.bottom-sheet-confirm {
    text-align: center;
}

.bottom-sheet-confirm p {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (min-width: 768px) {
    .bottom-sheet-container {
        max-width: 500px;
        margin: 0 auto;
        border-bottom-left-radius: 1.5rem;
        border-bottom-right-radius: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .bottom-sheet-overlay {
        align-items: center;
        padding: 2rem;
    }
    
    .bottom-sheet-container {
        transform: scale(0.95);
        opacity: 0;
    }
    
    .bottom-sheet-overlay.active .bottom-sheet-container {
        transform: scale(1);
        opacity: 1;
    }
}
