:root {
  --orange: var(--bad-actors-orange, #F06B19);
  --bg: var(--primary-bg, #0b0b0f);
  --text: var(--primary-text, black);
}

body{
  background-image: url("../static/images/background_only.webp");
}


#links.links-wrapper {
  min-height: calc(100svh - var(--nav-h, 63px));
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
  padding-top: calc(var(--nav-h, 63px) + 16px);
  box-sizing: border-box;
}

/* Kill underlines for the social cards */
.links-wrapper a,
.links-wrapper a:link,
.links-wrapper a:visited,
.links-wrapper a:hover,
.links-wrapper a:focus,
.links-wrapper a:active {
  text-decoration: none !important;
}

/* If you only want to target those buttons specifically */
.social-card,
.social-card:hover,
.social-card:focus {
  text-decoration: none !important;
}


.links-container {
  width: min(960px, 94vw);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: var(--text);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 0 15px rgba(255,165,0,0.2);
}

.links-container h1 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  color: var(--orange);
  text-align: center;
}
.links-container .tagline {
  margin: 0 0 20px;
  color: #ddd;
  text-align: center;
}

/* Grid of social cards */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 20px);
}

@media (max-width: 700px) {
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--bad-actors-orange);
  border: 1px solid rgba(255,255,255);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.social-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bad-actors-orange);
  color: var(--text);
}

.social-card span {
  font-weight: 700;
  letter-spacing: .2px;
}

.social-card:hover,
.store-card:hover,
.social-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--orange) 40%, transparent);
  box-shadow: 0 6px 18px rgba(240, 107, 25, 0.25);
  outline: none;
}

.social-card { color:black; }
.social-card:hover, .store-card:hover { color: white; transform: translateY(-2px); }

/* Optional: slight brand hints per network */
/*.social-card.tiktok .icon { color: var(--bad-actors-orange); background: black; }*/
/*.social-card.instagram .icon { color: var(--bad-actors-orange); background: black; }*/
/*.social-card.youtube .icon { color: var(--bad-actors-orange); background: black; }*/
/*.social-card.threads .icon { color: var(--bad-actors-orange); background: black; }*/
/*.social-card.facebook .icon { color: var(--bad-actors-orange); background: black; }*/
.social-card.mail .icon { background: var(--bad-actors-orange); }

/* make filled icons with multiple subpaths show inner cutouts */
.social-card.mail .icon svg path,
.social-card.threads .icon svg path {
  fill-rule: evenodd;
  clip-rule: evenodd;
}

.social-card .icon svg { width: 48px; height: 48px; display:block; }

/* Store CTA */
.store-cta {
  margin-top: clamp(18px, 3vw, 28px);
  display: grid;
}
.store-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #111;
  background: var(--bad-actors-orange);
  border: 1px solid rgba(255,255,255);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.store-card:hover,
.store-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240,107,25,0.25);
  outline: none;
}
.store-icon {
  font-size: 28px;
  line-height: 1;
}
.store-text strong {
  display: block;
  font-size: 1.05rem;
}
.store-text small {
  opacity: .8;
}

/* Layout shell: header, content, sticky footer */
#links.links-wrapper {
  min-height: 100svh; /* dynamic viewport on iOS */
  display: grid;
  grid-template-rows: auto 1fr auto; /* header area (from base), content, sticky footer */
}

/* Sticky footer CTA */
.links-sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 12px;

  /* nice readable sticky bg */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0) 100%
  );
  backdrop-filter: blur(6px);

  padding: 12px clamp(12px, 4vw, 24px)
           calc(12px + env(safe-area-inset-bottom, 0px));
}

/* CTA button style */
.links-cta-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bad-actors-orange);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease, background .2s ease;
}
.links-cta-btn:hover { transform: translateY(-1px); opacity: .95; }
.links-cta-btn:active { transform: translateY(0); opacity: .9; }

/* CTA is already .links-cta-btn */
.links-cta-btn,
.links-cta-btn:visited,
.links-cta-btn:hover,
.links-cta-btn:focus {
  text-decoration: none !important;
}

/* Tighten the grid on narrow screens so it fits */
@media (max-width: 420px) {
  .links-container {
    /* allow reordering if you want later; also ensures good spacing */
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .social-grid {
    order: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3-wide */
    gap: 10px;
  }

  .social-card .icon svg {
    width: 36px;
    height: 36px;
  }
  .social-card span {
    font-size: 0.9rem;
  }

  /* base: no underline on social cards either */
  .social-card,
  .social-card:visited,
  .social-card:hover,
  .social-card:focus {
    text-decoration: none;
  }


  /* Make the store card visible without a long scroll: put it above the grid */
  .store-cta { order: 0; }

  /* Reduce vertical paddings a touch */
  .links-container h1 { margin-bottom: 4px; }
  .links-container .tagline { margin-bottom: 8px; }
}

/* If anything still overflows, prevent the whole page from
   creating a "hidden behind home indicator" situation */
.links-container {
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

/* small screens: show only icons, center them nicely */
@media (max-width: 420px) {
  /* hide the text labels under each icon */
  .social-card span { display: none; }

  /* denser grid of icon-only buttons */
  .social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    justify-items: center;
    align-items: center;
  }

  /* make each tile a neat square button */
  .social-card {
    display: grid;
    place-items: center;
    padding: 10px;          /* tighter padding */
    min-height: 84px;       /* gives a nice tappable square */
    border-radius: 12px;
  }

  /* bump icon size slightly now that text is hidden */
  .social-card .icon svg {
    width: 40px;
    height: 40px;
  }

  /* bring the store card up a bit so it’s visible sooner */
  .store-cta { order: 0; }
}


