:root {
  --teal: #1f8a8a;
  --teal-dark: #176f6f;
  --burgundy: #8b2e3e;
  --burgundy-dark: #6f2431;
  --ink: #1c2328;
  --muted: #5c6770;
  --paper: #eef1f2;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(28, 35, 40, 0.12);
  --radius: 20px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --pad: clamp(0.4rem, 1.2vmin, 0.85rem);
  --gap: clamp(0.55rem, 1.4vmin, 1.1rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.bg-shape {
  position: absolute;
  z-index: -1;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 48% 52% 45% 55% / 55% 42% 58% 45%;
  opacity: 0.4;
  pointer-events: none;
}

.bg-shape--tl {
  top: -18%;
  left: -14%;
  background:
    radial-gradient(circle at 30% 40%, rgba(31, 138, 138, 0.45), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(139, 46, 62, 0.22), transparent 60%);
}

.bg-shape--br {
  right: -14%;
  bottom: -20%;
  background:
    radial-gradient(circle at 40% 35%, rgba(139, 46, 62, 0.32), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(31, 138, 138, 0.28), transparent 62%);
}

.shell {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: var(--pad);
  overflow: hidden;
}

.card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: var(--gap);
  width: min(1180px, 100%);
  height: min(860px, 100%);
  max-width: 100%;
  max-height: 100%;
  padding: var(--gap);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 138, 138, 0.12);
  overflow: hidden;
}

.visual {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: #f4f6f7;
}

.visual img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.content {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(0.45rem, 1.2vmin, 0.85rem);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand__rule {
  flex: 1 1 auto;
  min-width: 0.75rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--burgundy), transparent);
  opacity: 0.85;
}

.brand__name {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.1vmin, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message {
  position: relative;
  min-width: 0;
  padding-left: 0.85rem;
}

.message::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12rem;
  bottom: 0.12rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--burgundy));
}

.message__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vmin, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--burgundy);
  overflow-wrap: anywhere;
}

.message__text {
  margin: 0;
  font-size: clamp(0.78rem, 1.45vmin, 0.95rem);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.links {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(0.45rem, 1.1vmin, 0.75rem);
  min-height: 0;
  overflow: hidden;
}

.link-card {
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #f7f9fa;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--white);
  box-shadow: 0 8px 20px rgba(28, 35, 40, 0.08);
  outline: none;
}

.link-card--promosyon {
  border-color: rgba(31, 138, 138, 0.3);
}

.link-card--promosyon:hover,
.link-card--promosyon:focus-visible {
  border-color: var(--teal);
}

.link-card--pufida {
  border-color: rgba(139, 46, 62, 0.3);
}

.link-card--pufida:hover,
.link-card--pufida:focus-visible {
  border-color: var(--burgundy);
}

/* İçerik kartın ~%70'i (genişlik + yükseklik); kartla birlikte ölçeklenir */
.link-card__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(0.15rem, 1cqh, 0.4rem);
  width: 70%;
  height: 70%;
  max-width: 70%;
  max-height: 70%;
  min-width: 0;
  min-height: 0;
}

.link-card__eyebrow {
  font-size: clamp(0.58rem, 5cqh, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.link-card__title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 11cqh, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.link-card--promosyon .link-card__title {
  color: var(--teal-dark);
}

.link-card--pufida .link-card__title {
  color: var(--burgundy-dark);
}

.link-card__desc {
  font-size: clamp(0.7rem, 6.5cqh, 1rem);
  line-height: 1.35;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.link-card__url {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  width: fit-content;
  max-width: 100%;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  font-size: clamp(0.68rem, 6.5cqh, 0.95rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__url svg {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.link-card--promosyon .link-card__url {
  background: var(--teal);
}

.link-card--promosyon:hover .link-card__url,
.link-card--promosyon:focus-visible .link-card__url {
  background: var(--teal-dark);
}

.link-card--pufida .link-card__url {
  background: var(--burgundy);
}

.link-card--pufida:hover .link-card__url,
.link-card--pufida:focus-visible .link-card__url {
  background: var(--burgundy-dark);
}

.footnote {
  margin: 0;
  font-size: clamp(0.68rem, 1.3vmin, 0.82rem);
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Dar / dikey ekranlar: tek sütun, taşmasız scroll */
@media (max-width: 960px), (max-height: 640px) and (max-width: 1100px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .shell {
    height: auto;
    min-height: 100dvh;
    place-items: start center;
    overflow: visible;
    padding: 0.65rem;
  }

  .card {
    grid-template-columns: 1fr;
    width: min(560px, 100%);
    height: auto;
    max-height: none;
    gap: 0.75rem;
    padding: 0.65rem;
    overflow: visible;
  }

  .visual {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
  }

  .visual img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }

  .content {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    gap: 0.75rem;
  }

  .links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow: visible;
  }

  .link-card {
    container-type: size;
    min-height: 8.5rem;
    height: 8.5rem;
    overflow: hidden;
  }

  .link-card__inner {
    width: 70%;
    height: 70%;
    max-width: 70%;
    max-height: 70%;
  }

  .link-card__eyebrow {
    font-size: clamp(0.65rem, 5.5cqh, 0.78rem);
  }

  .link-card__title {
    font-size: clamp(1.05rem, 11cqh, 1.35rem);
  }

  .link-card__desc {
    font-size: clamp(0.78rem, 7cqh, 0.95rem);
  }

  .link-card__url {
    font-size: clamp(0.76rem, 7cqh, 0.9rem);
    white-space: nowrap;
  }

  .bg-shape--br {
    display: none;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 0.45rem;
  }

  .card {
    padding: 0.5rem;
    gap: 0.6rem;
    border-radius: 16px;
  }

  .visual {
    border-radius: 12px;
    max-height: none;
    overflow: visible;
  }

  .brand__name {
    letter-spacing: 0.04em;
  }

  .link-card {
    min-height: 8rem;
    height: 8rem;
  }

  .link-card__url {
    max-width: 100%;
  }
}

@supports not (height: 100dvh) {
  .page {
    height: 100vh;
  }

  @media (max-width: 960px), (max-height: 640px) and (max-width: 1100px) {
    .page,
    .shell {
      min-height: 100vh;
      height: auto;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
