/**
 * Events & Calendar page styles - standalone CSS for reliable specificity
 * These styles don't use @layer to avoid Tailwind v4 cascade issues
 */

/* ═══════════════════════════════════════════════════════════════════
   CALENDAR WIDGET
   ═══════════════════════════════════════════════════════════════════ */

.cal-widget {
  background: #fff;
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(92, 61, 30, 0.1);
}

.cal-header {
  background: linear-gradient(to right, #5c3d1e, #3d1c0e);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0e6c8;
  margin: 0 1rem;
}

.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f0e6c8;
  padding: 0.35rem 0.5rem 0.25rem;
}

.cal-dow-row span {
  font-family: 'Lora', serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: #8c7a65;
  text-align: center;
  letter-spacing: 0.05em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.4rem 0.5rem 0.5rem;
  gap: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   CALENDAR DAYS
   ═══════════════════════════════════════════════════════════════════ */

.cal-day {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s;
}

.cal-day:hover {
  background: #f0e6c8;
}

.cal-day__num {
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  color: #5c3d1e;
  line-height: 1;
  margin-bottom: 2px;
}

.cal-day--today .cal-day__num {
  font-weight: 700;
  color: #c4701e;
}

.cal-day--today {
  background: rgba(196, 112, 30, 0.08);
  border: 1.5px solid rgba(196, 112, 30, 0.35);
  border-radius: 6px;
}

.cal-day--other-month .cal-day__num {
  color: #c4b59f;
}

.cal-day--storytime {
  background: rgba(196, 112, 30, 0.06);
}

.cal-day--bookclub {
  background: rgba(45, 58, 92, 0.07);
}

/* ═══════════════════════════════════════════════════════════════════
   CALENDAR NAV BUTTONS (prev/next/today)
   ═══════════════════════════════════════════════════════════════════ */

.cal-nav-btn-icon {
  background: none;
  border: none;
  color: #f0e6c8;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cal-nav-btn-icon:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   EVENT INDICATORS (pips)
   ═══════════════════════════════════════════════════════════════════ */

.cal-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}

.cal-pip--gold {
  background: #d4a830;
}

.cal-pip--amber {
  background: #c4701e;
}

.cal-pip--blue {
  background: #2d3a5c;
}

.cal-pip--teal {
  background: #2a6465;
}

/* ═══════════════════════════════════════════════════════════════════
   EVENT LIST / LINKS
   ═══════════════════════════════════════════════════════════════════ */

.cal-event-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #3d1c0e;
  transition: background 0.2s;
}

.cal-event-link:hover {
  background: #f0e6c8;
}

.event-card {
  background: #fff;
  border: 1px solid rgba(92, 61, 30, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════
   LEGEND
   ═══════════════════════════════════════════════════════════════════ */

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: #faf7f0;
  border-top: 1px solid rgba(92, 61, 30, 0.08);
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Lora', serif;
  font-size: 0.74rem;
  color: #8c7a65;
}
