/* =========================================================================
   CLEANLAND — Field Atlas & Doğal Tekstil Bakım Portalı
   (FaunaTech modern.css + styles.css tasarım sistemiyle birebir uyumlu)
   ========================================================================= */
:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-2: #eef2eb;
  --surface-3: #e5ebe1;
  --line: #dfe5dc;
  --line-strong: #b2c2ad;
  --text: #182c22;
  --text-2: #43554a;
  --text-3: #68766b;
  --accent: #315b41;
  --accent-strong: #254b34;
  --accent-soft: #e4eddf;
  --on-accent: #ffffff;
  --ok: #315b41;
  --ok-soft: #e4eddf;
  --warn: #8a6a1f;
  --warn-soft: #f3ebd6;
  --danger: #a8433a;
  --danger-soft: #f5e1dd;

  /* Koyu sahne (Görüntüleyici, Hero, İnceleme Sahnesi) */
  --ink: #10271f;
  --ink-2: #18372c;
  --ink-3: #244a3b;
  --ink-line: #3a574b;
  --ink-text: #f0eee6;
  --ink-text-2: #c2c0b6;
  --ink-accent: #d7f2a4;

  --portal-accent: #315b41;
  --font-sans: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --radius: 18px;
  --elev: 0 4px 20px #1b382508;

  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 154px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  letter-spacing: -0.015em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: var(--font-sans);
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #5c8845;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 9999;
  background: #fff;
  color: var(--text);
  padding: 12px 22px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.ico {
  width: 15px;
  height: 15px;
  vertical-align: -0.17em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================================
   ÜST BAŞLIK, ARAMA ÇUBUĞU VE SEKME ÇUBUĞU (.app-header)
   ========================================================================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 247, 243, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto auto;
  grid-template-areas:
    'brand search lang atlas'
    'nav nav nav nav';
  align-items: center;
  gap: 0 24px;
}

.header-inner .brand { grid-area: brand; }
.header-inner .header-search-wrap { grid-area: search; justify-self: end; }
.header-inner .header-status-pill { grid-area: lang; justify-self: end; }
.header-inner .atlas-launcher { grid-area: atlas; }
.header-inner .nav-tabs { grid-area: nav; }

button.brand, a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 18px 0;
  color: var(--text);
  cursor: pointer;
}

.brand-icon {
  width: 39px;
  height: 43px;
  border-radius: 16px 16px 5px 16px;
  background: #244b36;
  color: #d7efaf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand-title {
  font: 700 24px/1.15 var(--font-sans);
  letter-spacing: -1.1px;
  color: var(--text);
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.025em;
  margin-top: 3px;
  color: var(--text-3);
}

.header-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
  border: 1px solid #dfe5dc;
  border-radius: 100px;
  background: #fff;
  padding: 6px 6px 6px 16px;
  color: var(--text-3);
}

.header-search-wrap:focus-within {
  border-color: var(--accent);
}

.header-search-input {
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  width: 100%;
  min-width: 0;
  outline: none;
}

.header-search-input::placeholder {
  color: var(--text-3);
}

.header-search-btn {
  background: #edf2e9;
  color: var(--text);
  border: none;
  border-radius: 99px;
  min-height: 32px;
  padding: 5px 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.header-search-btn:hover {
  background: #dfead7;
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: 99px;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.header-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #315b41;
  box-shadow: 0 0 0 4px #315b4122;
}

.atlas-launcher {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 99px;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--text);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.atlas-launcher:hover {
  background: var(--accent-strong);
}

.atlas-launcher span {
  font-size: 16px;
  line-height: 1;
}

.nav-tabs {
  display: flex;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 14px 8px 13px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #617063;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-tab:hover {
  background: transparent;
  color: #182c22;
}

.nav-tab.active {
  background: none;
  color: #294c31;
  border-bottom-color: #294c31;
  font-weight: 600;
}

/* =========================================================================
   KONTEYNER GENİŞLİKLERİ VE SAYFA GÖRÜNÜM KURALLARI
   ========================================================================= */
.portal-universe-wrap,
.biome-filter-bar,
.species-bar,
.workspace,
.discovery-chapters,
.discovery-page-heading,
.species-subgroups {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Sayfa modları: home vs atlas */
body[data-page="home"] .biome-filter-bar,
body[data-page="home"] .species-bar,
body[data-page="home"] .workspace,
body[data-page="home"] .species-subgroups,
body[data-page="home"] .discovery-page-heading {
  display: none !important;
}

body:not([data-page="home"]) .portal-universe-wrap,
body:not([data-page="home"]) .discovery-chapters {
  display: none !important;
}

body[data-catalog-scope="category"] .biome-filter-bar {
  display: none !important;
}

body[data-catalog-view="overview"] .species-bar,
body[data-catalog-view="overview"][data-module="anatomy"] .workspace {
  display: none !important;
}

/* =========================================================================
   KAPSAYICI GİRİŞ EKRANI (.discovery-hero, .discovery-toolbar, .portal-cards-grid)
   ========================================================================= */
.portal-universe-wrap {
  margin-top: 28px;
}

.discovery-hero {
  isolation: isolate;
  position: relative;
  min-height: 480px;
  border-radius: 24px;
  background: #142e23;
  color: #fff;
  overflow: hidden;
}

.discovery-photo {
  position: absolute;
  z-index: -3;
  right: 0;
  top: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.discovery-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #142e23 10%, #142e23f5 29%, #142e23b0 49%, #10271f20 74%),
    linear-gradient(0deg, #10271f70, transparent 60%);
}

.discovery-copy {
  padding: 48px 52px 36px;
  position: relative;
  max-width: 760px;
}

.discovery-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 10px/1.4 var(--font-sans);
  letter-spacing: 0.2em;
  color: #dfebd9;
}

.discovery-eyebrow > span {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #d7efaf;
  box-shadow: 0 0 0 5px #d7efaf15;
}

.discovery-copy h1 {
  font-size: clamp(38px, 4.7vw, 66px);
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -0.055em;
  margin: 26px 0 20px;
}

.discovery-copy h1 em {
  color: #d5edaf;
  font-weight: 400;
  font-style: normal;
}

.discovery-description {
  color: #d0ddcf;
  font-size: 14px;
  line-height: 1.85;
  max-width: 450px;
}

.discovery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.discover-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: #d7efaf;
  color: #142e23;
  border: 0;
  border-radius: 99px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.discover-button:hover {
  background: #e4f5c6;
}

.discovery-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.discovery-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.discovery-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
}

.discovery-stats > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: 28px;
  border-right: 1px solid #ffffff26;
}

.discovery-stats > div:last-child {
  border: 0;
  padding-right: 0;
}

.discovery-stats strong {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.discovery-stats span {
  color: #c1d0c0;
  font-size: 10px;
  letter-spacing: 0.015em;
}

.discovery-photo-note {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  color: #fff;
  border: 1px solid #ffffff42;
  border-radius: 14px;
  background: #172f2570;
  backdrop-filter: blur(15px);
  cursor: pointer;
}

.discovery-photo-note > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.discovery-photo-note div > span {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #d6e4cf;
}

.discovery-photo-note strong {
  font-size: 12px;
  font-weight: 500;
}

.photo-note-cross {
  font-size: 25px;
  color: #d8efa9;
}

.discovery-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.toolbar-label {
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  flex-shrink: 0;
  font-weight: 600;
}

.discovery-shortcuts {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px 22px;
}

.discovery-shortcuts button {
  color: var(--text-2);
  padding: 5px 0;
  border: 0;
  background: none;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.discovery-shortcuts button:hover {
  color: var(--accent);
  text-decoration: underline;
}

.discovery-shortcuts button span {
  color: #7e8e78;
}

.collection-toggle {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
}

.collection-toggle > span {
  font-size: 20px;
  font-weight: 400;
}

.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 0;
}

.portal-site-card {
  padding: 0;
  text-align: left;
  color: var(--text);
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px #183c3012;
}

.portal-site-card.active-portal {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.portal-card-cover {
  display: block;
  position: relative;
  height: 155px;
  background: #244b36;
  overflow: hidden;
}

.portal-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-card-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #152e2477;
  color: #fff;
  border: 1px solid #ffffff70;
  padding: 4px 9px;
  border-radius: 100px;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.portal-card-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
}

.portal-card-info strong {
  font-size: 15px;
  font-weight: 600;
}

.portal-card-info > span {
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 11px;
}

/* =========================================================================
   5 KEŞİF BÖLÜMÜ (.discovery-chapters & .discovery-story)
   ========================================================================= */
.chapters-intro {
  display: grid;
  grid-template-columns: 1fr auto 40px;
  align-items: end;
  gap: 20px;
  padding: 56px 0 36px;
}

.chapters-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.chapters-intro h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.chapters-intro p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.8;
  padding-bottom: 5px;
}

.chapters-intro > span:last-child {
  text-align: right;
  font-size: 30px;
  font-weight: 300;
}

.discovery-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(560px, 76vh);
  margin: 0 0 30px;
  text-decoration: none;
  color: #233b2b;
  background: #e8eee3;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4.3vw, 64px);
}

.story-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 34px;
}

.story-kicker > span:first-child {
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 9px;
  opacity: 0.75;
}

.story-copy h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.story-copy p {
  font-size: 13px;
  line-height: 1.9;
  opacity: 0.85;
  max-width: 390px;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  font-size: 10px;
  margin: 22px 0 32px;
  opacity: 0.75;
}

.story-tags span::before {
  content: '·';
  margin-right: 7px;
}

.story-open {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
}

.story-open > span {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.story-image {
  position: relative;
  min-height: 100%;
  background: #1f3a2d;
  overflow: hidden;
}

.story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #122c2955, transparent 65%);
  pointer-events: none;
}

.story-image img {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.discovery-story:hover .story-image img {
  transform: scale(1.035);
}

.story-image-index {
  position: absolute;
  bottom: 22px;
  right: 28px;
  color: #ffffffb0;
  z-index: 1;
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.07em;
}

.discovery-story:nth-of-type(even) .story-image {
  order: -1;
}

.story-ink { background: #1b302b; color: #e4f0d6; }
.story-ocean { background: #e1ebeb; color: #1a4548; }
.story-moss { background: #dfe8cf; color: #34482b; }
.story-sand { background: #ece9df; color: #494735; }

/* =========================================================================
   ATLAS SAYFA BAŞLIĞI, BREADCRUMB VE ALT GRUP GEZİNTİSİ (#page=atlas&site=...)
   ========================================================================= */
.discovery-page-heading {
  margin-top: 32px;
}

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--text-3);
  font-size: 11px;
}

.catalog-breadcrumb a {
  text-decoration: none;
  color: inherit;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.catalog-breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0 28px;
}

.eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #6a7d60;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.page-heading-row h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.05em;
  outline: none;
}

.page-heading-row p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-3);
  max-width: 430px;
}

.species-subgroups {
  margin-bottom: 20px;
}

.subgroup-trail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 8px;
  scrollbar-width: none;
}

.subgroup-trail::-webkit-scrollbar {
  display: none;
}

.subgroup-trail a {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 15px;
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  background: var(--surface);
  transition: all 0.16s ease;
}

.subgroup-trail a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.subgroup-trail a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.subgroup-trail a span {
  font-size: 10px;
  opacity: 0.72;
}

.group-section-heading {
  position: relative;
  padding: 28px 0 24px;
}

.group-section-heading h2 {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.group-section-heading p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.7;
  margin: 0;
}

.group-all-link {
  display: inline-flex;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-underline-offset: 5px;
}

.subgroup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 24px;
}

.subgroup-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.subgroup-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.subgroup-card-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe8d8;
}

.subgroup-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subgroup-card-photo > span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  background: #fffef5ed;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #244734;
}

.subgroup-card-copy {
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.subgroup-card h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 9px;
}

.subgroup-card p {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 22px;
}

.subgroup-card-copy > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
}

.subgroup-card-copy b {
  font-size: 20px;
  font-weight: 400;
}

/* =========================================================================
   KATEGORİ FİLTRE ÇUBUĞU VE YATAY FOTOĞRAFLI HİZMET ŞERİDİ (.species-bar)
   ========================================================================= */
.biome-filter-bar {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.section-note {
  font-size: 11px;
  color: var(--text-3);
  padding-bottom: 5px;
}

.biome-pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.biome-pill {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 48px;
  padding: 11px 15px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.16s ease;
}

.biome-pill:hover {
  background: #eef3e8;
  color: var(--text);
}

.biome-pill.active {
  background: #284b35;
  border-color: #284b35;
  color: #fff;
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 2px 6px;
  border-radius: 6px;
  background: transparent;
  color: #6b7d63;
}

.biome-pill.active .pill-count {
  background: #ffffff18;
  color: #fff;
}

.species-count-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-2);
}

.species-bar {
  margin-top: 10px;
  position: relative;
}

.species-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 3px 3px 16px;
  scrollbar-width: thin;
  scrollbar-color: #c6d3bf transparent;
}

.species-grid::-webkit-scrollbar {
  height: 6px;
}
.species-grid::-webkit-scrollbar-thumb {
  background: #c6d3bf;
  border-radius: 999px;
}

.species-pill {
  font: inherit;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 0 0 185px;
  padding: 0;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.species-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px #1733250e;
}

.species-pill.active {
  outline: 2px solid #527541;
  outline-offset: 0;
  border-color: transparent;
}

.species-thumb {
  width: 100%;
  height: 135px;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
  border: 0;
}

.species-pill-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px;
  background: var(--surface);
}

.species-pill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.species-pill-id {
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-flag {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
}

.species-pill-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.species-pill-sci {
  font: italic 10px/1.4 var(--font-sans);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 15px #17332510;
}

.dock-arrow:hover {
  background: var(--surface-2);
}

.dock-arrow-prev { left: 23px; }
.dock-arrow-next { right: 23px; }

/* =========================================================================
   ÇALIŞMA ALANI (.workspace), SEÇİLİ HİZMET HERO (.species-hero) & KPI STRIP
   ========================================================================= */
.workspace {
  margin-top: 24px;
  margin-bottom: 56px;
  outline: none;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.species-hero {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 28px;
}

.hero-Main-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
}

.hero-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iucn-ribbon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(16, 39, 31, 0.82);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #d7f2a4;
  text-align: center;
}

.taxonomy-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  border-radius: 100px;
  font-size: 10px;
  padding: 4px 10px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
  font-weight: 500;
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: transparent;
  font-weight: 600;
}

.hero-title {
  font: 500 clamp(26px, 3vw, 40px)/1.12 var(--font-sans);
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero-species-subtitle {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.015em;
  line-height: 1.5;
  margin-top: 10px;
}

.hero-sci {
  font: italic 12px/1.6 var(--font-sans);
  color: var(--text-3);
  display: block;
  margin-top: 5px;
}

.hero-quote {
  font: 400 13px/1.75 var(--font-sans);
  color: var(--text-2);
  margin-top: 12px;
}

.bio-meta-row {
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 8px 16px;
  line-height: 1.5;
  margin-top: 16px;
  color: var(--text-2);
}

.bio-meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  text-decoration: none;
  transition: all 0.16s ease;
}

.btn:hover {
  background: var(--surface-2);
}

.btn-primary {
  background: #315b41;
  border-color: #315b41;
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: #244b36;
  border-color: #244b36;
}

.kpi-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.kpi-box {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 18px;
  text-align: left;
}

.kpi-box:first-child { padding-left: 0; }
.kpi-box:last-child { border-right: 0; }

.kpi-value {
  font-family: var(--font-sans);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.kpi-unit {
  font-size: 12px;
  color: var(--text-3);
  margin-left: 3px;
  font-weight: 400;
}

.kpi-label {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 3px;
}

/* =========================================================================
   PANELLER (.anatomy-grid, .panel-card) & GÖRSEL SAHNE (.organic-stage-wrap)
   ========================================================================= */
.anatomy-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Kumaş & Bakım İnceleme Sahnesi */
.organic-stage-wrap {
  position: relative;
  width: 100%;
  height: 360px;
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.stage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.45s ease;
}

.stage-image.mode-xray {
  filter: contrast(1.35) saturate(0.25) brightness(0.9) hue-rotate(110deg);
  transform: scale(1.06);
}

.stage-image.mode-thermal {
  filter: contrast(1.25) saturate(1.8) hue-rotate(-35deg);
  transform: scale(1.03);
}

.stage-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.stage-hud-badge {
  background: rgba(16, 39, 31, 0.85);
  border: 1px solid var(--ink-line);
  color: var(--ink-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 7px;
  backdrop-filter: blur(8px);
}

.stage-hud-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(16, 39, 31, 0.86);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  z-index: 4;
}

.stage-hud-bottom strong {
  display: block;
  font-size: 12px;
  color: var(--ink-accent);
  margin-bottom: 3px;
}

.stage-hud-bottom p {
  font-size: 11px;
  color: var(--ink-text);
  line-height: 1.5;
}

.layer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.layer-item:hover,
.layer-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.layer-item-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.layer-item-desc {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 2px;
}

.layer-item-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  white-space: nowrap;
}

/* =========================================================================
   FİYAT HESAPLAYICI VE SEPET PANELİ (.calc-panel)
   ========================================================================= */
.calc-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.calc-filter-pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.calc-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.calc-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.calc-row.has-qty {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.calc-row-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.calc-row-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.calc-row-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.calc-row-sub {
  font-size: 10px;
  color: var(--text-3);
}

.calc-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.calc-row-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
  min-width: 52px;
  text-align: right;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.qty-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.calc-summary-box {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calc-summary-total {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-accent);
  letter-spacing: -0.04em;
}

.calc-Selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-text-2);
}

.calc-selected-tag {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  padding: 3px 8px;
  border-radius: 6px;
}

/* =========================================================================
   KARŞILAŞTIRMA TABLOSU & FORMLAR
   ========================================================================= */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  background: var(--surface);
  color: var(--text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.kvkk-check-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.55;
}

.kvkk-check-wrap input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.kvkk-inline-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* =========================================================================
   FOOTER (.site-footer)
   ========================================================================= */
.site-footer {
  max-width: 1400px;
  margin: 64px auto 0;
  padding: 32px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-3);
}

.site-footer a,
.site-footer button.footer-link-btn {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button.footer-link-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer .footer-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.footer-brand span {
  font-size: 11px;
  vertical-align: top;
  margin-left: 3px;
}

.site-footer p {
  font-size: 12px;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* =========================================================================
   MODALLAR (KURYE SİPARİŞ & 6698 SAYILI KVKK) VE ÇEREZ BARI
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(16, 39, 31, 0.62);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 39, 31, 0.25);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.modal-head h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}

.modal-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow-x: auto;
}

.modal-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.modal-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}

.modal-body h4 {
  color: var(--text);
  font-size: 14px;
  margin: 16px 0 6px;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body ul {
  padding-left: 18px;
  margin: 6px 0 12px;
}

.kvkk-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 1120px;
  margin: 0 auto;
  z-index: 850;
  background: #142e23;
  color: #f0eee6;
  border: 1px solid #3a574b;
  border-radius: 18px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 16px 40px rgba(16, 39, 31, 0.32);
}

.kvkk-banner p {
  font-size: 12px;
  line-height: 1.6;
  color: #d0ddcf;
}

.kvkk-banner p button,
.kvkk-banner p a {
  color: #d7efaf;
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: inherit;
}

.kvkk-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* =========================================================================
   RESPONSIVE KURALLAR
   ========================================================================= */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto minmax(100px, 1fr) auto;
    grid-template-areas:
      'brand search atlas'
      'nav nav lang';
    gap: 0 18px;
  }
  .anatomy-grid {
    grid-template-columns: 1fr;
  }
  .subgroup-grid,
  .portal-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-header {
    padding: 0 18px;
  }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand atlas'
      'search lang'
      'nav nav';
    gap: 0 12px;
  }
  .header-inner .nav-tabs {
    grid-column: 1 / -1;
  }
  .portal-universe-wrap,
  .biome-filter-bar,
  .species-bar,
  .workspace,
  .discovery-chapters,
  .discovery-page-heading,
  .species-subgroups {
    padding-left: 18px;
    padding-right: 18px;
  }
  .discovery-hero {
    min-height: 520px;
    border-radius: 20px;
  }
  .discovery-copy {
    padding: 32px 24px 110px;
  }
  .discovery-photo {
    width: 100%;
  }
  .discovery-shade {
    background: linear-gradient(90deg, #142e23ee, #142e2390), linear-gradient(0deg, #10271f20, #10271f70);
  }
  .discovery-story {
    grid-template-columns: 1fr;
  }
  .story-image {
    height: 260px;
    order: 0 !important;
  }
  .page-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .species-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .hero-Main-photo-wrap {
    aspect-ratio: 4 / 3;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }
  .subgroup-grid,
  .portal-cards-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .kvkk-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
