/* ==========================================================================
   ARCTIC TRUCKS MIDDLE EAST — LINK PAGE STYLES
   Mobile-first. Edit the variables in :root to fine-tune the design.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Background gradient (top → middle → bottom) */
  --bg-top: #080808;
  --bg-mid: #171717;
  --bg-bottom: #363636;

  /* Desktop surround (slightly darker than the central column) */
  --outer-top: #020202;
  --outer-mid: #0e0e0e;
  --outer-bottom: #262626;

  /* Text */
  --text: #f3f3f4;          /* matches the logo colour */
  --text-soft: #d6d6d8;
  --text-muted: #9a9a9e;

  /* Buttons */
  --btn-bg: #e5e5e5;
  --btn-bg-hover: #f4f4f4;
  --btn-text: #1b1b1b;
  --btn-sub: #55585a;
  --btn-height: 52px;
  --btn-gap: 12px;
  --btn-radius: 999px;
  --btn-icon: 26px;

  /* Layout */
  --content-max: 400px;     /* width of logo/text/buttons column */
  --side-pad: 20px;         /* mobile side margins */
  --column-pad: 28px;       /* desktop column side padding */

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
  background-color: var(--bg-mid);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1 { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.icon { width: 100%; height: 100%; }

/* ---------- Page / column ---------- */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--side-pad) * 2);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    max(16px, env(safe-area-inset-top))
    max(var(--side-pad), env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(var(--side-pad), env(safe-area-inset-left));
}

/* ---------- Top bar (share) ---------- */
.topbar {
  display: flex;
  justify-content: flex-end;
  height: 40px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .18); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Profile ---------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4px;
}

.profile__logo {
  width: clamp(200px, 62vw, 240px);
  height: auto;
  object-fit: contain;
  margin-bottom: 22px;
  user-select: none;
  -webkit-user-drag: none;
}

.profile__name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--text);
}

.profile__desc {
  max-width: 340px;
  margin-top: 6px;
  text-wrap: balance;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ---------- Social icon row ---------- */
.social { margin-top: 16px; }

.social__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;               /* comfortable touch target */
  height: 44px;
  padding: 9px;              /* → 26px visible icon */
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), opacity .2s var(--ease), background-color .2s var(--ease);
}
.social-link:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .07); }
.social-link:active { transform: scale(.94); }

/* ---------- Main buttons ---------- */
.links { margin-top: 22px; }

.links__list {
  display: flex;
  flex-direction: column;
  gap: var(--btn-gap);
}

.link-btn {
  display: grid;
  grid-template-columns: var(--btn-height) 1fr var(--btn-height);
  align-items: center;
  width: 100%;
  height: var(--btn-height);
  padding: 0;
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color .22s var(--ease),
    transform .22s var(--ease),
    box-shadow .22s var(--ease);
}

.link-btn__icon {
  justify-self: center;
  width: var(--btn-icon);
  height: var(--btn-icon);
  margin-left: 6px;
}

.link-btn__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.link-btn__label {
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-btn__sub {
  max-width: 100%;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--btn-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-btn__dots {
  justify-self: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: #6a6d70;
}

.link-btn:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.link-btn:active {
  transform: translateY(0) scale(.985);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* Visible keyboard focus */
.link-btn:focus-visible,
.social-link:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.link-btn:focus:not(:focus-visible),
.social-link:focus:not(:focus-visible),
.icon-btn:focus:not(:focus-visible) { outline: none; }

/* Icon library holder (kept invisible; not display:none so gradients render) */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding-top: 56px;
  text-align: center;
}

.footer__tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--text-soft);
  opacity: .8;
}

.footer__text {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  z-index: 10;
  max-width: calc(100vw - 40px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #f3f3f4;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  overflow-wrap: anywhere;
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast:empty { display: none; }

/* ==========================================================================
   LARGER SCREENS
   ========================================================================== */

/* Small phones */
@media (max-width: 359px) {
  :root { --side-pad: 14px; }
  .link-btn__label { font-size: 13px; }
}

/* Tablets & desktop: a distinct central column, as in the reference */
@media (min-width: 600px) {
  body {
    background: linear-gradient(180deg, var(--outer-top) 0%, var(--outer-mid) 50%, var(--outer-bottom) 100%);
    background-color: var(--outer-mid);
  }

  .container {
    max-width: calc(var(--content-max) + var(--column-pad) * 2);
    padding: 28px var(--column-pad) 28px;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
  }

  .profile { padding-top: 12px; }
  .profile__logo { width: 250px; margin-bottom: 24px; }
  .profile__name { font-size: 22px; }
  .profile__desc { font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .link-btn:hover,
  .social-link:hover { transform: none; }
}
