/*
 * Estilos para páginas de eventos
 * Buddhoom - Sistema de eventos
 */

/* Archivo de eventos */
.eventos-archive {
  padding: 0 0 20px;
}

.eventos-header {
  margin-bottom: 30px;
  text-align: center;
}

.eventos-header h1 {
  color: var(--buddhoom-primary);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.eventos-filtros {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.eventos-filtros .row {
  align-items: end;
}

/* Tarjetas de eventos */
.evento-card {
  background: white;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card:hover {
  /*transform: translateY(-5px);*/
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.evento-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.evento-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evento-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--buddhoom-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.evento-card-badge.destacado {
  background: #ff6b35;
}

.evento-card-content {
  padding: 20px;
}

.evento-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.evento-card-title a {
  color: inherit;
  text-decoration: none;
}

.evento-card-title a:hover {
  color: var(--buddhoom-primary);
}

.evento-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.evento-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}

.evento-meta-item i {
  width: 16px;
  color: var(--buddhoom-primary);
}

.evento-precio {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--buddhoom-primary);
  margin-bottom: 0;
}

.evento-precio-desde {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

.evento-card-footer {
  padding: 0 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.evento-terapeuta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.evento-terapeuta-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.evento-terapeuta-name {
  font-size: 0.9rem;
  color: #666;
}

.evento-card-actions {
  display: flex;
  gap: 10px;
}

.btn-evento-primary {
  background: var(--buddhoom-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-evento-primary:hover {
  background: var(--buddhoom-primary-dark);
  color: white;
}

.btn-evento-secondary {
  background: transparent;
  color: var(--buddhoom-primary);
  border: 1px solid var(--buddhoom-primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-evento-secondary:hover {
  background: var(--buddhoom-primary);
  color: white;
}

/* Página individual de evento */
.evento-single {
  padding: 40px 0;
}

.evento-single-header {
  margin-bottom: 40px;
}

.evento-single-title {
  font-size: 2.5rem;
  color: var(--buddhoom-primary);
  margin-bottom: 20px;
}

.evento-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.evento-single-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #666;
}

.evento-single-meta-item i {
  color: var(--buddhoom-primary);
}

.evento-single-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.evento-single-main {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.evento-single-sidebar {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  height: fit-content;
}

.evento-precio-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evento-precio-box h3 {
  color: var(--buddhoom-primary);
  margin-bottom: 15px;
}

.evento-tipologia {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.evento-tipologia:last-child {
  border-bottom: none;
}

.evento-tipologia-info h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: #333;
}

.evento-tipologia-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.evento-tipologia-precio {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--buddhoom-primary);
}

.evento-stock {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

.evento-stock.agotado {
  color: #dc3545;
}

.evento-info-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evento-info-box h4 {
  color: var(--buddhoom-primary);
  margin-bottom: 10px;
}

.evento-terapeuta-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.evento-terapeuta-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.evento-terapeuta-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.evento-terapeuta-details h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.evento-terapeuta-details p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Estados de eventos */
.evento-estado {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.evento-estado.publicado {
  background: #28a745;
  color: white;
}

.evento-estado.borrador {
  background: #ffc107;
  color: #333;
}

.evento-estado.cancelado {
  background: #dc3545;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .eventos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .evento-single-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .evento-single-title {
    font-size: 2rem;
  }

  .evento-single-meta {
    flex-direction: column;
    gap: 10px;
  }

  .evento-card-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .eventos-header h1 {
    font-size: 2rem;
  }

  .evento-single-title {
    font-size: 1.5rem;
  }

  .evento-single-main,
  .evento-single-sidebar {
    padding: 20px;
  }
}

/* Estilos para el archivo de eventos */
.eventos-archive {
  min-height: 100vh;
}

/* Estilos para selectores múltiples */
.tipo-evento-selector,
.disciplines-selector {
  position: relative;
}

.tipo-evento-search-wrapper,
.disciplines-search-wrapper {
  position: relative;
}

#tipo-evento-search,
#disciplines-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.selected-tipos,
.selected-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  /* margin-bottom: 8px; */
}

.selected-tipo-tag,
.selected-discipline-tag {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #9c8794, #b8a5b3);
  color: white;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.selected-tipo-tag span,
.selected-discipline-tag span {
  margin-right: 5px;
}

.remove-tipo,
.remove-discipline {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.remove-tipo:hover,
.remove-discipline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tipo-evento-dropdown,
.disciplines-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.tipo-evento-dropdown.show,
.disciplines-dropdown.show {
  display: block;
}

.dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item.selected {
  background: #e3f2fd;
  color: #1976d2;
}

/* Responsive */
@media (max-width: 768px) {
  .filtro-sidebar {
    margin-bottom: 2rem;
  }

  .selected-tipos,
  .selected-disciplines {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Estilos para la card de evento */
.evento-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card .card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.book-card,
.item-card-post,
.evento-card .card {
  transition: all 0.3s ease;
}

.book-card:hover,
.item-card-post:hover,
.evento-card .card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.evento-image-container {
  position: relative;
  /* height: 200px; */
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

.evento-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-btn-pri), #b8a5b3);
  color: white;
  font-size: 3rem;
}

.evento-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-tipo {
  background: linear-gradient(135deg, var(--bg-btn-pri), #b8a5b3);
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.badge-online {
  background: #28a745;
  color: white;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 10px;
}

.badge-hibrido {
  background: #17a2b8;
  color: white;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 10px;
}

.evento-title {
  color: #584a63;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 15px !important;
}

.evento-fecha,
.evento-ubicacion {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  color: #9c8794;
}

.eventos-tipo-group .badge-cuantos {
  background-color: #584a63 !important;
}

.badge-discipline,
.eventos-tipo-group .badge-discipline {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 15px;
  font-weight: 500;
  background: rgba(156, 135, 148, 0.2) !important;
  color: #584a63 !important;
}

.evento-resumen {
  line-height: 1.4;
}

.evento-resumen p {
  font-size: 0.8rem;
}

.evento-precio .h6 {
  font-weight: 700;
  color: #584a63;
}

.evento-capacidad {
  font-size: 0.8rem;
}

/* Estados del evento */
.evento-card.evento-agotado {
  opacity: 0.8;
}

.evento-card.evento-agotado .card {
  border: 2px solid #dc3545;
}

.evento-card.evento-agotado .btn {
  background: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .evento-title {
    font-size: 1.1rem;
  }

  .evento-badges {
    top: 8px;
    left: 8px;
  }
}
