/* ============================================================
   REDES SOCIAIS — Link-in-Bio  (vanilla CSS, mobile-first)
   ============================================================ */

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

:root {
  --bg: hsl(195, 50%, 12%);
  --bg-light: hsl(195, 50%, 18%);
  --cyan: hsl(184, 100%, 48%);
  --cyan-60: hsl(184, 100%, 60%);
  --cyan-dark: hsl(195, 50%, 10%);
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300E2F4' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 30px hsla(184, 100%, 48%, 0.3);
}

.brand h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ---------- CTA Principal ---------- */
.cta-main {
  display: block;
  width: 100%;
  margin-bottom: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(to right, var(--cyan), var(--cyan-60));
  color: var(--cyan-dark);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 20px hsla(184, 100%, 48%, 0.4);
  transition:
    box-shadow 0.2s,
    transform 0.1s;
}
.cta-main:hover {
  box-shadow: 0 4px 30px hsla(184, 100%, 48%, 0.6);
}
.cta-main:active {
  transform: scale(0.97);
}

.cta-main-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cta-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  font-family: inherit;
}
.section-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section-header .chevron {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s;
}
.section-header.open .chevron {
  transform: rotate(180deg);
}

.section-links {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.25s;
  opacity: 0;
}
.section-links.open {
  opacity: 1;
  /* max-height set via JS */
}

.section-links-inner {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Link Item ---------- */
.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.link-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}
.link-item:active {
  transform: scale(0.98);
}

.link-item.highlight {
  background: linear-gradient(
    to right,
    hsla(184, 100%, 48%, 0.15),
    hsla(184, 100%, 48%, 0.05)
  );
  border-color: hsla(184, 100%, 48%, 0.3);
}
.link-item.highlight:hover {
  border-color: hsla(184, 100%, 48%, 0.6);
}

.link-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
}
.link-item.highlight .link-icon {
  color: var(--cyan);
}

.link-label {
  flex: 1;
}

.link-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.link-item.highlight .link-badge {
  background: var(--cyan);
  color: var(--cyan-dark);
}

/* ---------- Socials ---------- */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}
.socials a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.socials svg {
  width: 20px;
  height: 20px;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 32px;
}

/* ---------- Animations ---------- */
.fade-in {
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
