/*
 * Shared site navigation.
 *
 * Every public page (landing, template gallery, login) renders the same bar,
 * in the same order, with the same labels. Previously each page hand-rolled its
 * own header, so the links visibly moved and renamed themselves as you browsed
 * — "Galeria de Exemplos" on one page was "Entrar no App" in the same slot on
 * the next.
 */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  flex: 0 0 auto;
}

.site-nav-brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #ffffff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}

.site-nav-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav-link {
  position: relative;
  text-decoration: none;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav-link:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* The page you are on is marked in place — the links never reorder. */
.site-nav-link.is-current {
  color: #1d4ed8;
  background: #eff6ff;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-left: 8px;
}

.site-nav-ghost {
  text-decoration: none;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.site-nav-ghost:hover {
  background: #f1f5f9;
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
  transition: background 0.18s ease;
}

.site-nav-cta:hover {
  background: #1d4ed8;
}

.site-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

@media (max-width: 900px) {
  .site-nav-container {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }
  .site-nav-toggle {
    display: block;
  }
  .site-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding-top: 6px;
    border-top: 1px solid #e2e8f0;
  }
  .site-nav-actions {
    display: none;
    width: 100%;
    padding-left: 0;
    padding-bottom: 6px;
  }
  .site-nav-actions > * {
    flex: 1;
    text-align: center;
  }
  .site-nav.is-open .site-nav-links,
  .site-nav.is-open .site-nav-actions {
    display: flex;
  }
}
