/* === Calendar View Page Styles === */

/* Page title */
.calendar-view-title {
  text-align: center;
  color: #333;
  font-size: 2rem;
  margin: 30px 0 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.calendar-view-subtitle {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* Filter / Search bar */
.events-toolbar {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 16px;
}

.events-search {
  padding: 10px 16px;
  font-size: 0.95rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  width: 280px;
  transition: border-color 0.2s;
  outline: none;
}

.events-search:focus {
  border-color: #ff5419;
}

.events-filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #555;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: #ff5419;
  color: #ff5419;
}

.filter-btn.active {
  background: #ff5419;
  color: #fff;
  border-color: #ff5419;
}

/* Events grid */
.events-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 16px 40px;
}

/* Single event card */
.event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

/* Colored top strip */
.event-card-strip {
  height: 6px;
}

.event-card-strip.upcoming,
.event-card-strip.this_year {
  background: linear-gradient(90deg, #ff5419, #ff8c00);
}

.event-card-strip.ongoing,
.event-card-strip.recent {
  background: linear-gradient(90deg, #28a745, #5bd97a);
}

.event-card-strip.past,
.event-card-strip.older {
  background: linear-gradient(90deg, #999, #bbb);
}

/* Card body */
.event-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  line-height: 1.35;
}

.event-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.event-card-title a:hover {
  color: #ff5419;
}

.event-card-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #666;
}

.event-card-dates .date-icon {
  font-size: 1rem;
}

.event-card-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

/* Status badge */
.event-card-footer {
  padding: 14px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-badge.upcoming,
.event-badge.this_year {
  background: #fff3e6;
  color: #e65c00;
}

.event-badge.ongoing,
.event-badge.recent {
  background: #e6f9ed;
  color: #1a8c3f;
}

.event-badge.past,
.event-badge.older {
  background: #f0f0f0;
  color: #888;
}

.event-link {
  font-size: 0.85rem;
  color: #ff5419;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.event-link:hover {
  color: #cc4010;
  text-decoration: underline;
}

/* Multiple links in footer */
.release-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Empty state */
.events-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 1.1rem;
}

/* Stats summary bar */
.events-stats {
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-box {
  flex: 1;
  min-width: 150px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.stat-box .stat-number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.stat-box .stat-label {
  font-size: 0.82rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-box.upcoming .stat-number { color: #e65c00; }
.stat-box.ongoing .stat-number { color: #1a8c3f; }
.stat-box.past .stat-number { color: #888; }
.stat-box.total .stat-number { color: #333; }

/* Responsive */
@media (max-width: 700px) {
  .events-grid {
    grid-template-columns: 1fr;
  }

  .events-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .events-search {
    width: 100%;
  }

  .events-filter-buttons {
    justify-content: center;
  }

  .events-stats {
    flex-direction: column;
  }
}
