/* ===== Illo & Mops – Link-List ===== */

:root {
  --bg-1: #2b2c30;
  --bg-2: #1b1b1f;
  --bg-3: #131316;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-bg-hover: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --text-dim: #b9b9c2;
  --accent: #6ee7c7;
  --accent-2: #7aa2ff;
  --radius: 16px;
  --container: 520px;
  --ring: linear-gradient(135deg, #7aa2ff, #6ee7c7, #f0a8d0);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* animated ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 60vh;
  background:
    radial-gradient(40% 60% at 25% 30%, rgba(122, 162, 255, 0.18), transparent 70%),
    radial-gradient(40% 60% at 80% 20%, rgba(110, 231, 199, 0.16), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.page {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 40px;
}

/* ===== Profile ===== */
.profile {
  text-align: center;
  margin-bottom: 28px;
}

.avatar {
  width: 124px;
  height: 124px;
  margin: 0 auto 18px;
  padding: 4px;
  border-radius: 50%;
  background: var(--ring);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 26px rgba(110, 231, 199, 0.25);
  animation: pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg-2);
}

.name {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.2px;
}

.tagline {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* ===== Social icons ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social svg { width: 22px; height: 22px; }

.social:hover,
.social:focus-visible {
  transform: translateY(-3px) scale(1.06);
}

.social--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35); }
.social--youtube:hover   { background: #ff0000; box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35); }
.social--facebook:hover  { background: #1877f2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35); }

/* ===== Link cards ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.02rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: fade-up 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

/* shine sweep */
.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  background: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.link-card:hover::before,
.link-card:focus-visible::before { left: 130%; }

.link-card:active { transform: translateY(-1px) scale(0.99); }

.link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.link-label { line-height: 1.3; }

.badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bg-3);
  background: var(--accent);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

.mark { color: var(--accent-2); font-weight: 600; }

/* Donate card highlight */
.link-card--donate {
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.18), rgba(240, 168, 208, 0.18));
  border-color: rgba(240, 168, 208, 0.35);
}
.link-card--donate .link-icon { color: #ff8fb1; }

/* ===== Footer ===== */
.footer {
  margin-top: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer p { margin: 6px 0; }

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  border-color: var(--text);
}

.legal { margin: 10px 0; display: flex; gap: 8px; justify-content: center; }
.copyright { opacity: 0.7; font-size: 0.8rem; }

/* ===== Legal pages ===== */
.legal-page {
  max-width: 760px;
  text-align: left;
}
.legal-page h1 { font-size: 1.6rem; margin-bottom: 6px; }
.legal-page h2 { font-size: 1.1rem; margin-top: 28px; color: var(--accent); }
.legal-page p  { color: var(--text-dim); }
.legal-page a  { color: var(--accent-2); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--text); }

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ===== Animations ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== Larger screens ===== */
@media (min-width: 640px) {
  .page { padding-top: 64px; }
  .name { font-size: 1.9rem; }
  .avatar { width: 136px; height: 136px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
