/* ══════════════════════════════════════════════════════
   CASE STUDY SELECTOR — selector.css
   Design: dark theme matching metenergy_site
══════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #030810;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════
   NAVBAR (same as wind-farm page)
══════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  background: rgba(3, 8, 22, 0.80);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(77, 184, 255, 0.12);
}

#nav-back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: #4db8ff; text-decoration: none;
  border-radius: 6px; transition: background 0.2s;
}
#nav-back:hover { background: rgba(77, 184, 255, 0.15); }
#nav-back svg { width: 20px; height: 20px; }

#nav-logo { height: 28px; width: auto; filter: drop-shadow(0 0 12px rgba(77, 184, 255, 0.2)); }

#nav-title {
  font-size: 0.82rem; font-weight: 400;
  color: rgba(185, 215, 255, 0.7);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════════ */
#selector-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.selector-header {
  text-align: center;
  margin-bottom: 3rem;
}

.selector-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.selector-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(185, 215, 255, 0.55);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   CARDS GRID
══════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   CASE CARD — Glass morphism
══════════════════════════════════════════════════════ */
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(6, 14, 34, 0.70);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(77, 184, 255, 0.15);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4db8ff, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 184, 255, 0.35);
  box-shadow: 0 12px 40px rgba(77, 184, 255, 0.08), 0 0 0 1px rgba(77, 184, 255, 0.1);
}

.case-card:hover::before {
  opacity: 1;
}

/* ── Coming soon state ── */
.case-card.coming-soon {
  cursor: default;
  opacity: 0.55;
}

.case-card.coming-soon:hover {
  transform: none;
  border-color: rgba(77, 184, 255, 0.15);
  box-shadow: none;
}

.case-card.coming-soon:hover::before {
  opacity: 0;
}

.card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(245, 194, 0, 0.15);
  color: #F5C200;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(245, 194, 0, 0.25);
}

/* ── Card icon ── */
.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

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

/* ── Card body ── */
.card-body {
  flex: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(185, 215, 255, 0.55);
  margin-bottom: 1.25rem;
}

/* ── Tags ── */
.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.tag-wind {
  background: rgba(77, 184, 255, 0.12);
  color: #4db8ff;
  border: 1px solid rgba(77, 184, 255, 0.2);
}

.tag-rain {
  background: rgba(77, 184, 255, 0.12);
  color: #4db8ff;
  border: 1px solid rgba(77, 184, 255, 0.2);
}

.tag-region {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(185, 215, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Card arrow ── */
.card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(77, 184, 255, 0.35);
  transition: color 0.3s ease, transform 0.3s ease;
}

.card-arrow svg {
  width: 18px;
  height: 18px;
}

.case-card:hover .card-arrow {
  color: #4db8ff;
  transform: translateX(3px);
}

.case-card.coming-soon .card-arrow {
  display: none;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
#footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(77, 184, 255, 0.08);
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.5;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(77, 184, 255, 0.15));
}

#footer p {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(185, 215, 255, 0.35);
  letter-spacing: 0.05em;
  /* Caixa alta como no splash: a assinatura e a mesma frase nos dois lugares,
     e ela so le como assinatura em caixa alta. */
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   BACKGROUND SUBTLE GRADIENT
══════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(77, 184, 255, 0.04), transparent),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(77, 184, 255, 0.03), transparent);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  #selector-main {
    padding: 5rem 1rem 3rem;
  }

  .selector-header h1 {
    font-size: 1.5rem;
  }

  .selector-subtitle {
    font-size: 0.9rem;
  }

  .case-card {
    padding: 1.5rem 1.25rem;
  }

  .card-title {
    font-size: 1.05rem;
  }
}
