/* =========================================================
   FINAXIL — Instagram-style preview page
   Reuses tokens/nav/footer from styles.css
   ========================================================= */

.social-main { padding-top: clamp(96px, 12vw, 132px); }

/* preview banner */
.social-banner {
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; padding: 10px 16px;
}
.social-banner a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.5); }

/* ---------- profile header ---------- */
.profile { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--hairline); }
.profile__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.profile__avatar {
  width: clamp(96px, 14vw, 156px); height: clamp(96px, 14vw, 156px);
  border-radius: 50%; background: var(--char-2); color: #fff;
  display: grid; place-items: center; position: relative; overflow: hidden;
  border: 1px solid var(--hairline);
}
.profile__avatar span { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; }
.profile__avatar span::after { content: "."; color: var(--brass); }
.profile__avatar::before {
  content: ""; position: absolute; right: -30%; top: -10%; width: 80%; height: 120%;
  background: linear-gradient(140deg, transparent 40%, rgba(24,168,140,0.5) 60%, rgba(176,138,79,0.6));
  transform: rotate(20deg);
}

.profile__top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.profile__handle { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
.profile__verify { color: var(--accent); font-size: 0.7em; vertical-align: middle; }
.profile__actions { display: flex; gap: 10px; }
.profile__actions .btn { padding: 10px 22px; font-size: 14px; }

.profile__stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-bottom: 18px; }
.profile__stat b { font-family: var(--display); font-weight: 700; font-size: 18px; }
.profile__stat span { color: var(--ink-soft); font-size: 14px; }
.profile__name { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.profile__bio { color: var(--ink-soft); font-size: 15px; line-height: 1.55; max-width: 52ch; margin: 0; }
.profile__bio a { color: var(--accent); border-bottom: 1px solid var(--hairline); }
.profile__bio .mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--brass); text-transform: uppercase; }

/* ---------- highlights row ---------- */
.highlights { display: flex; gap: clamp(18px, 3vw, 32px); padding-block: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--hairline); overflow-x: auto; }
.highlight { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.highlight__ring { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--hairline); display: grid; place-items: center; color: var(--ink); }
.highlight__ring svg { width: 24px; height: 24px; }
.highlight span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- the grid ---------- */
.feed { padding-block: clamp(6px, 1vw, 12px) clamp(60px, 7vw, 100px); }
.feed__tabs { display: flex; justify-content: center; gap: 40px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.feed__tab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 16px 0; color: var(--ink); border-top: 2px solid var(--ink); margin-top: -1px; }
.feed__tab.is-muted { color: var(--ink-soft); border-top-color: transparent; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(4px, 0.6vw, 8px); margin-top: clamp(4px, 0.6vw, 8px); }
.tile { position: relative; aspect-ratio: 1/1; overflow: hidden; cursor: pointer; background: var(--char-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile__overlay {
  position: absolute; inset: 0; background: rgba(15,14,12,0.66);
  opacity: 0; transition: opacity .35s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(14px, 1.6vw, 22px);
  color: #fff;
}
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { opacity: 1; }
.tile__cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.tile__cap { font-family: var(--display); font-weight: 700; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.1; }
.tile__plus { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; opacity: 0; transition: opacity .35s var(--ease); }
.tile:hover .tile__plus { opacity: 0.9; }
.tile__plus::before, .tile__plus::after { content: ""; position: absolute; background: #fff; }
.tile__plus::before { left: 0; top: 10px; width: 22px; height: 2px; }
.tile__plus::after { top: 0; left: 10px; width: 2px; height: 22px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,12,0.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: min(92vw, 760px); max-height: 86vh; width: auto; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
.lightbox__close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; font-family: var(--display); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 12px; opacity: 0.7; transition: opacity .2s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--light-soft); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 760px) {
  .profile__inner { grid-template-columns: auto 1fr; gap: 20px; }
  .profile__bio { font-size: 14px; }
  .lightbox__nav { font-size: 32px; }
}
@media (max-width: 480px) {
  .profile__inner { grid-template-columns: 1fr; text-align: left; }
  .profile__avatar { width: 92px; height: 92px; }
  .feed__tabs { gap: 24px; }
}
