/* ==========================================================================
   CULTURA TRINACIONAL — Estilos específicos da página Agenda
   (Complementa theme.css, não substitui)
   ========================================================================== */

.page-hero {
  padding: 32px 0 24px;
  background: radial-gradient(circle at 80% 0%, rgba(37,99,235,0.25), transparent 55%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 { font-size: clamp(24px, 6vw, 34px); font-weight: 800; margin-bottom: 6px; }
.page-hero .subtitle { color: var(--text-secondary); font-size: 15px; margin-bottom: 10px; }
.page-hero .slogan { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }

/* Abas de período: Hoje / Semana / Mês */

.range-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
  overflow-x: auto;
}

.range-tab {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.range-tab[aria-selected="true"] {
  background: var(--brand-gradient);
  color: #04121c;
  border-color: transparent;
  box-shadow: var(--shadow-glow-blue);
}

/* Filtros adicionais */

.search-box {
  position: relative;
  margin-bottom: 16px;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 13px 40px 13px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14.5px;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { outline: none; border-color: var(--border-glow); }
.search-box .search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
}
.search-box .search-clear:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.search-box.has-value .search-clear { display: flex; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-select {
  flex: 1 1 160px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8b3c7' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Lista de eventos — cartões horizontais (imagem + info) */

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.agenda-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.agenda-card .thumb {
  position: relative;
  flex: 0 0 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}
.agenda-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.agenda-card .thumb .category-tag {
  position: absolute; top: 6px; left: 6px;
  padding: 3px 8px;
  font-size: 9px;
}

.agenda-card .info { flex: 1; min-width: 0; }

.agenda-card .title {
  font-weight: 700; font-size: 15px; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.agenda-card .meta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--text-secondary);
}
.agenda-card .meta-row span { display: inline-flex; align-items: center; gap: 4px; }

.agenda-card .fav-btn {
  align-self: flex-start;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
}
.agenda-card .fav-btn[aria-pressed="true"] { color: #ef4444; }

@media (min-width: 900px) {
  .filter-row { flex-wrap: nowrap; }
  .agenda-card .thumb { flex-basis: 140px; height: 110px; }
}
