/* ===============================
   🎨 Root Variables
   =============================== */
:root {
  --bg: #0f1724;
  --card: #111827;
  --accent: #F29CC1;
  --accent-2: #70C4C2;
  --accent-contrast: #111827;
  --accent-opaque: rgba(242, 156, 193, 0.12);
  --text: #ffffff;
  --muted: #ffffff;
  --radius: 14px;
  --max-width: 540px;
  --bg-gradient: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 60%);
}

/* ===============================
   ⚙️ Base Styles
   =============================== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg-gradient);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ===============================
   🏷️ Branding
   =============================== */
.brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 6px 0 0;
  width: 100%;
  gap: 0;
  max-width: 260px;
}

.brand-inner .brand-logo {
  width: 140px; /* slightly larger */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.brand-inner a { display: inline-block; }

.tagline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.brand-name{margin-top:8px;font-weight:700;font-size:16px;color:var(--text);text-align:center}

.divider{height:1px;width:100%;background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06), rgba(255,255,255,0.02));margin:18px 0;border-radius:2px}

/* logo transition */
.brand-inner .brand-logo{transition:transform .45s cubic-bezier(.2,.9,.2,1), opacity .45s ease}
.brand-inner .brand-logo.enter{transform:scale(1);opacity:1}

/* ===============================
   📦 Container
   =============================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 18px;
  padding: 28px 28px;
  box-shadow: 0 6px 30px rgba(2,6,23,0.6);
  transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .25s ease;
  opacity: 0;
  transform: translateY(10px);
}

.container.enter {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1);
}

/* ===============================
   🧑 Profile
   =============================== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}

.brand-logo {
  display: block;
  height: auto;
}

.avatar-wrap {
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border: 3px solid var(--accent);
}

.avatar-wrap { margin-bottom: 0; }

.profile img {
  width: 98px;
  height: 98px;
  border-radius: 999px;
  object-fit: cover;
}

.profile h1 {
  margin: 12px 0 6px;
  font-size: 20px;
}

.profile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ===============================
   🔘 Actions
   =============================== */
.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.action-btn {
  /* Liquid-glass style to match link cards */
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: var(--text); /* keep text light on top of glass */
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(2,6,23,0.45);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  color: var(--text) !important; /* force light text */
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.action-btn::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 18%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(14deg) translateX(-10%);
  opacity: 0;
  filter: blur(6px);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(2,6,23,0.5);
  border-color: var(--accent);
}

.action-btn:hover::after {
  transform: rotate(14deg) translateX(80%);
  opacity: 0.28;
}

/* Ensure text inside the action button is always light and icon not recolored */
.action-btn span { color: var(--text) !important; }
.action-btn img { display: inline-block; vertical-align: middle; filter: none !important; }

/* ===============================
   🔗 Links
   =============================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  position: relative;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 6px 18px rgba(2,6,23,0.55);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  animation: floatCard 6s ease-in-out infinite;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.38);
  border-color: var(--accent);
}

.link-card:focus {
  outline: 3px solid var(--accent-opaque);
  outline-offset: 3px;
}

/* ✨ Shine effect (softened) */
.link-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 18%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(14deg) translateX(-10%);
  opacity: 0;
  filter: blur(6px);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
}

.link-card:hover::after {
  transform: rotate(14deg) translateX(80%);
  opacity: 0.35;
}

/* ===============================
   🧩 Link Content
   =============================== */
.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.link-content {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-title::before { display: none; }

.link-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ===============================
   📜 Footer
   =============================== */
.footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* ===============================
   🎬 Animations
   =============================== */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ===============================
   🧘 Accessibility & Motion
   =============================== */
@media (prefers-reduced-motion: reduce) {
  .link-card::after,
  .link-card,
  .action-btn,
  .brand-outside,
  .container {
    animation: none;
    transition: none;
  }
}

/* ===============================
   📱 Responsive
   =============================== */
@media (max-width: 420px) {
  .container {
    padding: 20px;
  }
  .profile img {
    width: 92px;
    height: 92px;
  }
  .brand-inner .brand-logo {
    width: 120px;
  }
  .tagline {
    font-size: 12px;
  }
}

/* ===============================
   4dd LGPD consent banner
   =============================== */
.lgpd-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  background: linear-gradient(180deg, rgba(17,24,39,0.9), rgba(17,24,39,0.82));
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  z-index: 9999;
  font-size: 14px;
}
.lgpd-banner .lgpd-text { flex: 1; color: var(--muted); font-size: 13px; }
.lgpd-banner .lgpd-actions { display: flex; gap: 8px; }
.lgpd-btn { border-radius: 10px; padding: 8px 12px; font-weight:600; text-decoration:none; cursor:pointer; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color:var(--text); }
.lgpd-btn.primary { background: var(--accent); color: var(--accent-contrast); border-color: rgba(0,0,0,0.08); }
.lgpd-btn.ghost { background: transparent; color: var(--muted); border-color: rgba(255,255,255,0.06); }

@media (max-width:520px) {
  .lgpd-banner { flex-direction: column; align-items: stretch; gap: 10px; left: 12px; right:12px; bottom: 12px; }
  .lgpd-banner .lgpd-actions { justify-content: flex-end; }
}

/* Debug toast used during development/testing */
.debug-toast {
  position: fixed;
  right: 18px;
  bottom: 86px;
  background: rgba(17,24,39,0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: opacity .3s ease;
  opacity: 0;
  z-index: 10000;
}
