/*
Theme Name: Fortimed Links
Theme URI: https://distribuidorafortimed.com.br/
Author: Fortimed Distribuidora
Description: Página de links e campanhas da Fortimed Distribuidora.
Version: 1.1.1
Text Domain: fortimed-links
*/

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #171717;
  --surface-hover: #232323;
  --text: #f7f7f7;
  --muted: #d8d8d8;
  --accent: #f05a22;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 20px 48px;
}

.profile {
  width: min(100%, 680px);
  margin: 0 auto;
  position: relative;
}

.top-actions {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.brand-mark,
.share-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  color: #090909;
  font: 700 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.brand-mark { font-size: 22px; }
.share-button svg { width: 21px; height: 21px; fill: currentColor; }
.share-button:hover { background: #fff; transform: translateY(-1px); }

.profile-header { text-align: center; margin: 4px auto 31px; }

.avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 15px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(23px, 4.5vw, 28px);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -.45px;
}

.profile-header p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.48;
}

.links { display: grid; gap: 14px; }

.link-card {
  position: relative;
  min-height: 64px;
  padding: 10px 48px 10px 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.025);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.16;
  box-shadow: 0 1px 0 rgba(255,255,255,.025) inset;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  outline: none;
}

.link-card:active { transform: scale(.992); }

.link-card img {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 9px;
  background: #292929;
}

.more {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #b7b7b7;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  color: #9f9f9f;
  font-size: 12px;
  letter-spacing: .03em;
}

.footer-logo { color: var(--accent); font-weight: 900; letter-spacing: -.02em; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 540px) {
  .page-shell { padding: 18px 16px 36px; }
  .top-actions { margin-bottom: 3px; }
  .profile-header { margin-bottom: 26px; }
  .avatar { width: 92px; height: 92px; }
  .profile-header p { font-size: 15px; }
  .links { gap: 13px; }
  .link-card { min-height: 62px; padding-left: 70px; font-size: 15px; }
  .link-card img { width: 48px; height: 48px; }
}

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