/* ============================================================
   Setembro Amarelo Theme — Caramelo Papelaria
   Conceito: campanha de valorização da vida (prevenção ao suicídio)
   Tom: acolhedor, esperançoso, respeitoso — luz de amanhecer
   Paleta: amarelo/dourado, caramelo e verde da marca, branco quente
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow:      #ffcf33;
  --yellow-dk:   #f2a71b;
  --yellow-pl:   #fff4cc;
  --gold:        #e8a72b;
  --gold-dk:     #cf8c17;
  --gold-pl:     #fbeecb;
  --green:       #7fbf5a;
  --green-dk:    #5ba83f;
  --green-pl:    #edf7e2;
  --caramel:     #e89c2b;
  --caramel-pl:  #fbeccb;
  --warm:        #fff9ec;
  --white:       #ffffff;
  --text:        #4a3d1a;
  --text-muted:  #8a7a4e;
  --shadow:      0 8px 40px rgba(242, 167, 27, 0.22);
  --shadow-btn:  0 4px 18px rgba(207, 140, 23, 0.24);
  --radius-card: 24px;
  --radius-btn:  50px;
  --font-display: 'Pacifico', cursive;
  --font-body:    'Quicksand', system-ui, sans-serif;
}

/* ── Canvas ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Layout ── */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: var(--font-body);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Card ── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background-color: rgba(255, 249, 236, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(242, 167, 27, 0.32);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 2.75rem 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* faixa amarela sutil no topo do card */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--yellow), var(--gold), var(--yellow));
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  pointer-events: none;
}

/* ── Badge ── */
.badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dk), var(--yellow));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(242, 167, 27, 0.45);
  z-index: 2;
}

/* ── Header ── */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px var(--green);
  position: relative;
  z-index: 1;
}

.glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    var(--yellow),
    var(--gold),
    var(--caramel),
    var(--green),
    var(--yellow)
  );
  animation: spin-ring 7s linear infinite;
  z-index: 0;
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-dk);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Links ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.link-item:nth-child(1) { border-color: var(--yellow);  }
.link-item:nth-child(2) { border-color: var(--gold);    }
.link-item:nth-child(3) { border-color: var(--green);   }
.link-item:nth-child(4) { border-color: var(--caramel); }
.link-item:nth-child(5) { border-color: var(--yellow-dk); }

.link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}

.link-item:nth-child(1)::before { background: var(--yellow-pl); }
.link-item:nth-child(2)::before { background: var(--gold-pl);   }
.link-item:nth-child(3)::before { background: var(--green-pl);  }
.link-item:nth-child(4)::before { background: var(--caramel-pl);}
.link-item:nth-child(5)::before { background: var(--yellow-pl); }

.link-item:hover,
.link-item:focus {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 28px rgba(242, 167, 27, 0.26);
  outline: none;
}

.link-item:hover::before,
.link-item:focus::before {
  opacity: 1;
}

.link-deco {
  font-size: 1rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.link-item:hover .link-deco {
  transform: scale(1.25) rotate(-8deg);
}

.link-label {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.link-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.link-item:hover .link-arrow {
  transform: translateX(3px);
}

/* ── Footer ── */
footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.message {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--caramel);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.cvv {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-dk);
  text-decoration: none;
  background: var(--yellow-pl);
  border: 1.5px solid rgba(242, 167, 27, 0.4);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cvv:hover,
.cvv:focus {
  background: var(--yellow);
  color: var(--white);
  transform: translateY(-1px);
  outline: none;
}

footer small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 4px; }
