/* Category Page Styles */

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 40px;
}

.load-more-btn {
  display: inline-block;
  padding: 12px 40px;
  background: #ffffff;
  color: #333333;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

/* Filter Section */
.filter-section {
  background: var(--background-white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.filter-container {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Events Count */
.events-count {
  margin-bottom: 20px;
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

.events-count span {
  color: #333;
  font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Category Header */
.category-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-large);
  color: white;
}

.category-icon-large {
  font-size: 4rem;
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-lg);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.category-info h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.category-info p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.section-header h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* Mobile filter dropdown - hidden by default */
.mobile-filter {
  display: none;
}

.filter-select {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  background: var(--background-white);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.filter-select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border-color);
  background: var(--background-white);
  color: var(--text-secondary);
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Events Section */
.events-section {
  padding: var(--spacing-lg) 0;
  background: var(--background-white);
}

/* Events Grid */
.events-grid {
  display: grid;
  gap: var(--spacing-lg);
}

.events-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Event Card Styles - for event-card elements created by JavaScript */
.event-card {
  background: var(--background-white);
  border-radius: 8px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.event-card:hover {
  transform: translateY(-2px);
}

.event-card-image {
  position: relative;
  width: 100%;
  height: 150px;
}

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

.event-placeholder {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  width: 50px;
  height: 50px;
  opacity: 0.6;
}

.event-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  flex-direction: column;
  align-items: flex-end;
}

.badge {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 500;
}

.badge-new {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge-best {
  background: #ffd700;
  color: #333;
}

.event-card-content {
  padding: 12px;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.event-category {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
}

.event-location {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.event-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000000;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.event-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.event-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.class-card {
  background: var(--background-white);
  border-radius: 8px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.class-card:hover {
  transform: translateY(-2px);
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 150px;
}

.class-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.category-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 500;
}

.featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ffd700;
  color: #333;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
}

.city-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
}

.class-card-content {
  padding: 12px;
}

.class-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000000;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.host-info {
  margin-bottom: 10px;
  padding: 4px 0;
}

.host-name {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  border-left: 3px solid var(--primary-color);
}

.event-datetime {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.event-datetime svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.event-date-time {
  font-weight: 500;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.rating-stars {
  color: #ffd700;
  font-size: 0.8rem;
  letter-spacing: -2px;
}

.rating-number {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-left: 2px;
}

.review-count-row {
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.review-count {
  font-size: 0.85rem;
  color: #64748b;
}

.no-reviews {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-style: italic;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.original-price {
  color: #999;
  font-size: 0.75rem;
  text-decoration: line-through;
}

.discount-percent {
  color: #ff4757;
  font-size: 0.75rem;
  font-weight: 600;
}

.current-price {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
}

.promotion-tag {
  background: #ff4757;
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-block;
}

.event-card-description {
  display: none;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 0.875rem;
}

.event-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.event-card-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-light);
  font-size: 0.9rem;
}

.rating-stars {
  color: var(--warning-color);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-xxl);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

/* Loading State */
.loading-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xxl);
}

.loading-placeholder p {
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Hide desktop filters, show mobile dropdown */
  .desktop-filters {
    display: none;
  }
  
  .mobile-filter {
    display: block;
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
  
@media (max-width: 768px) {
  .category-header {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg);
  }
  
  .category-icon-large {
    font-size: 3rem;
    padding: var(--spacing-md);
  }
  
  .category-info h1 {
    font-size: 2rem;
  }
  
  .category-info p {
    font-size: 1rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .events-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Event Card Mobile Styles */
  .event-card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
  }
  
  .event-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }
  
  .event-card-image {
    height: 150px;
  }
  
  .event-card-content {
    padding: 16px;
  }
  
  .event-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  
  .class-card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
  }
  
  .class-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }
  
  .card-image-container {
    height: 150px;
  }
  
  .class-card-content {
    padding: 16px;
  }
  
  .class-card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  
  .class-card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .filter-buttons {
    flex-direction: column;
  }
  
  .filter-btn {
    text-align: center;
  }
}