/* 
 * Bottom Sheet Styles (Material Design 3)
 * Un componente que se desliza desde la parte inferior de la pantalla
 */

/* Overlay (fondo oscurecido) */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor principal del bottom sheet */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background-color: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
}

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

/* Header del bottom sheet */
.bottom-sheet-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding: 4px 1rem 12px;
    background-color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    transition: padding 0.2s ease;
    user-select: none;
    touch-action: none;
}

.bottom-sheet-header.compact {
    padding: 4px 1rem 8px;
}

/* Indicador de arrastre */
.bottom-sheet-drag-indicator {
    width: 36px;
    height: 4px;
    background-color: #dadce0;
    border-radius: 4px;
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-drag-indicator:active {
    cursor: grabbing;
}

/* Título del bottom sheet */
.bottom-sheet-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    color: #202124;
    flex-grow: 1;
    transition: font-size 0.2s ease, -webkit-line-clamp 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    max-height: 50px;
}

.bottom-sheet-title.truncate {
    font-size: 16px;
    -webkit-line-clamp: 1;
    max-height: 22px;
}

/* Contenedor de acciones (botones en el header) */
.bottom-sheet-actions {
    display: flex;
    position: absolute;
    /*top: 12px;*/
    right: 16px;
    gap: 8px;
}

/* Botones de acción */
.bottom-sheet-action-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f1f3f4;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
    transition: background-color 0.2s ease;
}

.bottom-sheet-action-button:hover {
    background-color: #e8eaed;
}

.bottom-sheet-action-button:active {
    background-color: #dadce0;
}

.bottom-sheet-action-button i {
    font-size: 16px;
}

/* Contenido del bottom sheet */
.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 1rem 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
}

/* Estilo de scroll */
.bottom-sheet-content::-webkit-scrollbar {
    width: 6px;
}

.bottom-sheet-content::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.bottom-sheet-content::-webkit-scrollbar-thumb {
    background-color: #bdc1c6;
    border-radius: 3px;
}

/* Estilos para los diferentes modos */
.bottom-sheet.peek {
    border-radius: 12px 12px 0 0;
}

.bottom-sheet.half {
    border-radius: 16px 16px 0 0;
}

.bottom-sheet.full {
    border-radius: 16px 16px 0 0;
}

/* Desactivar scroll en el body cuando el bottom sheet está activo */
body.no-scroll {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
}

/* Animaciones */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .bottom-sheet-header {
        padding: 4px 1rem 10px;
    }
    
    .bottom-sheet-header.compact {
        padding: 4px 1rem 6px;
    }
    
    .bottom-sheet-actions {
        right: 1rem;
    }
    
    .bottom-sheet-content {
        padding: 0 1rem 1rem;
    }
    
    .bottom-sheet-title {
        font-size: 16px;
        max-height: 45px;
    }
    
    .bottom-sheet-title.truncate {
        font-size: 15px;
    }
}

/* Estados de altura del bottom sheet */
.bottom-sheet.peek {
    height: 30vh;
}

.bottom-sheet.half-expanded {
    height: 50vh;
}

.bottom-sheet.fully-expanded {
    height: 85vh;
}

/* Barra de arrastre (handle) */
.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 12px auto;
    cursor: grab;
}

.bottom-sheet-handle:active {
    cursor: grabbing;
}

/* Encabezado del bottom sheet */
.bottom-sheet-header {
    position: relative;
    /*padding: 0 16px;*/
    /*height: 40px;*/
    display: flex;
    /*align-items: center;*/
    justify-content: flex-end;
}

/* Botón de cierre */
.bottom-sheet-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

/* Estilos grabbing para el arrastre */
body.grabbing {
    cursor: grabbing;
}

/* Estilos para el contenido del evento */
.event-sheet-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Cabecera con imagen */
.event-sheet-header {
    width: 100%;
    position: relative;
}

.event-sheet-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.event-sheet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Cuerpo del evento */
.event-sheet-body {
    padding: 16px 20px;
    flex: 1;
}

/* Título y metadatos */
.event-sheet-title-section {
    margin-bottom: 20px;
}

.event-sheet-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-sheet-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.event-sheet-metadata-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.event-sheet-metadata-item i {
    font-size: 16px;
}

/* Fechas */
.event-sheet-dates {
    margin-bottom: 20px;
}

.event-sheet-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.event-sheet-dates-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-sheet-date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    padding: 8px 12px;
    background-color: #f8f8f8;
    border-radius: 12px;
}

/* Descripción */
.event-sheet-description {
    margin-bottom: 24px;
}

.event-sheet-description-text {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

.event-sheet-description-text p {
    margin-bottom: 12px;
}

/* Botón de acción */
.event-sheet-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.event-sheet-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    background-color: #60bbf9;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event-sheet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.event-sheet-button i {
    margin-left: 8px;
}

/* Estilo para la imagen placeholder */
.placeholder-img {
    object-fit: contain !important;
    padding: 1.5rem;
    background-color: #f8f8f8;
    mix-blend-mode: multiply;
    opacity: 0.8;
}

/* Ajustes responsive */
@media (min-width: 768px) {
    .bottom-sheet {
        width: 600px;
        left: 50%;
        margin-left: -300px;
    }
    
    .event-sheet-image-container {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .event-sheet-title {
        font-size: 20px;
    }
    
    .event-sheet-body {
        padding: 16px;
    }
    
    .event-sheet-button {
        width: 100%;
    }
} 