/* Terra Ventos — Agregador de Links
   Design tokens extraídos do site de produção (terraventos.com) */

:root {
  --tv-ink: #111827;
  --tv-gold: #c4b096;
  --tv-gold-gradient-end: #a8906c;

  --font-display: 'Avenir', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-label: 'Diodrum', sans-serif;
  --font-ui: 'Manrope', system-ui, -apple-system, sans-serif;

  --ease-standard: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }

html, body {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-ui);
  color: #fff;
  min-height: 100dvh;
  position: relative;
}

.bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: windPan 22s ease-in-out infinite alternate;
}

@keyframes windPan {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1.5%, -1.5%); }
}

@media (max-width: 768px) {
  .bg { animation: none; }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0d1a2666 0%, #0d1a2699 55%, #0d1a26cc 100%);
}

.wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 32px;
  gap: 36px;
  max-width: 560px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* ---- Entrada animada (stagger fade + slide) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealIn .7s cubic-bezier(.165,.84,.44,1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff26;
  border: 1px solid #ffffff40;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease-standard), background-color .25s var(--ease-standard);
}

.social-row svg { width: 16px; height: 16px; }

.social-row a:hover {
  background: var(--tv-gold);
  border-color: var(--tv-gold);
  color: var(--tv-ink);
  transform: translateY(-3px);
}

.logo-wrap {
  position: relative;
  display: inline-flex;
  overflow: visible;
  z-index: 0;
}

.logo {
  position: relative;
  z-index: 1;
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(2);
}

.verified-badge {
  position: absolute;
  z-index: 2;
  top: 0px;
  right: -7px;
  display: inline-flex;
  color: var(--tv-gold);
}

.verified-badge svg { width: 18px; height: 18px; }

.tagline {
  font-family: var(--font-label);
  font-size: .85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  opacity: .85;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.link-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border-radius: 20px;
  background: #ffffffe6;
  color: var(--tv-ink);
  box-shadow: 0 10px 30px #00000026;
  border: 1px solid #ffffff59;
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease-standard), box-shadow .3s var(--ease-standard), background-color .3s var(--ease-standard);
}

.link-card:not(.contact-card):hover {
  transform: translateY(-4px);
  background: var(--tv-gold);
  box-shadow: 0 16px 34px #c4b09659;
}

/* Shimmer — faixa de brilho que varre o botão no hover */
.link-card::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, #ffffffb3, transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.link-card:not(.contact-card):hover::after {
  animation: shimmer .9s var(--ease-standard);
}

@keyframes shimmer {
  from { left: -60%; }
  to   { left: 130%; }
}

/* Link em destaque — badge + borda com brilho pulsante */
.link-card.featured {
  border: 1px solid var(--tv-gold);
  box-shadow: 0 10px 30px #00000026, 0 0 0 0 #c4b09666;
  animation: revealIn .7s cubic-bezier(.165,.84,.44,1) forwards, featuredGlow 2.6s ease-in-out infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + .9s);
}

@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 10px 30px #00000026, 0 0 0 0 #c4b09666; }
  50%      { box-shadow: 0 10px 30px #00000026, 0 0 0 8px #c4b09600; }
}

@media (prefers-reduced-motion: reduce) {
  .link-card.featured { animation: none; }
  .link-card:not(.contact-card):hover::after { animation: none; }
}

.link-card.featured { padding-top: 26px; }

.featured-badge {
  position: absolute;
  top: 10px;
  right: 16px;
  background: var(--tv-gold);
  color: var(--tv-ink);
  font-family: var(--font-label);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px #00000026;
}

.link-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tv-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s var(--ease-standard);
}

.link-icon svg { width: 22px; height: 22px; }

.link-card:not(.contact-card):hover .link-icon {
  background: #fff;
  color: var(--tv-ink);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  text-align: left;
}

.link-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.link-sub {
  font-family: var(--font-label);
  font-size: .82rem;
  color: #555;
}

.link-card:not(.contact-card):hover .link-sub {
  color: #2c2416;
}

.link-arrow {
  flex: 0 0 auto;
  font-size: 1.2rem;
  transition: transform .3s var(--ease-standard);
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
}

/* Card de contato — 3 ícones em vez de link único */
.contact-card {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.contact-heading {
  text-align: center;
  align-items: center;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.contact-icons a {
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tv-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease-standard), background-color .25s var(--ease-standard), box-shadow .25s var(--ease-standard);
}

.icon-badge-wrap {
  position: relative;
  display: inline-flex;
}

.status-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: statusPulse 1.8s ease-out infinite;
}

@keyframes statusPulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; }
}

.contact-icons svg { width: 22px; height: 22px; }

.contact-icons a:hover {
  background: var(--tv-gold);
  color: var(--tv-ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px #c4b09659;
}

/* ---- Compartilhar: copiar link + QR code ---- */
.share-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.share-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff1f;
  border: 1px solid #ffffff40;
  color: #fff;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-standard), background-color .25s var(--ease-standard);
}

.share-btn svg { width: 16px; height: 16px; }

.share-btn:hover {
  background: var(--tv-gold);
  border-color: var(--tv-gold);
  color: var(--tv-ink);
  transform: translateY(-2px);
}

.qr-panel[hidden] { display: none; }

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 20px;
  border-radius: 20px;
  background: #ffffffe6;
  color: var(--tv-ink);
  box-shadow: 0 10px 30px #00000026;
  text-align: center;
  animation: revealIn .4s cubic-bezier(.165,.84,.44,1) forwards;
}

.qr-panel img {
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 2px 10px #00000014;
}

.qr-panel p {
  font-family: var(--font-label);
  font-size: .78rem;
  color: #555;
  max-width: 320px;
}

/* ---- Ripple no clique ---- */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: #c4b09666;
  transform: scale(0);
  animation: rippleOut .6s var(--ease-standard);
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(2.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ripple { animation: none; display: none; }
}

.footer {
  font-family: var(--font-label);
  font-size: .78rem;
  color: #fff;
  opacity: .75;
  text-align: center;
}

@media (max-width: 480px) {
  .wrap { padding: 36px 16px 24px; gap: 28px; }
  .link-card { padding: 16px 18px; gap: 14px; }
  .link-title { font-size: 1rem; }
}
