/* =========================================================
   SweetWaveAI — Links (FINAL)
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #05070a;
  --fg: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% 10%, rgba(74, 186, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(120, 90, 255, 0.08), transparent 55%),
    radial-gradient(900px 600px at 90% 70%, rgba(0, 255, 210, 0.06), transparent 60%),
    var(--bg);

  color: var(--fg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
}

a {
  color: inherit;
}

/* ---------- Layout ---------- */
.sw {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.sw__inner {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Header ---------- */
.sw__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: fit-content;
}

.sw__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.sw__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.sw__claim {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Navigation ---------- */
.sw__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  position: relative;
}

.sw__nav::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.08),
    transparent
  );
}

/* ---------- Cards ---------- */
.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px;
  border-radius: 16px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid var(--border);

  text-decoration: none;
  color: var(--fg);

  box-shadow: var(--shadow);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}

.card:hover {
  transform: translateY(-1px);
  transform: translateX(2px);
  border-color: var(--border-strong);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.11),
    rgba(255, 255, 255, 0.06)
  );
}

.card:active {
  transform: translateY(0);
}

/* ---------- Card Content ---------- */
.card__left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Icon badge */
.iconwrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* SVG safety */
.card svg {
  max-width: none;
}

/* Icon sizing */
.iconwrap > .icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- Text Stack (Title + Description) ---------- */
.textwrap {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.25;
}

.textwrap .label,
.textwrap .desc {
  display: block !important;
}

.label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.desc {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

/* ---------- Chevron ---------- */
.card > .chev {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  transition: transform .18s ease;
}

/* ---------- Accessibility ---------- */
.card:focus-visible {
  outline: none;
  border-color: rgba(74, 186, 255, 0.55);
  box-shadow:
    var(--shadow),
    0 0 0 3px rgba(74, 186, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

/* ---------- Footer ---------- */
.sw__footer {
  margin-top: 10px;
  opacity: 0.55;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sw__footer-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sw__footer-links a {
  text-decoration: none;
  color: inherit;
}

.sw__footer-links a:hover {
  opacity: 0.85;
  text-decoration: underline;
}
