/* ========================================
   Activity Details Bottom Sheet - MudPaper + MudCollapse with Drag-to-Resize
   ======================================== */

/* Backdrop for click-outside-to-close when unpinned */
.activity-details-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1299;
    background-color: transparent;
    cursor: pointer;
}

/* Bottom Sheet Container */
.activity-details-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1300;
}

/* MudPaper with Material Design elevation-8 (upward-facing shadow) */
.activity-details-paper {
    height: 60vh;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0px -8px 10px -5px rgba(0,0,0,0.2), 
                0px -16px 24px 2px rgba(0,0,0,0.14), 
                0px -6px 30px 5px rgba(0,0,0,0.12) !important;
    transition: height 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.activity-details-paper.resizing {
    transition: none;
}

/* Drag Handle Container */
.drag-handle {
    width: 100%;
    height: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ns-resize;
    background: #FAFAFA;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    flex-shrink: 0;
    padding: 12px 0;
    user-select: none;
    -webkit-user-select: none;
}

.drag-handle-bar {
    width: 40px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.38);
    border-radius: 2px;
    transition: background-color 0.2s cubic-bezier(0.4, 0.0, 0.2, 1),
                width 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.drag-handle:hover .drag-handle-bar {
    background-color: rgba(0, 0, 0, 0.60);
}

.drag-handle:active .drag-handle-bar,
.resizing .drag-handle-bar {
    background-color: rgba(0, 66, 124, 1);
    width: 48px;
}

/* Content Wrapper */
.sheet-content-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Pin toggle button hover effect */
.pin-toggle-button:hover {
    background-color: rgba(0, 66, 124, 0.08);
}

/* Responsive heights */
@media (max-width: 960px) {
    .activity-details-paper {
        height: 70vh;
    }
}

@media (max-width: 600px) {
    .activity-details-paper {
        height: 85vh;
    }
}
