/* ============================================
   IT'S JUST BIG BEAR — EVENTS & CALENDAR PAGE
   ============================================ */

/* ── Header ── */
.events-header {
  background: linear-gradient(135deg, #e91e63, #ad1457);
  padding: 4rem 0 2.5rem;
  color: #fff;
  text-align: center;
}
.events-header h1 { font-size: 2.5rem; margin-bottom: 0.4rem; }
.events-header .subtitle { font-size: 1.1rem; opacity: 0.9; max-width: 640px; margin: 0 auto; }

/* ── View Toggle ── */
.view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.view-toggle {
  display: flex;
  gap: 0;
  border: 2px solid var(--pine, #1a3a2a);
  border-radius: 8px;
  overflow: hidden;
}
.view-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pine, #1a3a2a);
  transition: all 0.2s;
}
.view-btn.active {
  background: var(--pine, #1a3a2a);
  color: #fff;
}
.view-btn:hover:not(.active) { background: rgba(26,58,42,0.08); }

/* ── Season Filter Pills ── */
.season-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.season-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--border, #ddd);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.season-pill.active,
.season-pill:hover { color: #fff; border-color: transparent; }
.season-pill[data-season="all"].active,
.season-pill[data-season="all"]:hover { background: var(--pine, #1a3a2a); }
.season-pill[data-season="winter"].active,
.season-pill[data-season="winter"]:hover { background: #1565c0; }
.season-pill[data-season="spring"].active,
.season-pill[data-season="spring"]:hover { background: #2e7d32; }
.season-pill[data-season="summer"].active,
.season-pill[data-season="summer"]:hover { background: #e65100; }
.season-pill[data-season="fall"].active,
.season-pill[data-season="fall"]:hover { background: #bf360c; }

/* ── Type Filter Row ── */
.type-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.type-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border, #ddd);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.type-pill.active { background: var(--pine, #1a3a2a); color: #fff; border-color: var(--pine, #1a3a2a); }
.type-pill:hover:not(.active) { border-color: var(--pine, #1a3a2a); }

/* ── Mini Calendar Grid ── */
.calendar-grid-section { margin-bottom: 3rem; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.cal-nav button {
  background: none;
  border: 2px solid var(--pine, #1a3a2a);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pine, #1a3a2a);
  font-size: 1rem;
  transition: all 0.2s;
}
.cal-nav button:hover { background: var(--pine, #1a3a2a); color: #fff; }
.cal-nav h3 { font-size: 1.25rem; min-width: 180px; text-align: center; color: var(--pine, #1a3a2a); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day-header {
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted, #888);
  padding: 0.4rem 0;
}
.cal-day {
  min-height: 70px;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 4px;
  position: relative;
  font-size: 0.78rem;
  transition: all 0.15s;
}
.cal-day.empty { background: transparent; }
.cal-day .day-num {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text, #222);
  margin-bottom: 2px;
}
.cal-day.today { outline: 2px solid var(--sky, #4a90d9); }
.cal-day .cal-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin: 1px 1px;
}
.cal-dot.winter { background: #1565c0; }
.cal-dot.spring { background: #2e7d32; }
.cal-dot.summer { background: #e65100; }
.cal-dot.fall   { background: #bf360c; }

.cal-day:hover:not(.empty) {
  background: #e8f5e9;
  cursor: pointer;
}
.cal-day .cal-event-label {
  display: block;
  font-size: 0.65rem;
  line-height: 1.2;
  color: #fff;
  background: var(--pine, #1a3a2a);
  border-radius: 3px;
  padding: 1px 4px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Month Section Headers (List View) ── */
.month-section { margin-bottom: 3rem; }
.month-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid;
}
.month-header.winter { border-color: #1565c0; }
.month-header.spring { border-color: #2e7d32; }
.month-header.summer { border-color: #e65100; }
.month-header.fall   { border-color: #bf360c; }
.month-header i { font-size: 1.3rem; }
.month-header h2 { font-size: 1.5rem; margin: 0; }

/* ── Event Cards ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.event-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border, #e0e0e0);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.event-card-header {
  padding: 1rem 1.2rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.event-season-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.event-season-tag.winter { background: #e3f2fd; color: #0d47a1; }
.event-season-tag.spring { background: #e8f5e9; color: #1b5e20; }
.event-season-tag.summer { background: #fff3e0; color: #e65100; }
.event-season-tag.fall   { background: #fbe9e7; color: #bf360c; }

.event-date-badge {
  text-align: center;
  min-width: 56px;
  background: var(--pine, #1a3a2a);
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  line-height: 1;
  flex-shrink: 0;
}
.event-date-badge .month-label { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; }
.event-date-badge .day-label   { font-size: 1.3rem; font-weight: 800; margin-top: 2px; display: block; }

.event-card-body {
  padding: 0 1.2rem 1rem;
  flex: 1;
}
.event-card-body h3 {
  font-size: 1.1rem;
  color: var(--pine, #1a3a2a);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.event-card-body .event-meta {
  font-size: 0.82rem;
  color: var(--text-muted, #777);
  margin-bottom: 0.5rem;
}
.event-card-body .event-meta i { margin-right: 4px; }
.event-card-body p {
  font-size: 0.92rem;
  color: var(--text-light, #555);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding: 0 1.2rem 1rem;
}
.event-tag {
  font-size: 0.7rem;
  background: var(--snow, #f5f5f5);
  color: var(--text-muted, #777);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.event-tag.free { background: #e8f5e9; color: #2e7d32; }
.event-tag.ticketed { background: #fff3e0; color: #e65100; }
.event-tag.family { background: #e3f2fd; color: #1565c0; }

/* ── Confirmed Badge ── */
.confirmed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 999px;
}
.template-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e65100;
  background: #fff3e0;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── Weekly Series Cards ── */
.series-section { margin-bottom: 3rem; }
.series-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.series-card {
  background: linear-gradient(135deg, #f8faf9, #eef5f0);
  border: 1.5px solid var(--pine, #1a3a2a);
  border-radius: 12px;
  padding: 1.2rem;
}
.series-card h4 {
  color: var(--pine, #1a3a2a);
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.series-card .series-schedule {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky, #4a90d9);
  margin-bottom: 0.4rem;
}
.series-card p {
  font-size: 0.88rem;
  color: var(--text-light, #555);
  line-height: 1.5;
  margin: 0;
}

/* ── Tip Boxes ── */
.event-tip-box {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-left: 4px solid var(--pine, #1a3a2a);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.event-tip-box h4 { margin: 0 0 0.5rem; color: var(--pine, #1a3a2a); }
.event-tip-box ul { margin: 0; padding-left: 1rem; }
.event-tip-box li {
  font-size: 0.9rem;
  color: var(--text-light, #555);
  line-height: 1.8;
}
.event-tip-box li strong { color: var(--text, #222); }

/* ── Weather Quick Ref ── */
.weather-ref {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 2rem;
}
.weather-month {
  background: #fff;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.78rem;
}
.weather-month .wm-name { font-weight: 700; color: var(--pine, #1a3a2a); margin-bottom: 2px; }
.weather-month .wm-temp { color: var(--text-light, #555); }
.weather-month .wm-snow { color: #1565c0; font-weight: 600; }

/* ── Sources ── */
.sources-bar {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-top: 2rem;
}
.sources-bar h4 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--pine, #1a3a2a); }
.sources-bar ul { margin: 0; padding: 0; list-style: none; }
.sources-bar li { font-size: 0.82rem; color: var(--text-muted, #777); padding: 2px 0; }
.sources-bar li a { color: var(--sky, #4a90d9); }

/* ── Responsive ── */
@media(max-width:768px) {
  .events-header h1 { font-size: 1.8rem; }
  .view-controls { flex-direction: column; align-items: stretch; }
  .season-filters { justify-content: center; }
  .events-grid { grid-template-columns: 1fr; }
  .series-cards { grid-template-columns: 1fr; }
  .cal-grid { font-size: 0.7rem; }
  .cal-day { min-height: 45px; }
  .cal-day .cal-event-label { font-size: 0.55rem; }
  .weather-ref { grid-template-columns: repeat(4, 1fr); }
}
@media(max-width:480px) {
  .weather-ref { grid-template-columns: repeat(3, 1fr); }
  .event-date-badge { min-width: 44px; padding: 4px 6px; }
  .event-date-badge .day-label { font-size: 1.1rem; }
}
