/* explore.css — guia "Explore Porto Seguro"
   Depende dos tokens de ../style.css (variáveis :root)              */

.explore-page {
  background: var(--linen-50);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.explore-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px min(4%, 24px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-100);
}

.explore-back {
  font-size: 0.9rem;
  color: var(--text-700);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.explore-back:hover {
  background: var(--linen-100);
}

.explore-brand {
  font-size: 1.4rem;
  color: #ab690c;
  text-align: center;
}

.explore-header-spacer {
  width: 120px;
}

@media (max-width: 560px) {
  .explore-brand {
    display: none;
  }
  .explore-header-spacer {
    display: none;
  }
}

/* ── Hero strip ─────────────────────────────────────────────────────── */
.explore-hero {
  background: var(--sand-100);
  text-align: center;
  padding: 48px 20px 40px;
  border-bottom-left-radius: var(--radius-xxl);
  border-bottom-right-radius: var(--radius-xxl);
}

.explore-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: #ab690c;
  margin: 0 0 14px;
  line-height: 1;
}

.explore-subtitle {
  color: var(--text-700);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 62ch;
}

/* ── Destaques ──────────────────────────────────────────────────────── */
.explore-featured {
  width: min(92%, 1180px);
  margin: 26px auto 6px;
  text-align: center;
}

.explore-featured-title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: #ab690c;
  line-height: 1;
  margin: 0 0 4px;
}

.explore-featured-sub {
  color: var(--text-500);
  margin: 0 0 22px;
  font-size: 1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  text-align: left;
}

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--linen-100), var(--sand-100));
  border: 1.5px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.featured-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ab690c;
  background: rgba(171, 105, 12, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.featured-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 6px;
}

.featured-card h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--text-900);
  margin: 0 0 6px;
}

.featured-card p {
  margin: 0 0 14px;
  color: var(--text-700);
  font-size: 0.92rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* ── Filtros ────────────────────────────────────────────────────────── */
.explore-filters {
  position: sticky;
  top: 57px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  background: linear-gradient(
    var(--linen-50) 70%,
    rgba(255, 251, 240, 0)
  );
}

.ex-filter {
  border: 1.5px solid var(--sand-200);
  background: var(--linen-100);
  color: var(--text-700);
  padding: 9px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.ex-filter:hover {
  transform: translateY(-2px);
  border-color: var(--sand-300);
}

.ex-filter.is-active {
  background: var(--sand-300);
  border-color: var(--sand-300);
  color: #2b261f;
}

/* ── Grid de cards ──────────────────────────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  width: min(92%, 1180px);
  margin: 8px auto 0;
  padding-bottom: 20px;
}

.explore-card {
  position: relative;
  background: var(--linen-100);
  border-radius: var(--radius-xl);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: exIn 0.5s ease;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

/* Necessário: como .explore-card define display:flex, o atributo [hidden]
   (que vale display:none no navegador) era sobreposto e o filtro não
   escondia os cards. Esta regra garante que o filtro funcione. */
.explore-card[hidden] {
  display: none !important;
}

@keyframes exIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ex-emoji {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 12px;
}

.ex-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: #b48a60;
  background: var(--sand-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ex-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--text-900);
}

.ex-desc {
  margin: 0 0 14px;
  color: var(--text-700);
  line-height: 1.55;
  flex-grow: 1;
}

.ex-for {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--sand-200);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-900);
}

.ex-link {
  align-self: flex-start;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sand-100);
  color: #b48a60;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.ex-link:hover {
  background: var(--sand-200);
  transform: translateY(-1px);
}

/* ── Estado vazio ───────────────────────────────────────────────────── */
.explore-empty {
  text-align: center;
  color: var(--text-500);
  padding: 30px 20px 10px;
  font-size: 1.05rem;
}

/* ── Rodapé ─────────────────────────────────────────────────────────── */
.explore-footer {
  text-align: center;
  padding: 48px 20px 64px;
}

.explore-footer-quote {
  font-size: 2.2rem;
  color: #ab690c;
  margin: 0 0 20px;
}

.explore-note {
  margin: 22px auto 0;
  max-width: 46ch;
  color: var(--text-500);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .explore-card {
    animation: none;
  }
  .ex-filter:hover,
  .explore-card:hover {
    transform: none;
  }
}
