/**
 * Agenda da semana — Bolo Sem Frescura
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #dac7b8;
  font-family: 'Outfit', sans-serif;
  color: #4a3f35;
  line-height: 1.5;
  padding: 1.5rem 1rem;
}

.agenda-page {
  max-width: 480px;
  margin: 0 auto;
}

/* Topbar: voltar + logo pequeno */
.agenda-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.agenda-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #4a3f35;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.agenda-back:hover {
  opacity: 0.85;
}

.agenda-back span:first-child {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
}

.agenda-back svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.agenda-logo-wrap {
  display: block;
  flex-shrink: 0;
}

.agenda-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Cabeçalho da página */
.agenda-header {
  text-align: center;
  margin-bottom: 2rem;
}

.agenda-periodo {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(74, 63, 53, 0.7);
  margin-bottom: 0.25rem;
}

.agenda-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #3d342c;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.agenda-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(74, 63, 53, 0.85);
}

/* Lista: título do dia e cards são elementos separados */
.agenda-week {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Bloco só do título do dia (elemento separado) */
.agenda-day-title {
  padding: 0.75rem 1rem;
  background: #b67039;
  border: 1px solid rgba(74, 63, 53, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Espaço maior antes do próximo dia (depois dos cards) */
.agenda-day-title:not(:first-child) {
  margin-top: 1.5rem;
}

.agenda-day-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.agenda-day-date {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

/* Estado vazio */
.agenda-empty {
  font-size: 0.95rem;
  color: rgba(74, 63, 53, 0.6);
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}

/* Card de evento (cada um é um bloco separado) */
.agenda-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(74, 63, 53, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.agenda-card-image {
  line-height: 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.agenda-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.agenda-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agenda-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #3d342c;
  margin-bottom: 0;
}

.agenda-card-description {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(74, 63, 53, 0.9);
}

.agenda-card-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #4a3f35;
}

.agenda-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.agenda-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.agenda-card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.agenda-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: #4a3f35;
  background: rgba(74, 63, 53, 0.1);
  border-radius: 999px;
}

.agenda-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a3f35;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(74, 63, 53, 0.2);
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.agenda-card-cta:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(74, 63, 53, 0.3);
}

.agenda-card-cta:focus {
  outline: 2px solid #5a4f45;
  outline-offset: 2px;
}

/* Footer — mesmo padrão da página de links */
.agenda-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(74, 63, 53, 0.5);
}

.agenda-footer a {
  font-size: 0.75rem;
  color: rgba(218, 99, 2, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.agenda-footer a:hover {
  color: rgba(74, 63, 53, 0.75);
}

/* Responsivo */
@media (min-width: 480px) {
  .agenda-title {
    font-size: 2rem;
  }
}
