/* =============================================================================
   LINK-IN-BIO  —  stil
   Fisier identic pentru toate site-urile. Culorile si dimensiunile vin din
   config.php, injectate ca variabile CSS in <head>. Nu edita acest fisier.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable.woff2') format('woff2');
}

/* --- reset --------------------------------------------------------------- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
h1, h2, h3, p { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }

/* --- animatii ------------------------------------------------------------ */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ping   { 75%, 100% { transform: scale(2); opacity: 0; } }

.fade-up { opacity: 0; animation: fade-up .7s cubic-bezier(.22, 1, .36, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .page, .fade-up { animation-duration: .01ms !important; }
  .dot-ping { animation: none; }
}

/* --- structura ----------------------------------------------------------- */
.page {
  position: relative;
  min-height: 100vh;
  animation: fade-in .5s ease-out forwards;
}
.page-inner { position: relative; z-index: 10; }

/* Fundal neclar (doar desktop) */
.backdrop { display: none; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: blur(40px); }
.backdrop .veil { position: absolute; inset: 0; background: var(--bg-veil); }

/* Cardul */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 32px;
  background-color: var(--bg);
}

/* Aura colorata din spatele pozei (doar mobil) */
.halo {
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  height: calc(var(--avatar-top) + var(--avatar-size) / 2);
  background: linear-gradient(var(--halo-from), var(--halo-to) 100%);
}

/* --- poza rotunda (mobil) ------------------------------------------------ */
.avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: var(--avatar-top);
}
.avatar-ring {
  width: var(--avatar-size);
  height: var(--avatar-size);
  padding: 4px;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--ring-from), var(--ring-to));
}
.avatar-ring img {
  width: 100%; height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  object-position: var(--focus-m);
}

/* --- portret mare (desktop) ---------------------------------------------- */
.portrait { display: none; position: relative; }
.portrait-media {
  position: relative;
  width: 100%;
  aspect-ratio: 566 / 546;
  overflow: hidden;
  border-radius: var(--card-r) var(--card-r) 0 0;
  background-color: var(--bg);
}
.portrait-media img {
  width: 100%;
  height: calc(100% - 1px);
  object-fit: cover;
  object-position: var(--focus-d);
}
.portrait-fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 160px;
  pointer-events: none;
  background: var(--portrait-fade);
}
.portrait-id {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 24px 12px;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}

/* --- nume + username ----------------------------------------------------- */
.identity-m { padding: 0 24px; margin-top: 4px; text-align: center; }

.name {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0;
  color: var(--fg);
  overflow: visible;
  text-align: center;
}
.name-inner { position: relative; display: inline-block; font-weight: 750; }
.badge {
  position: absolute;
  left: 100%; top: 0; bottom: 0;
  margin-left: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge svg { height: .85em; width: .85em; }

.uname {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.25rem;
  font-weight: 400;
  color: var(--fg);
}
.sep { color: var(--muted); }

.status { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.dot { position: relative; display: flex; height: 8px; width: 8px; }
.dot-ping {
  position: absolute;
  display: inline-flex;
  height: 100%; width: 100%;
  border-radius: 9999px;
  opacity: .75;
  background-color: var(--status);
  animation: ping 1.5s cubic-bezier(0, 0, .2, 1) infinite;
}
.dot-core {
  position: relative;
  display: inline-flex;
  height: 8px; width: 8px;
  border-radius: 9999px;
  background-color: var(--status);
}

/* --- butoane ------------------------------------------------------------- */
.buttons {
  flex: 1 1 0%;
  padding: .75rem 16px 8px;
}
.buttons > * + * { margin-top: 16px; }

.pill {
  display: block;
  position: relative;
  width: 100%;
  height: var(--btn-h);
  overflow: hidden;
  border: 0;
  border-radius: var(--btn-r);
  background-color: var(--pill-default-bg);
  color: var(--pill-default-fg);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .18);
  transition: box-shadow .3s ease, transform .3s ease;
}
.pill:hover {
  box-shadow: 0 0 40px hsl(258 87% 60% / .3);
  filter: brightness(1.05);
  transform: scale(1.05);
}
.pill[data-custom-bg] {
  background-color: var(--pill-bg);
  color: var(--pill-fg);
}
.pill-inner {
  position: relative;
  z-index: 10;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pill-label {
  width: 100%;
  padding: 0 64px;
  text-align: center;
  font-size: var(--btn-fs);
  font-weight: 750;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- retele sociale ------------------------------------------------------ */
.socials { display: flex; gap: 12px; justify-content: center; }
.socials a {
  width: 44px; height: 44px;
  border-radius: 9999px;
  background-color: var(--fg-20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
}
.socials a:hover { opacity: .8; }
.social-ico { width: 20px; height: 20px; color: var(--fg); }

.socials-m { padding: 8px 24px; }
.socials-d { display: none; padding: 4px 24px 8px; }

/* =============================================================================
   DESKTOP  (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .card {
    width: 100%;
    max-width: var(--card-w);
    margin: 24px auto;
    min-height: 0;
    z-index: 10;
    border-radius: var(--card-r);
    box-shadow:
      0 60px 120px -28px rgba(0, 0, 0, .6),
      0 28px 56px -20px rgba(0, 0, 0, .45),
      0 8px 20px -8px rgba(0, 0, 0, .32),
      inset 0 1px 1px rgba(255, 255, 255, .6),
      inset 0 -2px 3px rgba(0, 0, 0, .22),
      0 0 0 1px rgba(0, 0, 0, .08);
  }

  .halo,
  .avatar-wrap,
  .identity-m,
  .socials-m { display: none; }

  .portrait { display: block; }
  .socials-d { display: block; }

  .name { margin-bottom: 4px; line-height: 1.5; }

  .buttons { padding-top: 2rem; }
}

/* =============================================================================
   PAGINA DE REDIRECT  (go.php)
   ========================================================================== */
.redir {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  background-color: var(--bg);
  color: var(--fg);
}
.redir-avatar {
  width: 88px; height: 88px;
  border-radius: 9999px;
  object-fit: cover;
  object-position: var(--focus-m);
  box-shadow: 0 4px 20px -6px rgba(0, 0, 0, .35);
}
.redir h1 { font-size: 20px; font-weight: 750; }
.redir p  { font-size: 14px; color: var(--muted); }
.redir-bar {
  width: 180px; height: 4px;
  border-radius: 9999px;
  overflow: hidden;
  background-color: var(--fg-20);
}
.redir-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 9999px;
  background-color: var(--status);
  animation: redir-slide 1.1s ease-in-out infinite;
}
@keyframes redir-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.redir-manual {
  font-size: 14px;
  font-weight: 600;
  color: var(--status);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================================================
   BARA "DESCHIDE IN BROWSER"
   Apare doar in aplicatiile sociale, cand saritura automata nu a reusit.
   Tap-ul pe butonul ei reuseste aproape intotdeauna.
   ========================================================================== */
.lb-bar {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: #111114;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  animation: lb-bar-in .3s ease-out both;
}
@keyframes lb-bar-in {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.lb-bar span { flex: 1 1 auto; }
.lb-bar button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: #111114;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.lb-bar button:active { opacity: .8; }
.lb-bar .lb-bar-x {
  background: none;
  color: #fff;
  padding: 4px 6px;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  opacity: .6;
}

/* Andrea — delicate community guidelines */
.community-guidelines { margin: 32px 18px 26px; color: #574550; }
.community-eyebrow { text-align: center; margin: 0 0 13px; color: #a27a91; font-size: 10px; font-weight: 650; letter-spacing: .19em; }
.community-panel { padding: 23px 20px 20px; background: rgba(255,255,255,.77); border: 1px solid rgba(231,187,209,.45); border-radius: 21px; box-shadow: 0 9px 30px rgba(164,102,136,.075); }
.community-panel h2 { margin: 0 0 10px; text-align: center; font-size: 17px; line-height: 1.4; font-weight: 720; color: #634356; letter-spacing: -.025em; }
.community-intro { margin: 0 0 18px; text-align: center; font-size: 12px; line-height: 1.6; color: #8a6d7d; }
.community-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.community-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 11.5px; line-height: 1.65; font-weight: 400; color: #776573; }
.community-list strong { color: #594354; font-weight: 680; }
.community-emoji { flex: 0 0 19px; font-size: 14px; line-height: 1.45; text-align: center; }
.community-outro { margin: 20px 0 0; text-align: center; font-size: 11.5px; line-height: 1.65; color: #8c6680; font-weight: 550; }
@media (min-width: 768px) { .community-guidelines { margin: 30px 28px 28px; } .community-panel { padding: 25px 24px 23px; } }
@media (max-width: 380px) { .community-guidelines { margin-inline: 12px; } .community-panel { padding: 19px 15px; } .community-panel h2 { font-size: 15px; } }
