/* ============================================================
   Referanslar — Listing + Detail
   ============================================================ */

/* ── Shared Pill Tags ────────────────────────────────────── */
.ref-tag {
  display: inline-block;
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 100px;
  padding: 4px 10px;
}

.ref-tag-dark {
  display: inline-block;
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  padding: 4px 10px;
}

/* ── Browser Frame (shared) ──────────────────────────────── */
.ref-browser {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.45);
}

.ref-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #2a2a2a;
  flex-shrink: 0;
}

.ref-browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ref-browser-url {
  flex: 1;
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,.3);
  text-align: center;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero browser — fixed height, user-scrollable */
.ref-browser-screen {
  height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

.ref-browser-screen::-webkit-scrollbar { width: 5px; }
.ref-browser-screen::-webkit-scrollbar-track { background: transparent; }
.ref-browser-screen::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 10px; }

.ref-browser-screen img {
  height: auto;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.ref-hero {
  position: relative;
  background-color: var(--white);
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 72px max(24px, calc((100% - 1280px) / 2 + 56px)) 80px;
  overflow: hidden;
}

/* Canvas covers the full hero area */
.ref-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* White fade at top */
.ref-hero::before,
.ref-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
}
.ref-hero::before {
  top: 0;
  background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
}
.ref-hero::after {
  bottom: 0;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
}

.ref-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 56px;
  align-items: center;
}

/* ── Sol içerik ── */
.ref-hero-left {
  padding-bottom: 56px;
}

.ref-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px 12px 6px 10px;
  transition: color .18s, border-color .18s, background .18s;
  margin-bottom: 32px;
}
.ref-hero-back:hover {
  color: var(--black);
  border-color: var(--gray-400);
  background: var(--white);
}

.ref-hero-industry {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.ref-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5.5vw, 80px);
  letter-spacing: -.05em;
  line-height: .92;
  color: var(--black);
  margin-bottom: 18px;
}

.ref-hero-sub {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 16px;
}

.ref-hero-intro {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.ref-hero-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ref-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ref-hero-tag {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 4px 10px;
}

.ref-hero-tag-year {
  color: var(--blue);
  background: rgba(85,0,196,.07);
  border-color: rgba(85,0,196,.15);
}

.ref-hero-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  align-self: flex-start;
  transition: color .18s, border-color .18s, background .18s;
}
.ref-hero-url:hover {
  color: var(--blue);
  border-color: rgba(85,0,196,.3);
  background: rgba(85,0,196,.04);
}

/* ── Sağ: Desktop Mockup ── */
.ref-hero-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: 715px;
  width: 100%;
}

/* ── Laptop Mockup Wrapper ── */
.ref-laptop-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ── Ekran Kapağı ── */
.ref-monitor {
  width: 100%;
  background: #1c1c1e;
  border-radius: 14px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.18),
    0 24px 60px rgba(0,0,0,.18),
    0 60px 120px rgba(0,0,0,.12);
  position: relative;
}

/* Kamera noktası */
.ref-monitor-camera {
  width: 5px;
  height: 5px;
  background: #3a3a3c;
  border-radius: 50%;
  margin: 0 auto 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}

/* ── Browser Penceresi ── */
.ref-browser-win {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

/* ── Tab Şeridi ── */
.ref-browser-tabs {
  display: flex;
  align-items: center;
  background: #202124;
  padding: 8px 10px 0;
  gap: 0;
  position: relative;
  border-radius: 16px 16px 0 0;
}

.ref-browser-trafficlights {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 8px 0;
  flex-shrink: 0;
}

.ref-tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.ref-tl-red    { background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.ref-tl-yellow { background: #febc2e; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.ref-tl-green  { background: #28c840; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }

/* ── Tab List ── */
.ref-browser-tabs-list {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  max-width: calc(100% - 80px);
  overflow: hidden;
  gap: 2px;
}

.ref-browser-tab {
  flex: 0 1 auto;
  min-width: 72px;
  max-width: 180px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border-radius: 6px 6px 0 0;
  padding: 6px 10px 8px;
  font-size: 11px;
  color: #9aa0a6;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}
.ref-browser-tab:hover {
  background: #2c2d31;
  color: #c8cacd;
}
.ref-browser-tab.ref-browser-tab-active {
  background: #35363a;
  color: #e8eaed;
  cursor: default;
}

.ref-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.ref-tab-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: #9aa0a6;
  transition: background .15s, color .15s;
}
.ref-tab-close:hover {
  background: rgba(255,255,255,.12);
  color: #e8eaed;
}

/* ── New Tab Button + Dropdown ── */
.ref-browser-newtab-wrap {
  position: relative;
  flex-shrink: 0;
}

.ref-browser-newtab {
  background: transparent;
  border: none;
  color: #9aa0a6;
  font-size: 16px;
  padding: 0 6px 4px;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
  transition: color .15s;
}
.ref-browser-newtab:hover {
  color: #e8eaed;
}

/* Input tab — + basılınca tab listesine eklenir */
.ref-browser-tab-new {
  background: #35363a;
  border-radius: 6px 6px 0 0;
  padding: 5px 10px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
  max-width: 200px;
  flex-shrink: 0;
}

.ref-browser-tab-input {
  background: transparent;
  border: none;
  outline: none;
  color: #e8eaed;
  font-size: 11px;
  font-family: var(--font-body);
  width: 100%;
  min-width: 0;
  caret-color: #e8eaed;
}
.ref-browser-tab-input::placeholder { color: rgba(255,255,255,.3); }

/* Dropdown — tab bar altında input tabın hizasında açılır */
.ref-browser-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #2c2d31;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  z-index: 100;
  overflow: hidden;
}

.ref-browser-dropdown-list {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.ref-browser-dropdown-list::-webkit-scrollbar { width: 4px; }
.ref-browser-dropdown-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.ref-browser-dropdown-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #c8cacd;
  transition: background .12s;
}
.ref-browser-dropdown-list li:hover { background: rgba(255,255,255,.07); }
.ref-browser-dropdown-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-browser-dropdown-list li small { color: #9aa0a6; font-size: 10px; white-space: nowrap; }

.ref-dropdown-empty {
  color: #9aa0a6 !important;
  font-style: italic;
  cursor: default !important;
}
.ref-dropdown-empty:hover { background: transparent !important; }

/* ── Ekran — scrollbar gizli, kaydırılabilir ── */
.ref-browser-screen {
  height: 400px;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  position: relative;
}

.ref-browser-screen::-webkit-scrollbar { display: none; }

/* ── New Tab Ekranı (Google tarzı) ── */
.ref-nt-screen {
  position: absolute;
  inset: 0;
  background: #35363a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
/* display:flex [hidden]'ı eziyor — açıkça override et */
.ref-nt-screen[hidden],
.ref-browser-screen img[hidden] { display: none !important; }

.ref-nt-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 0 24px;
}

.ref-nt-google-logo {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -.02em;
}

.ref-nt-search-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.ref-nt-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 24px;
  padding: 7px 16px;
  width: 100%;
  box-shadow: 0 1px 6px rgba(0,0,0,.28);
}

.ref-nt-searchbar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  color: #333;
  background: transparent;
  font-family: var(--font-body);
}

.ref-nt-searchbar input::placeholder { color: #aaa; }

.ref-nt-suggest-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #2c2d31;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 10;
}

.ref-nt-suggest-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 11px;
  color: #c8cacd;
  transition: background .12s;
}
.ref-nt-suggest-list li:hover { background: rgba(255,255,255,.07); }
.ref-nt-suggest-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-nt-suggest-list li small { color: #9aa0a6; font-size: 10px; white-space: nowrap; }

.ref-nt-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ref-nt-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s;
  min-width: 72px;
}
.ref-nt-shortcut:hover { background: rgba(255,255,255,.08); }

.ref-nt-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-nt-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.ref-nt-shortcut span {
  font-size: 10px;
  color: #e8eaed;
  white-space: nowrap;
  font-family: var(--font-body);
}

.ref-browser-screen img {
  height: auto;
  display: block;
}

/* ── Menteşe Bağlantısı ── */
.ref-laptop-hinge {
  width: calc(100% - 24px);
  height: 6px;
  background: linear-gradient(to bottom, #111113, #1a1a1c);
  border-radius: 0 0 3px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18%;
}

.ref-hinge-pivot {
  width: 60px;
  height: 12px;
  background: radial-gradient(ellipse at 50% 30%, #5a5a5e, #2a2a2c);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.6);
}

/* ── Laptop Gövdesi ── */
.ref-laptop-body {
  width: calc(100% + 32px);
  background: linear-gradient(175deg, #2c2c2e 0%, #232325 100%);
  border-radius: 10px 10px 40px 40px;
  padding: 10px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Trackpad — ince pill */
.ref-laptop-trackpad {
  width: 100px;
  height: 6px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 60px;
}

/* ============================================================
   META BAR (two-column: meta left, overview right)
   ============================================================ */
.ref-meta-section {
  border-bottom: 1px solid var(--gray-100);
}

.ref-meta-section-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  max-width: calc(1280px + 112px);
  margin: 0 auto;
  padding: 0 max(24px, calc((100% - 1280px) / 2 + 56px));
}

.ref-meta-list {
  padding: 36px 0;
  border-right: 1px solid var(--gray-100);
  padding-right: 48px;
}

.ref-meta-row {
  display: flex;
  gap: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.ref-meta-row:first-child { border-top: 1px solid var(--gray-100); }

.ref-meta-row dt {
  width: 90px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  flex-shrink: 0;
  padding-top: 1px;
}

.ref-meta-row dd {
  color: var(--black);
  font-weight: 400;
  line-height: 1.5;
}

.ref-meta-row dd a { color: var(--blue); transition: opacity .2s; }
.ref-meta-row dd a:hover { opacity: .7; }

.ref-meta-overview {
  padding: 36px 0 36px 48px;
}

.ref-meta-overview-label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.ref-meta-overview-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  font-weight: 300;
  max-width: 600px;
}

/* ============================================================
   DETAIL SECTIONS (shared)
   ============================================================ */
.ref-detail { }

.ref-section {
  padding: 72px max(24px, calc((100% - 1280px) / 2 + 56px));
  border-bottom: 1px solid var(--gray-100);
}


.ref-section-inner { max-width: 720px; }

.ref-body-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  font-weight: 300;
  max-width: 640px;
  margin-top: 20px;
}

/* ── Challenge / Solution ────────────────────────────────── */
.ref-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  align-items: start;
}

.ref-solution-points {
  margin-top: 56px;
  list-style: none;
  padding: 0;
}

.ref-solution-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.ref-solution-point:first-child { border-top: 1px solid var(--gray-100); }

.ref-point-icon {
  color: var(--blue);
  font-size: 9px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── Stats Band ──────────────────────────────────────────── */
.ref-stats-band {
  background: var(--black);
  padding: 48px max(24px, calc((100% - 1280px) / 2 + 56px));
}

.ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.ref-stat-block {
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 0 32px;
}
.ref-stat-block:last-child { border-right: none; }

.ref-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.ref-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
}

/* ── PageSpeed Gauges ────────────────────────────────────── */
.ref-pagespeed-url {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--gray-400);
  margin: 8px 0 36px;
}

.ref-pagespeed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0cce6b;
  flex-shrink: 0;
}

.ref-pagespeed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 520px;
}

.ref-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ref-gauge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-color) var(--gauge-deg), var(--gray-100) var(--gauge-deg));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-gauge-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-section-alt .ref-gauge-inner { background: var(--gray-50); }

.ref-gauge-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.04em;
}

.ref-gauge-label {
  font-size: 10.5px;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.4;
}

.ref-pagespeed-note {
  font-size: 11px;
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-top: 28px;
}

/* ── Tag Pool ────────────────────────────────────────────── */
.ref-tag-pool {
  border-bottom: 1px solid var(--gray-100);
  padding: 24px max(24px, calc((100% - 1280px) / 2 + 56px));
}

.ref-tag-pool-inner {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ref-tag-pool-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ref-tag-pool-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-tag-pool-label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
}

.ref-pool-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 6px;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  transition: color .15s, background .15s, border-color .15s;
}

.ref-pool-tag-service {
  color: var(--blue);
  background: rgba(85,0,196,.06);
  border-color: rgba(85,0,196,.2);
}
.ref-pool-tag-service:hover {
  background: rgba(85,0,196,.12);
  border-color: rgba(85,0,196,.4);
}

/* ── Perf + SEO yan yana ────────────────────────────────── */
.ref-perf-seo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: start;
  padding: 72px max(24px, calc((100% - 1280px) / 2 + 56px));
}

.ref-perf-seo--no-gsc {
  grid-template-columns: 1fr;
}

.ref-perf-col { min-width: 0; }

.ref-perf-col-seo .ref-seo-table-wrap { margin-top: 28px; }

.ref-perf-seo .ref-pagespeed-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: none;
}

.ref-perf-seo .ref-gauge-inner { background: var(--gray-50); }

/* ── GSC Chart ───────────────────────────────────────────── */
.ref-perf-col-gsc { min-width: 0; }

.ref-gsc-wrap {
  margin-top: 28px;
  position: relative;
}

.ref-gsc-y-label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.ref-gsc-chart-area {
  position: relative;
  width: 100%;
  padding: 8px 0 4px;
}

.ref-gsc-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

.ref-gsc-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  font-size: 12px;
  color: var(--black);
  white-space: nowrap;
  min-width: 160px;
}
.ref-gsc-tooltip[hidden] { display: none; }

.ref-gsc-tooltip strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-600);
}

.ref-gsc-tt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--black);
}

.ref-gsc-tt-line {
  display: inline-block;
  width: 16px;
  height: 3px;
  background: #5500c4;
  border-radius: 2px;
  flex-shrink: 0;
}

.ref-gsc-tt-val {
  margin-left: auto;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ── SEO Growth ──────────────────────────────────────────── */
.ref-seo-table-wrap {
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
}

.ref-seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.ref-seo-table th {
  padding: 10px 20px;
  text-align: left;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-150, #ebebeb);
  background: var(--gray-50);
  font-weight: 400;
  white-space: nowrap;
}
.ref-seo-table th:first-child { border-radius: 12px 0 0 0; }
.ref-seo-table th:last-child  { border-radius: 0 12px 0 0; }

.ref-seo-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--black);
  font-size: 13.5px;
}

.ref-seo-table tr:last-child td { border-bottom: none; }
.ref-seo-table tr:hover td      { background: rgba(85,0,196,.03); }

/* Anahtar kelime kolonu */
.ref-seo-keyword {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--black);
}

/* Önceki sıra — soluk, mono */
.ref-seo-before {
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Sonraki sıra — belirgin, mono */
.ref-seo-after {
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

/* Değişim badge */
.ref-seo-up {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #0cce6b;
  background: rgba(12,206,107,.09);
  border-radius: 6px;
  padding: 3px 9px;
  white-space: nowrap;
}

.ref-seo-note {
  font-size: 11px;
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-top: 16px;
  letter-spacing: .03em;
}

/* ── Features List ───────────────────────────────────────── */
.ref-features-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ref-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13.5px;
  color: var(--black);
}
.ref-feature-item:nth-child(odd)  { padding-right: 24px; }
.ref-feature-item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--gray-100); }

.ref-feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
  flex-shrink: 0;
  width: 24px;
}

/* ── Device Mockup Section ───────────────────────────────── */
.ref-mockup-wrap {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-top: 28px;
}

.ref-browser-full { flex: 1; }

/* Scrollable screen in the mockup section */
.ref-browser-screen-scroll {
  height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.ref-browser-screen-scroll::-webkit-scrollbar { width: 5px; }
.ref-browser-screen-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 10px; }

/* Phone frame */
.ref-phone {
  width: 180px;
  flex-shrink: 0;
  background: #1a1a1a;
  border-radius: 28px;
  padding: 10px 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.ref-phone-notch {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}
.ref-phone-notch span {
  width: 44px;
  height: 5px;
  background: rgba(255,255,255,.12);
  border-radius: 100px;
}

.ref-phone-screen {
  border-radius: 8px;
  overflow: hidden;
}

.ref-phone-screen-scroll {
  height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.ref-phone-screen-scroll::-webkit-scrollbar { display: none; }
.ref-phone-screen img { width: 100%; height: auto; display: block; }

.ref-phone-home {
  height: 4px;
  margin: 10px auto 0;
  width: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 100px;
}

/* ── Article ─────────────────────────────────────────────── */
.ref-article {
  padding: 72px max(24px, calc((100% - 1280px) / 2 + 56px));
  border-bottom: 1px solid var(--gray-100);
}

.ref-article-inner {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 80px;
  align-items: start;
}

.ref-article-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ref-article-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}

.ref-article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.ref-article-figcaption {
  padding: 10px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--gray-400);
  letter-spacing: .04em;
  border-top: 1px solid var(--gray-100);
}

.ref-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ref-article-category {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}

.ref-article-sep,
.ref-article-readtime {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--gray-400);
}

.ref-article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
}

.ref-article-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-600);
  font-weight: 400;
  border-top: 1px solid var(--gray-100);
  padding-top: 24px;
}

.ref-article-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 8px;
}

.ref-article-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  color: var(--black);
  margin-bottom: 10px;
}

.ref-article-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-600);
  font-weight: 300;
}

.ref-article-section {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray-100);
}
.ref-article-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 1100px) {
  .ref-article-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Narrative ───────────────────────────────────────────── */
.ref-narrative {
  padding: 72px max(24px, calc((100% - 1280px) / 2 + 56px));
  border-bottom: 1px solid var(--gray-100);
}

.ref-narrative-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ref-narrative-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 24px;
  padding: 40px 48px 40px 0;
  border-bottom: 1px solid var(--gray-100);
}

.ref-narrative-block:nth-child(even) {
  padding-left: 48px;
  padding-right: 0;
  border-left: 1px solid var(--gray-100);
}

.ref-narrative-block:nth-last-child(-n+2) {
  border-bottom: none;
}

.ref-narrative-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.ref-narrative-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: .06em;
}

.ref-narrative-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.ref-narrative-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 14px;
}

.ref-narrative-text {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.8;
  font-weight: 300;
}

@media (max-width: 1100px) {
  .ref-narrative-inner { grid-template-columns: 1fr; }
  .ref-narrative-block { padding: 32px 0; border-left: none !important; }
  .ref-narrative-block:nth-child(even) { padding-left: 0; }
  .ref-narrative-block:last-child { border-bottom: none; }
  .ref-narrative-block:nth-last-child(2) { border-bottom: 1px solid var(--gray-100); }
}

/* ── Masonry Gallery ─────────────────────────────────────── */
.ref-gallery-section {
  padding: 72px max(24px, calc((100% - 1280px) / 2 + 56px));
}

.ref-gallery-inner .section-tag { margin-bottom: 28px; }

.ref-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.ref-masonry-item {
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-100);
}

.ref-masonry-span-2 { grid-column: span 2; }
.ref-masonry-span-3 { grid-column: span 3; }

.ref-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.ref-masonry-item { cursor: zoom-in; }
.ref-masonry-item:hover img { transform: scale(1.03); }

/* ── Lightbox ────────────────────────────────────────────── */
.ref-lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.ref-lb[hidden] { display: none !important; }

.ref-lb-stage {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-lb-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

.ref-lb-close,
.ref-lb-prev,
.ref-lb-next {
  position: fixed;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.ref-lb-close:hover,
.ref-lb-prev:hover,
.ref-lb-next:hover { background: rgba(255,255,255,.22); }

.ref-lb-close { top: 20px; right: 20px; }
.ref-lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.ref-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ── Testimonial ─────────────────────────────────────────── */
.ref-testimonial-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-testimonial { margin: 0; max-width: 680px; }

.ref-testimonial-quote {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: .7;
  color: var(--blue);
  opacity: .25;
  margin-bottom: 8px;
  user-select: none;
}

.ref-testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 28px;
}

.ref-testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ref-testimonial-author strong { font-size: 13px; font-weight: 600; color: var(--black); }
.ref-testimonial-author span   { font-size: 12px; color: var(--gray-400); }

/* ============================================================
   LISTING PAGE
   ============================================================ */
/* ── Listing section ── */
.refs-list-section {
  padding: 72px max(24px, calc((100% - 1280px) / 2 + 56px));
}

.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 24px;
}

/* ── Card ── */
.ref-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .25s, transform .25s;
}
.ref-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-3px);
}
.ref-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* Mini browser chrome */
.ref-card-browser {}
.ref-card-browser-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.ref-card-tl {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ref-card-tl-r { background: #ff5f57; }
.ref-card-tl-y { background: #febc2e; }
.ref-card-tl-g { background: #28c840; }
.ref-card-chrome-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-500);
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-card-screen {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}
.ref-card-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: transform .4s ease;
}
.ref-card:hover .ref-card-screen img { transform: scale(1.02); }
.ref-card-screen-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: var(--black);
}
.ref-card-screen-empty span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: rgba(255,255,255,.12);
  text-transform: uppercase;
  letter-spacing: -.04em;
}

/* Card info */
.ref-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 28px;
  flex: 1;
}
.ref-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ref-card-industry {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ref-card-year {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--gray-400);
}
.ref-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.03em;
  color: var(--black);
  line-height: 1.15;
}
.ref-card-tagline {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  font-weight: 300;
  flex: 1;
}
.ref-card-services { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-card-cta {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* Hero title em */
.ref-hero-title em { font-style: italic; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .ref-hero-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .ref-hero-left { padding-bottom: 40px; }
  .ref-hero-right {
    display: block;
    margin: 0 -24px;
  }
  .ref-laptop-mockup { width: 100%; }
  .ref-laptop-body { width: 100%; }
  .ref-laptop-hinge { width: 100%; }

  .ref-meta-section-inner { grid-template-columns: 1fr; }
  .ref-meta-list {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
    padding-right: 0;
    padding-bottom: 28px;
  }
  .ref-meta-overview { padding: 28px 0 0; }
  .ref-solution-grid { grid-template-columns: 1fr; }
  .ref-solution-points { margin-top: 24px; }
  .ref-perf-seo { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 760px) {
  .refs-grid { grid-template-columns: 1fr; }
  .ref-stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ref-stat-block { border-right: none; margin-right: 0; padding-right: 0; }
  .ref-pagespeed-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-features-list { grid-template-columns: 1fr; }
  .ref-feature-item:nth-child(even) { border-left: none; padding-left: 0; }
  .ref-mockup-wrap { flex-direction: column; }
  .ref-phone { width: 100%; }
  .ref-browser-screen        { height: 280px; }
  .ref-browser-screen-scroll { height: 340px; }
  .ref-masonry { grid-template-columns: 1fr; }
  .ref-masonry-span-2,
  .ref-masonry-span-3 { grid-column: span 1; }
}
