/* ================================
   Atlas Saúde Visual — Link da Bio
   ================================ */

:root {
  --navy: #062a63;
  --navy-dark: #031a3d;
  --teal: #1596a6;
  --teal-light: #4fc3ca;
  --red: #d83232;
  --white: #ffffff;
  --bg: #f5f9fb;
  --text: #14304f;
  --muted: #6c7d90;
  --border: rgba(6, 42, 99, 0.10);
  --shadow: 0 18px 50px rgba(6, 42, 99, 0.12);
  --shadow-hover: 0 24px 65px rgba(6, 42, 99, 0.20);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(79, 195, 202, 0.16), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(216, 50, 50, 0.06), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #eef5f8 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
}

body::before {
  width: 360px;
  height: 360px;
  top: -160px;
  left: -140px;
  border: 1px solid rgba(21, 150, 166, 0.15);
}

body::after {
  width: 460px;
  height: 460px;
  right: -250px;
  bottom: -220px;
  border: 1px solid rgba(6, 42, 99, 0.10);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 42px 20px 28px;
}

.profile-container {
  width: min(760px, 100%);
  margin: 0 auto;
}

.profile-header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeUp 0.55s ease both;
}

.brand-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), #0b438e);
  box-shadow:
    0 15px 30px rgba(6, 42, 99, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-cross {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-5px);
}

.brand-pulse {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 20px;
  height: 2px;
  background: var(--teal-light);
}

.brand-pulse::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border-left: 2px solid var(--teal-light);
  border-top: 2px solid var(--teal-light);
  transform: translate(-50%, -50%) rotate(45deg);
}

.profile-header h1 {
  color: var(--navy);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.profile-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.profile-header p strong {
  color: var(--teal);
  font-weight: 700;
}

.content-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.content-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(21, 150, 166, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(6, 42, 99, 0.05);
}

.links-section {
  display: grid;
  gap: 18px;
}

.offer-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  animation: fadeUp 0.62s 0.08s ease both;
}

.offer-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
}

.offer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(
    180deg,
    transparent 52%,
    rgba(3, 26, 61, 0.38) 100%
  );
  transition: opacity 0.3s ease;
}

.offer-action {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: white;
  background: rgba(3, 26, 61, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.offer-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer-card:hover,
.offer-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(21, 150, 166, 0.28);
  outline: none;
}

.offer-card:hover img,
.offer-card:focus-visible img {
  transform: scale(1.018);
}

.offer-card:hover .offer-overlay,
.offer-card:focus-visible .offer-overlay {
  opacity: 1;
}

.offer-card:hover .offer-action,
.offer-card:focus-visible .offer-action {
  opacity: 1;
  transform: translateY(0);
}

.offer-card:active {
  transform: translateY(-1px) scale(0.995);
}

.site-footer {
  padding-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  animation: fadeUp 0.7s 0.15s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 768px) {
  .page-shell {
    padding-top: 32px;
  }

  .profile-header {
    margin-bottom: 26px;
  }

  .offer-card {
    border-radius: 22px;
  }
}

/* Celular */
@media (max-width: 520px) {
  .page-shell {
    padding: 26px 12px 22px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin-bottom: 14px;
  }

  .profile-header h1 {
    font-size: 1.7rem;
  }

  .profile-header p {
    font-size: 0.88rem;
  }

  .content-tags {
    margin-top: 14px;
    gap: 6px;
  }

  .content-tags span {
    font-size: 0.67rem;
    padding: 6px 9px;
  }

  .links-section {
    gap: 14px;
  }

  .offer-card {
    border-radius: 18px;
  }

  .offer-action {
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 0.68rem;
  }

  /* Em telas touch o CTA fica visível */
  @media (hover: none) {
    .offer-overlay {
      opacity: 1;
      background: linear-gradient(
        180deg,
        transparent 68%,
        rgba(3, 26, 61, 0.36) 100%
      );
    }

    .offer-action {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
