/* ============================================
   ✦ BADASSNUGGET — SOCIALS PAGE STYLESHEET ✦
   (Nunito + Quicksand are loaded by the <link> in the page head)
   ============================================ */

:root {
  --pink:        #f7c5d8;
  --pink-mid:    #f0a0c0;
  --pink-deep:   #e07aa0;
  --lilac:       #d4b8e8;
  --lilac-mid:   #c0a0dc;
  --mint:        #b8e8d4;
  --mint-mid:    #90d4bc;
  --white:       #ffffff;
  --grey-light:  #e8e0ef;
  --grey-mid:    #c8bcd8;
  --grey-dark:   #8a7a9a;
  --text-dark:   #4a3a5a;
  --text-mid:    #7a6a8a;
  --text-light:  #aaa0ba;

  --glass-bg:    rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(180, 140, 210, 0.18), 0 2px 8px rgba(200, 160, 220, 0.12);

  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   24px;

  --font-display: 'Nunito', sans-serif;
  --font-body:    'Quicksand', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg,
    #f0e8f8 0%, #e8d8f4 20%, #dce8f8 45%, #d4f0e8 65%, #e8d8f4 85%, #f4e0f0 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-dark);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--pink-mid), var(--lilac-mid)); border-radius: 10px; }

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

/* ── Background orbs + sparkles ── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; animation: drift 20s ease-in-out infinite; }
.orb-1 { width: 450px; height: 450px; background: radial-gradient(circle, #f7c5d8, #f0a0c0 50%, transparent 70%); top: -5%; left: -5%; animation-duration: 22s; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, #d4b8e8, #c0a0dc 50%, transparent 70%); bottom: 10%; right: -5%; animation-duration: 26s; animation-delay: -8s; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, #b8e8d4, #90d4bc 50%, transparent 70%); top: 40%; left: 8%; animation-duration: 30s; animation-delay: -14s; }

@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(25px,-18px) scale(1.04); }
  66%       { transform: translate(-18px,25px) scale(0.97); }
}

.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.sparkle { position: absolute; left: var(--x); top: var(--y); font-size: calc(var(--s)*1.2rem); color: #e07aa0; opacity: 0.55; animation: twinkle 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%,100% { opacity:0.25; transform:scale(1) rotate(0deg); } 50% { opacity:0.85; transform:scale(1.3) rotate(20deg); } }

/* ── Layout ── */
.container {
  position: relative; z-index: 2;
  max-width: 560px; margin: 0 auto;
  padding: 28px 16px 48px;
  display: flex; flex-direction: column; gap: 14px;
}

.glass-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: var(--radius-lg);
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
}

/* ── Back nav ── */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-mid);
  border-radius: 40px;
  width: fit-content;
  transition: color 0.2s, transform 0.15s;
  animation: slideUp 0.4s ease both;
}
.back-btn:hover { color: var(--pink-deep); transform: translateX(-3px); }

/* ── Page header ── */
.page-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  animation: slideUp 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.05s both;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 900;
  color: var(--text-dark); line-height: 1;
}

.page-subtitle { font-size: 0.84rem; color: var(--text-mid); margin-top: 3px; font-weight: 500; }

/* avatar: square picture, falls back to an emoji */
.header-avatar {
  flex: none;
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 2.2rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: linear-gradient(135deg, rgba(247,197,216,0.7) 0%, rgba(212,184,232,0.7) 100%);
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Header speech bubble (tail points at the avatar) ──
   Change --bw (border width), --bc (border colour) or --bubble-bg here;
   the tail follows automatically. */
.header-bubble {
  --bw: 3px;
  --bc: var(--pink-mid);
  --bubble-bg: #fcedf8;
  position: relative;
  flex: 1; min-width: 0;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--bubble-bg);
  border: var(--bw) solid var(--bc);
  box-shadow: var(--glass-shadow);
}
/* tail outline (border colour) */
.header-bubble::before {
  content: ''; position: absolute;
  top: 50%; left: calc(-8px - var(--bw) * 1.5);
  margin-top: calc(-8px - var(--bw) * 1.5);
  border: calc(8px + var(--bw) * 1.5) solid transparent; border-left: 0;
  border-right-color: var(--bc);
}
/* tail fill (covers the border where the tail joins) */
.header-bubble::after {
  content: ''; position: absolute;
  top: 50%; left: -8px; margin-top: -8px;
  border: 8px solid transparent; border-left: 0;
  border-right-color: var(--bubble-bg);
  
}

/* ── Socials grid ── */
.socials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  animation: slideUp 0.5s ease 0.15s both;
}

/* ── Social card (a link that opens in a new tab) ──
   Placeholder colour comes from --h (a hue, 0–360). It cycles through the
   palette automatically; override per card with style="--h:200".
   Add an <img class="social-img"> inside to replace the placeholder. */
.social-card {
  --h: 335;
  position: relative;
  display: block;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background:
    radial-gradient(circle at 28% 22%, hsl(var(--h) 100% 97% / .9), transparent 42%),
    radial-gradient(circle at 72% 78%, hsl(calc(var(--h) + 50) 90% 80% / .85), transparent 52%),
    linear-gradient(160deg, hsl(var(--h) 85% 88%), hsl(calc(var(--h) + 35) 80% 80%));
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-card:nth-child(5n+1) { --h: 335; }
.social-card:nth-child(5n+2) { --h: 270; }
.social-card:nth-child(5n+3) { --h: 160; }
.social-card:nth-child(5n+4) { --h: 200; }
.social-card:nth-child(5n+5) { --h: 300; }

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(180,140,210,0.28), 0 4px 16px rgba(200,160,220,0.2);
}
.social-card:focus-visible { outline: 3px solid var(--lilac-mid); outline-offset: 3px; }

/* soft gloss across the top */
.social-card::after {
  content: ''; position: absolute; inset: 0 0 50% 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  pointer-events: none;
}

.social-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.social-label {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  max-width: calc(100% - 20px);
  display: flex; flex-direction: column; gap: 1px;
  padding: 6px 14px;
  border-radius: 20px;
}
.social-name {
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 800;
  color: var(--text-dark); line-height: 1.2;
}
.social-handle {
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* "opens in new tab" arrow, top right */
.social-open {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-mid);
  transition: color 0.2s;
}
.social-open svg { width: 13px; height: 13px; }
.social-card:hover .social-open { color: var(--pink-deep); }

/* ── Footer ── */
.site-footer {
  text-align: center; font-size: 0.78rem; color: var(--text-light);
  padding-top: 4px;
  animation: slideUp 0.5s ease 0.3s both;
}
.site-footer a { color: var(--pink-deep); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 420px) {
  .container { padding: 16px 10px 36px; }
  .page-title { font-size: 1.4rem; }
}

@media (min-width: 600px) {
  .container { padding: 40px 24px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .sparkle { animation: none; }
}