/* ═══════════════════════════════════════════════════════════════════
   ASTRO 360 v2 — extras.css
   Footer + WhatsApp + Forms
   ═══════════════════════════════════════════════════════════════════ */

/* ─── FOOTER ─── */
footer {
  padding: 80px 5% 32px;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 4, 25, 0.6);
  position: relative; z-index: 5;
  margin-top: 60px;
}
footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.footer-brand-top { display: flex; align-items: center; gap: 16px; }
.footer-brand-top img {
  width: 56px; height: 56px;
  filter: drop-shadow(0 0 12px rgba(232, 198, 104, 0.3));
}
.footer-brand-top h3 {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.footer-brand-top h3 + small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
}
.footer-brand p {
  font-family: var(--sans);
  color: var(--lilas-mist);
  font-size: 0.94rem;
  line-height: 1.65;
}
.footer-tagline {
  font-family: var(--serif-display) !important;
  font-style: italic;
  color: var(--gold-mist) !important;
  font-size: 1rem !important;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-family: var(--sans);
  color: var(--lilas-mist);
  text-decoration: none;
  padding: 7px 0;
  font-size: 0.92rem;
  transition: color var(--tr-fast);
}
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--glass-border);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--lilas-soft);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── WHATSAPP ─── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  display: flex; align-items: center; gap: 0;
  text-decoration: none;
}
.whatsapp-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ea952);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.4),
    0 0 0 0 rgba(37, 211, 102, 0.6);
  transition: var(--tr-base);
  position: relative; z-index: 2;
  animation: pulse-ws 2.4s ease-in-out infinite;
}
@keyframes pulse-ws {
  0%   { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-icon svg { width: 32px; height: 32px; fill: white; }
.whatsapp-tooltip {
  background: rgba(10, 4, 25, 0.95);
  backdrop-filter: blur(20px);
  color: var(--white);
  padding: 12px 22px 12px 26px;
  border-radius: var(--r-pill) 0 0 var(--r-pill);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  margin-right: -22px;
  border: 1px solid var(--gold);
  border-right: none;
  white-space: nowrap;
  transition: var(--tr-base);
  opacity: 0; transform: translateX(20px);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
.whatsapp-float:hover .whatsapp-icon { transform: scale(1.08); }

@media (max-width: 700px) {
  .whatsapp-tooltip { display: none; }
  .whatsapp-float { bottom: 18px; right: 18px; }
  .whatsapp-icon { width: 52px; height: 52px; }
  .whatsapp-icon svg { width: 26px; height: 26px; }
}

/* ─── FORMS ─── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  transition: var(--tr-base);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--glass-bg-hi);
  box-shadow: 0 0 0 4px rgba(232, 198, 104, 0.12);
}
.field-help {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--lilas-soft);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════════════
   ASTRO 360 — Avatar pequeno + dropdown (Sprint 1.2 v4)
   ADICIONA estes estilos ao final do teu /css/extras.css
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Botão do usuário (Avatar + nome) ─── */
.nav-user-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(232, 198, 104, 0.08);
  border: 1px solid rgba(232, 198, 104, 0.25);
  border-radius: 100px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  margin-right: 4px;
}

.nav-user-button:hover {
  background: rgba(232, 198, 104, 0.18);
  border-color: rgba(232, 198, 104, 0.5);
  transform: translateY(-1px);
}

/* ─── Avatar pequeno redondo ─── */
.nav-user-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(232, 198, 104, 0.5);
  flex-shrink: 0;
  background: linear-gradient(135deg, #c9a449, #e8c668);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback (sem foto) — mostra inicial */
.nav-user-pic-initial {
  color: #0a0419;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}

.nav-user-firstname {
  font-family: 'Inter Tight', system-ui, sans-serif;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.nav-user-arrow {
  font-size: 0.7rem;
  color: rgba(232, 198, 104, 0.7);
  margin-left: -2px;
}

/* ─── Dropdown ─── */
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  min-width: 240px;
  background: rgba(17, 8, 38, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 198, 104, 0.32);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(10, 4, 25, 0.55);
  z-index: 1000;
  flex-direction: column;
  gap: 2px;
}

.nav-user-dropdown.open {
  display: flex;
}

.nav-user-dropdown-header {
  padding: 12px 14px 14px;
  border-bottom: 1px solid rgba(232, 198, 104, 0.18);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-user-dropdown-header strong {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 0.96rem;
  font-weight: 500;
}

.nav-user-dropdown-header small {
  color: rgba(217, 208, 245, 0.65);
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

.nav-user-dropdown a,
.nav-user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  color: #d9d0f5;
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover {
  background: rgba(232, 198, 104, 0.12);
  color: #fff;
}

.nav-user-dropdown button#logoutBtn {
  color: #ffb3b3;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 158, 158, 0.18);
  padding-top: 12px;
  border-radius: 0 0 8px 8px;
}

.nav-user-dropdown button#logoutBtn:hover {
  background: rgba(255, 158, 158, 0.12);
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .nav-user-firstname {
    display: none;
  }
  .nav-user-arrow {
    display: none;
  }
  .nav-user-button {
    padding: 4px;
    border-radius: 50%;
  }
  .nav-user-pic {
    width: 30px;
    height: 30px;
  }
  .nav-user-dropdown {
    right: 8px;
    min-width: 200px;
  }
}
