/* ============================================================
   DLVR — links.css
   Styles for links.html (linktree-style page)
   ============================================================ */

/* ── BG GRID (links page only) ─────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 184, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 184, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridmove 24s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridmove {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 48px, 48px 0; }
}

/* ── LAYOUT ────────────────────────────────── */
html, body { min-height: 100%; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 64px;
}

.inner {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── HEADER BLOCK (logo + avatar) ──────────── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* Logo image (wordmark / logotype) */
.profile-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: .9;
  filter: brightness(0) invert(1);   /* forces white — remove if logo is already white */
}

/* Avatar / photo de profil */
.avatar {
  width: 88px;
  height: 88px;
  position: relative;
  flex-shrink: 0;
}

.avatar-ring {
  position: absolute; inset: -3px;
  border: 1px solid var(--teal-dim);
  animation: ring-spin 12s linear infinite;
}

@keyframes ring-spin {
  from { transform: rotate(0deg);   clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%); }
  to   { transform: rotate(360deg); clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%); }
}

.avatar-inner {
  width: 88px;
  height: 88px;
  background: var(--grey1);
  border: 1px solid var(--grey2);
  position: relative;
  overflow: hidden;
}

/* Profile photo */
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}

/* ── PROFILE NAME ──────────────────────────── */
.profile-name {
  font-family: var(--vt);
  font-size: 48px;
  color: var(--white);
  letter-spacing: 6px;
  line-height: 1;
  text-align: center;
  position: relative;
  margin-bottom: 6px;
}

.profile-name::before {
  content: attr(data-t);
  position: absolute; inset: 0;
  color: var(--red);
  clip-path: polygon(0 30%, 100% 30%, 100% 55%, 0 55%);
  transform: translateX(-3px);
  animation: pnR 6s steps(1) infinite;
  opacity: .55;
}

.profile-name::after {
  content: attr(data-t);
  position: absolute; inset: 0;
  color: var(--teal);
  clip-path: polygon(0 65%, 100% 65%, 100% 80%, 0 80%);
  transform: translateX(3px);
  animation: pnB 6s steps(1) infinite;
  opacity: .55;
}

@keyframes pnR {
  0%, 90%, 100% { transform: translateX(-3px); }
  91%            { transform: translateX(5px);  clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%); }
  93%            { transform: translateX(0);    clip-path: none; }
}

@keyframes pnB {
  0%, 84%, 100% { transform: translateX(3px); }
  85%            { transform: translateX(-5px); clip-path: polygon(0 70%, 100% 70%, 100% 88%, 0 88%); }
  87%            { transform: translateX(0);    clip-path: none; }
}

.profile-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--grey4);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── NEW RELEASE PILL ──────────────────────── */
.new-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--teal-dim);
  background: var(--teal-bg);
  padding: 7px 14px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 28px;
  transition: all .2s;
  width: 100%;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.new-pill::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 184, .08), transparent);
  animation: sheen 3s ease infinite;
}

@keyframes sheen {
  0%         { left: -100%; }
  60%, 100%  { left: 160%; }
}

.new-pill:hover {
  background: rgba(0, 212, 184, .12);
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(0, 212, 184, .12);
}

.pill-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 1.6s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: .5; }
}

/* ── SECTION DIVIDER ───────────────────────── */
.section-label {
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--grey3);
  text-align: center;
  width: 100%;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey2);
}

/* ── LINK TILES ────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.link-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  border: 1px solid var(--grey2);
  padding: 14px 18px;
  background: var(--grey1);
  color: var(--white);
  transition: border-color .18s, background .18s, transform .15s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}

.link-tile::after {
  content: '→';
  position: absolute;
  right: 18px;
  color: var(--grey3);
  font-size: 14px;
  transition: color .18s, transform .18s;
}

.link-tile:hover {
  border-color: var(--teal-dim);
  background: var(--teal-bg);
  transform: translateX(3px);
  box-shadow: -3px 0 0 var(--teal-dim);
}

.link-tile:hover::after {
  color: var(--teal);
  transform: translateX(3px);
}

/* ── FEATURED TILE (premier lien) ───────────── */
.link-tile.featured {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border-color: var(--teal-dim);
  background: var(--grey1);
  gap: 0;
  overflow: hidden;
}

.link-tile.featured::after { display: none; }

.lt-featured-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  position: relative;
}

.lt-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) brightness(.85);
  transition: filter .3s, transform .3s;
}

.link-tile.featured:hover .lt-featured-img img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.03);
}

/* Overlay gradient sur l'image */
.lt-featured-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(6,6,6,.7) 100%);
  pointer-events: none;
}

.lt-featured-body {
  padding: 16px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--teal-dim);
  background: rgba(0, 212, 184, .04);
}

.lt-featured-body .lt-body { flex: 1; }

.lt-featured-arrow {
  font-size: 18px;
  color: var(--teal-dim);
  flex-shrink: 0;
  transition: color .18s, transform .18s;
}

.link-tile.featured:hover {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0, 212, 184, .08);
  transform: none;
}

.link-tile.featured:hover .lt-featured-arrow {
  color: var(--teal);
  transform: translateX(4px);
}

.link-tile.featured .lt-title { color: var(--teal); }

/* ── STANDARD ICON TILES ───────────────────── */
.lt-icon {
  font-family: var(--vt);
  font-size: 26px;
  line-height: 1;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  color: var(--grey4);
  transition: color .18s;
}

.link-tile:hover .lt-icon { color: var(--teal); }

.lt-body { flex: 1; min-width: 0; }

.lt-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1.2;
  text-transform: uppercase;
}

.lt-sub {
  font-size: 10px;
  color: var(--grey4);
  margin-top: 2px;
  letter-spacing: 1px;
}

/* ── SOCIALS ROW ───────────────────────────── */
.socials {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.social-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  border: 1px solid var(--grey2);
  padding: 12px 8px;
  background: var(--grey1);
  color: var(--grey4);
  font-size: 9px;
  letter-spacing: 2px;
  transition: all .18s;
  text-align: center;
}

.social-btn:hover {
  border-color: var(--teal-dim);
  color: var(--teal);
  background: var(--teal-bg);
}

.social-btn .si {
  font-family: var(--vt);
  font-size: 22px;
  color: var(--grey3);
  transition: color .18s;
}

.social-btn:hover .si { color: var(--teal); }

/* ── FOOTER ────────────────────────────────── */
.foot {
  margin-top: 40px;
  text-align: center;
  font-size: 10px;
  color: var(--grey3);
  letter-spacing: 2px;
  line-height: 2.2;
}

.foot a { color: var(--teal-dim); text-decoration: none; }
.foot a:hover { color: var(--teal); }
