/* ==========================================================================
   OUR LINKS — "Highlights"
   Opened from Instagram / TikTok bios, so it borrows their grammar: the
   brand's own highlight bubbles in a thumb-sized grid, under two big buttons.
   New components: highlight bubble (.lk-bubble), mini ticket (.lk-offer).
   ========================================================================== */

body[data-page="links"] { background: var(--purple); padding-block-end: 0; }
.lk-page { position: relative; overflow: hidden; isolation: isolate; min-block-size: 100svh; display: grid; justify-items: center; padding: 1.75rem 1.25rem 2.5rem; background: var(--purple); color: var(--on-dark); }
.lk-swirl { position: absolute; z-index: -1; inline-size: min(170vw, 60rem); inset-block-start: -12rem; inset-inline-start: 50%; margin-inline-start: -18rem; transform: rotate(-12deg); color: var(--purple-swirl); }
.lk-swirl .symbol { inline-size: 100%; }
.lk-card { inline-size: min(100%, 26rem); display: grid; gap: 1.35rem; justify-items: center; align-content: start; text-align: center; }

.lk-badge { inline-size: 7.5rem; block-size: 7.5rem; border-radius: 50%; background: var(--isabella); padding: 0.35rem; box-shadow: 0 0 0 4px var(--purple), 0 0 0 7px var(--flamingo); transition: transform var(--t-med) var(--ease); }
.lk-badge:hover { transform: scale(1.05) rotate(-6deg); }
.lk-title h1 { font-size: 1.875rem; line-height: 1.25; }
.lk-title p { color: var(--on-dark-soft); font-size: var(--fs-small); margin-block-start: 0.2rem; }
.lk-open { margin-block-start: 0.7rem; padding: 0.3rem 0.85rem 0.3rem 0.7rem; border-radius: var(--r-pill); background: rgba(248, 241, 230, 0.1); color: var(--isabella); font-size: var(--fs-small); }
[dir="rtl"] .lk-open { padding: 0.3rem 0.7rem 0.3rem 0.85rem; }

.lk-actions { inline-size: 100%; display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.6rem; }
.lk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-block-size: 4rem; padding-inline: 1rem; border-radius: var(--r-pill); font-weight: 800; font-size: 1.1875rem; transition: transform var(--t-fast) var(--ease); }
.lk-btn:hover { transform: translateY(-3px); }
.lk-btn .ic { inline-size: 1.4rem; block-size: 1.4rem; }
.lk-btn.is-primary { background: var(--flamingo); color: #fff; box-shadow: var(--shadow-cta); }
.lk-btn.is-lime { background: var(--lime); color: var(--purple); }

/* Mini ticket */
.lk-offer { --stub: 6.25rem; --notch: 0.6rem; --x: var(--stub); inline-size: 100%; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr) auto; align-items: center; background: var(--isabella); color: var(--purple); border-radius: var(--r-md); text-align: start; overflow: hidden; transition: transform var(--t-fast) var(--ease);
  -webkit-mask: radial-gradient(circle var(--notch) at var(--x) 0, #0000 calc(100% - 1px), #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--x) 100%, #0000 calc(100% - 1px), #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--x) 0, #0000 calc(100% - 1px), #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--x) 100%, #0000 calc(100% - 1px), #000) bottom / 100% 51% no-repeat; }
[dir="rtl"] .lk-offer { --x: calc(100% - var(--stub)); }
.lk-offer:hover { transform: translateY(-3px) rotate(-0.6deg); }
.lk-offer-value { font-family: var(--font-latin); align-self: stretch; display: grid; place-items: center; background: var(--flamingo); color: #fff; font-size: 1.5rem; font-weight: 800; border-inline-end: 2px dashed rgba(255, 255, 255, 0.6); text-align: center; }
[dir="rtl"] .lk-offer-value { text-align: center; }
.lk-offer > span { display: grid; padding: 0.85rem 1rem; line-height: 1.35; }
.lk-offer small { font-size: var(--fs-tiny); font-weight: 700; color: var(--flamingo-deep); }
[dir="rtl"] .lk-offer small { font-size: var(--fs-small); }
.lk-offer span b { font-weight: 800; }
.lk-offer > .ic { margin-inline-end: 1rem; color: var(--ink-mute); }

/* Highlight bubbles */
.lk-grid { inline-size: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem 0.75rem; padding-block: 0.5rem; }
.lk-bubble { display: grid; justify-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--fs-small); line-height: 1.3; }
[dir="rtl"] .lk-bubble { font-size: 1rem; }
.lk-bubble img { inline-size: min(100%, 5.75rem); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px var(--purple), 0 0 0 5px rgba(248, 241, 230, 0.28); transition: transform var(--t-med) var(--ease), box-shadow var(--t-fast); }
.lk-bubble:hover img { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 3px var(--purple), 0 0 0 5px var(--flamingo); }
.lk-site { font-size: var(--fs-small); color: var(--on-dark-mute); font-family: var(--font-latin); }

/* === PHONE (≤ 760px) ======================================================
   Already phone-first; on the phone it gets tighter groups (brand · actions
   · highlights · socials), 44 px tap targets everywhere, a press feedback
   on touch, and room for the notch and the home bar.                     */
@media (max-width: 760px) {
  .lk-page { padding: max(0.9rem, env(safe-area-inset-top)) var(--gutter) max(1.5rem, env(safe-area-inset-bottom)); }
  .lk-card { gap: 1rem; }
  .lk-card > .lang button { min-inline-size: 2.75rem; block-size: 2.75rem; }

  /* Brand: badge, name, live status */
  .lk-badge { inline-size: 6.5rem; block-size: 6.5rem; margin-block-start: 0.25rem; }
  .lk-title h1 { font-size: 1.75rem; }
  .lk-title p { margin-block-start: 0.1rem; }
  .lk-open { display: inline-flex; align-items: center; gap: 0.45rem; min-block-size: 2.75rem; margin-block-start: 0.55rem; padding-block: 0; }

  /* Actions: the two buttons and the ticket read as one group */
  .lk-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-block-start: 0.25rem; }
  .lk-btn { min-block-size: 3.75rem; gap: 0.45rem; padding-inline: 0.6rem; font-size: 1.125rem; white-space: nowrap; }
  :root:not([dir="rtl"]) .lk-btn { font-size: 1rem; }
  .lk-btn .ic { inline-size: 1.3rem; block-size: 1.3rem; flex: none; }
  .lk-btn:active { transform: scale(0.97); }
  .lk-offer { --stub: 5.75rem; margin-block-start: -0.35rem; }
  .lk-offer-value { font-size: 1.35rem; }
  .lk-offer > span { padding: 0.75rem 0.9rem; }
  .lk-offer:active { transform: scale(0.98); }

  /* Highlights: nine thumb-sized bubbles */
  .lk-grid { gap: 1.1rem 0.5rem; padding-block: 0.5rem 0.25rem; }
  .lk-bubble { gap: 0.45rem; }
  .lk-bubble img { inline-size: min(100%, 5.25rem); }
  .lk-bubble:active img { transform: scale(0.93); box-shadow: 0 0 0 3px var(--purple), 0 0 0 5px var(--flamingo); }

  /* Socials and the site address */
  .lk-card > .socials { justify-content: center; gap: 0.6rem; }
  .lk-site { display: inline-flex; align-items: center; min-block-size: 2.75rem; margin-block-start: -0.6rem; padding-inline: 1rem; }
}
