/**
 * CCS Event Manager - Frontend Styles
 */

/* ==========================================================================
   Events Archive Wrapper
   ========================================================================== */

.events-archive-wrapper {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 150px auto 0;
}

.events-header {
  margin-bottom: 30px;
}

.events-title {
  margin: 0;
}

/* ==========================================================================
   Filter Styles
   ========================================================================== */

.events-filters {
  margin-bottom: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.events-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

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

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.filter-select {
  padding: 0px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: #666;
  outline: none;
}

.filter-actions {
  flex: 0 0 auto;
}

.reset-filters-btn {
  padding: 10px 20px;
  background: #666;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.reset-filters-btn:hover {
  background: #333;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.events-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.events-grid.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   Events Grid
   ========================================================================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  transition: opacity 0.2s ease;
}

/* ==========================================================================
   Event Card
   ========================================================================== */

.event-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.event-card__image {
  overflow: hidden;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
height: 277px;
  transition: transform 0.3s ease;
}

.event-card:hover .event-card__image img {
  transform: scale(1.05);
}

.event-card__content {
  padding: 20px;
}

.event-card__pill {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  .ct {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    position: relative;
    font-size: 13px;
    line-height: normal;
    font-weight: 500;
    &.free {
      background-color: #e6f9d4;
      color: #88bd55;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.1px;
    }
    &.paid {
      background: #fff3cd;
      color: #856404;
      font-weight: 700;
      text-transform: uppercase;
    }
    &.kid {
      background-color: #1a1a1a;
      color: #fff;
    }
    &.adult {
      background-color: #6d6d6d;
      color: #fff;
    }
  }
}

.event-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  min-height: 50px;
	padding-top: 0;
}

.event-card__title a {
  color: #333;
  text-decoration: none;
}

.event-card__date,
.event-card__time,
.event-card__venue,
.event-card__audience {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
	line-height: 16px;
}

.event-card__cost {
  margin: 10px 0;
}

.cost-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.event-card__link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #88bd55;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s ease;
  &.disabled {
    pointer-events: none;
    background-color: #6d6d6d;
  }
}

.event-card__link:hover {
  background: #92cd5c;
	  color: #fff !important;
}


/* ==========================================================================
   Single Event Post
   ========================================================================== */
.event-post {
  position: relative;
  margin-bottom: 100px;
	margin-top: 100px;
  .wrapper {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 30px;
    @media (max-width: 1250px) {
      padding: 0 20px;
    }
    @media (max-width: 1024px) {
      flex-direction: column;
    }
  }
  .main {
    max-width: 900px;
    @media (max-width: 1200px) {
      max-width: 750px;
    }
    @media (max-width: 1024px) {
      max-width: 100%;
    }
  }
}
.event-sidebar {
  margin-top: 40px;
  position: relative;
  .sidebar {
    position: sticky;
    top: 150px;
    background-color: #e9e9e9;
    padding: 20px 20px;
  }
  h3 {
    margin-top: 0;
    font-weight: 600;        
	  font-size: 23px;
        margin-bottom: 10px;
  }
  ul {
    margin: 0;
    padding-left: 20px;
  }
  a {
    font-size: 15px;
    line-height: normal;
	  color: #000;
  }
}

.event-post__image {
  margin-top: 40px;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.event-details {
  position: relative;
  background: #e9e9e9;
  padding: 40px 40px;
  margin-bottom: 30px;
  @media (max-width: 600px) {
    padding: 20px 20px;
  }
  h3 {
    margin-top: 0;
  }
  p {
    margin-bottom: 0;
    margin-top: 8px;
    font-size: 16px;
    &.book {
      margin-top: 15px;
      font-size: 20px;
    }
  }
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.events-pagination-wrapper {
  margin-top: 40px;
}

.events-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-numbers {
  display: flex;
  gap: 4px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination-link:hover:not(.disabled):not(.current) {
  background: #f0f0f0;
  border-color: #999;
}

.pagination-link.current {
  background: #88bd55;
  border-color: #88bd55;
  color: #fff;
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: #666;
}

.pagination-prev,
.pagination-next {
  font-weight: 600;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 992px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .events-filter-form {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .events-archive-wrapper {
    padding: 20px 15px;
  }

  .events-filters {
    padding: 15px;
  }

  .events-pagination {
    gap: 4px;
  }

  .pagination-link {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
}
