/* Estilos para la página de detalle de Boop */
:root {
    --primary-color: #ff3b5c;
    --secondary-color: #333333;
    --background-color: #f0f2f5;
    --card-color: #ffffff;
    --text-color: #333333;
    --text-secondary: #6c757d;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    background-color: var(--background-color);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text-color);
}

.boop-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Cabecera del Boop */
.boop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.go-back {
    flex: 0 0 auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.back-button:hover {
    color: var(--primary-color);
    background-color: #f1f1f1;
    transform: translateX(-3px);
}

.back-button i {
    margin-right: 0.5rem;
}

.boop-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    flex: 1;
}

.boop-views {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.private-badge {
    display: inline-flex;
    align-items: center;
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.private-badge i {
    margin-right: 0.3rem;
}

.edit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.edit-button:hover {
    background-color: var(--primary-color-dark);
}

.delete-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    margin-left: 0.5rem;
}

.delete-button:hover {
    background-color: #bd2130;
}

/* Contenido principal */
.boop-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.boop-left-column, .boop-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Galería de imágenes */
.boop-gallery {
    background-color: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.03);
}

.thumbnail-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.thumbnails {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    flex: 1;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.thumbnail {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    background-color: var(--card-color);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.gallery-nav:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.prev-btn, .next-btn {
    /* Estos son los botones específicos de navegación */
}

/* Información del anfitrión */
.host-info {
    background-color: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.host-info h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.host-info h3 i {
    color: var(--primary-color);
}

.host-profile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.host-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-name {
    display: flex;
    flex-direction: column;
}

.host-name h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.view-profile-link {
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s;
}

.view-profile-link:hover {
    color: #e01d3f;
    transform: translateX(3px);
}

.view-profile-link i {
    font-size: 0.8rem;
}

.send-message-link{
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s;
}

.send-message-link:hover {
    color: #e01d3f;
    transform: translateX(3px);
}

.send-message-link i {
    font-size: 0.8rem;
}

/* Tarjeta de información del boop */
.boop-info-card {
    background-color: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.boop-info-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boop-info-card h3 i {
    color: var(--primary-color);
}

/* Fecha y hora */
.event-date {
    margin-bottom: 1rem;
}

.date-time-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
}

.date-box {
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.month-year {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.calendar-grid {
    padding: 0.8rem;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    text-align: center;
}

.days span {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.days span:not(.empty):hover {
    background-color: #f1f1f1;
}

.days span.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 59, 92, 0.3);
}

.days span.empty {
    visibility: hidden;
}

.time-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem 0;
}

.time-slot, .duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.5rem;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.time-slot i, .duration i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.start, .end {
    font-weight: 600;
}

.separator {
    margin: 0 0.3rem;
    color: var(--text-secondary);
}

/* Capacidad */
.event-capacity {
    margin-bottom: 1rem;
}

.capacity-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
}

.capacity-meter {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.capacity-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.capacity-text {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.capacity-text .current {
    color: var(--primary-color);
    font-weight: 600;
}

.capacity-text .total {
    font-weight: 600;
}

/* Ubicación */
.event-location {
    margin-bottom: 1rem;
}

.location-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
}

.location-address {
    margin-bottom: 1rem;
    padding-left: 0.3rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.boop-map {
    height: 200px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Descripción */
.event-description {
    margin-bottom: 1rem;
}

.description-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
}

.description-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Sección para unirse */
.join-section {
    margin-top: 0.5rem;
}

.join-form {
    width: 100%;
}

.join-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(255, 59, 92, 0.2);
}

.join-button:hover {
    background-color: #e01d3f;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 59, 92, 0.3);
}

.join-button:active {
    transform: translateY(0);
}

/* Contenedor para múltiples calendarios */
.date-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
}

.date-box {
    flex: 1;
    min-width: 240px;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.secondary-month {
    border-left: 2px dashed var(--primary-color);
}

.month-year {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.month-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 0 0 0 4px;
}

.month-tag.start {
    background-color: #28a745;
}

.month-tag.end {
    background-color: #dc3545;
}

/* Estilos para los días en el calendario */
.days span.start-date {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 4px 0 0 4px;
    position: relative;
}

.days span.end-date {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    position: relative;
}

/* Para eventos de un solo día */
.days span.start-date:only-child,
.days span.start-date:last-child,
.days span.end-date:first-child {
    border-radius: 4px;
}

.days span.between-dates {
    background-color: rgba(255, 59, 92, 0.2);
    position: relative;
}

/* Si el evento dura más de dos meses, mostrar indicador */
.extended-period-indicator {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f1f1f1;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.host-button {
    background-color: #6c757d;
    cursor: not-allowed;
}

.host-button:hover {
    background-color: #6c757d;
    transform: none;
    box-shadow: 0 3px 8px rgba(108, 117, 125, 0.2);
}

.request-button {
    background-color: #17a2b8;
}

.request-button:hover {
    background-color: #138496;
    box-shadow: 0 5px 12px rgba(23, 162, 184, 0.3);
}

.waiting-button {
    background-color: #ffc107;
    color: #212529;
}

.waiting-button:hover {
    background-color: #e0a800;
    box-shadow: 0 5px 12px rgba(255, 193, 7, 0.3);
}

.login-button {
    background-color: #28a745;
}

.login-button:hover {
    background-color: #218838;
    box-shadow: 0 5px 12px rgba(40, 167, 69, 0.3);
}

/* Estado del usuario */
.status-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.status-container.pending .status-message {
    background-color: var(--warning-color);
    color: #212529;
}

.status-container.pending .status-message i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.status-container.waiting .status-message {
    background-color: var(--info-color);
    color: white;
}

.status-container.confirmed .status-message {
    background-color: var(--success-color);
    color: white;
}

.cancel-button, .leave-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-button {
    background-color: var(--danger-color);
}

.cancel-button:hover {
    background-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.leave-button {
    background-color: #6c757d;
}

.leave-button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .boop-content {
        grid-template-columns: 1fr;
    }
    
    .boop-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .boop-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .boop-title {
        order: -1;
        width: 100%;
        text-align: left;
    }
    
    .boop-views {
        width: 100%;
        justify-content: flex-start;
    }
    
    .main-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .boop-detail-container {
        padding: 1rem;
    }
    
    .host-avatar {
        width: 60px;
        height: 60px;
    }
    
    .thumbnail {
        flex: 0 0 60px;
        height: 50px;
    }
}

.share-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

.share-button i {
    margin: 0;
}