/* 
 * Puber SPA Architecture CSS
 * Animations for Slide-Up Sheets and Slide-In Drawers
 */

/* Sticky Bottom Navigation */
.puber-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 10000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    padding: 0 10px;
}

.puber-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #A29BFE;
    text-decoration: none !important;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.puber-nav-icon { font-size: 1.5rem; transition: 0.2s; }
.puber-nav-label { font-size: 0.75rem; font-weight: 700; margin-top: 4px; }

.puber-nav-item.active { color: #6C5CE7; transform: translateY(-5px); }
.puber-nav-item.active .puber-nav-icon { transform: scale(1.2); }

/* Overlays Base */
.puber-overlay-sheet, .puber-overlay-drawer {
    position: fixed;
    background: #fff;
    z-index: 20000;
    transition: transform 0.4s cubic-bezier(0.1, 0.75, 0.1, 1);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Slide-Up Bottom Sheets (Create, Listing) */
.puber-overlay-sheet {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transform: translateY(110%);
}

/* Off-Canvas Drawer (Dashboard) */
.puber-overlay-drawer {
    top: 0;
    right: 0;
    width: 85vw;
    height: 100vh;
    transform: translateX(110%);
}

.puber-overlay-sheet.open, .puber-overlay-drawer.open { transform: translate(0); }

#puber-app-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 15000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
#puber-app-backdrop.visible { opacity: 1; pointer-events: auto; }

/* In-Sheet Components */
.puber-sheet-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f2f6;
}

.puber-sheet-handle {
    width: 40px;
    height: 5px;
    background: #dfe6e9;
    border-radius: 5px;
    margin: 10px auto;
}

.puber-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    -webkit-overflow-scrolling: touch;
}

.puber-sheet-close {
    background: #f1f2f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Skeletons */
.puber-loading-skeleton { padding: 20px; }
.skeleton-line { height: 15px; background: #f1f2f6; margin-bottom: 15px; border-radius: 5px; width: 80%; animation: pulse 1.5s infinite; }
.skeleton-line.short { width: 50%; }
.skeleton-map { height: 200px; background: #f1f2f6; border-radius: 12px; animation: pulse 1.5s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Fix Map Overflow in Shell */
.puber-app-wrapper #puber-map { height: calc(100vh - 150px) !important; }
