/* Bal Defterim — uygulama paleti (Tema.kt / Tema.swift ile birebir) */
:root {
  --orman: #173D2B;
  --yesil2: #245647;
  --bal: #D99A24;
  --kehribar: #B96518;
  --krem: #F6F1E4;
  --kart: #FFFFFF;
  --metin: #26332B;
  --soluk: #5E6A60;
  --cizgi: #E4DCC7;
  --alacak-sari: #F2C26B;
  --baslik-soluk: #CFE0D4;
  --tamam: #3E8A5A;
  --tehlike: #9B3522;
  --bal-acik: #F2E9D3;

  /* Sipariş durum rozetleri (RozetTuru) */
  --rozet-odendi-bg: #E3EFE6;
  --rozet-odendi-fg: #1F5A37;
  --rozet-onsip-bg: #FBEBD0;
  --rozet-onsip-fg: #8A4B0F;
  --rozet-alacak-bg: #F7E1DA;
  --rozet-alacak-fg: #9B3522;
  --rozet-teslim-bg: #E6EEF4;
  --rozet-teslim-fg: #2F5A7D;
  --rozet-hediye-bg: #EFE7F4;
  --rozet-hediye-fg: #6A3C85;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--krem);
  color: var(--metin);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--yesil2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

.wrap.dar {
  max-width: 780px;
}

/* Üst şerit */
.ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0 22px;
}

.marka {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--orman);
  text-decoration: none;
}

.marka:hover {
  text-decoration: none;
}

.marka img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 8px rgba(23, 61, 43, 0.14);
}

.marka-yazi {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.marka-yazi b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--orman);
}

.marka-yazi small {
  font-size: 12px;
  font-weight: 600;
  color: var(--soluk);
}

.hap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--orman);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.15s ease;
}

.hap:hover {
  background: var(--yesil2);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Açılış (OzetEkrani koyu orman yeşili başlık paneli) */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 32px;
  align-items: center;
  padding: 40px 42px;
  border-radius: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V48l28-16 28 16v34L28 98z' fill='none' stroke='%23F2C26B' stroke-opacity='0.06' stroke-width='1.2'/%3E%3C/svg%3E"),
    linear-gradient(155deg, var(--orman) 0%, #1C4936 60%, var(--yesil2) 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23, 61, 43, 0.22);
  overflow: hidden;
}

.hero > * {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.sezon-etiket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--alacak-sari);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #fff;
}

.hero h1 span {
  color: var(--alacak-sari);
}

.giris {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--baslik-soluk);
  max-width: 52ch;
}

/* Özet ekranındaki 2x2 saydam kutucukların sade yansıması */
.ozet-serit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 26px;
}

.ozet-kutu {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 11px 13px;
}

.ozet-kutu small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--baslik-soluk);
}

.ozet-kutu b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.ozet-kutu.sari b {
  color: var(--alacak-sari);
}

/* Mağaza düğmeleri */
.indir {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.magaza {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #F5CA76 0%, var(--bal) 100%);
  color: var(--orman);
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}

.magaza:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  text-decoration: none;
}

.magaza svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.magaza span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 16px;
}

.magaza small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.78;
}

.kucuk {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--baslik-soluk);
  opacity: 0.92;
}

/* Açılış telefon çerçevesi + alt çubuk arısı */
.hero-gorsel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.telefon {
  width: 100%;
  max-width: 280px;
  padding: 8px;
  border-radius: 34px;
  background: #0F291D;
  border: 2px solid rgba(242, 194, 107, 0.36);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.telefon img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
}

.ari-rozet {
  position: absolute;
  left: 6px;
  bottom: 18px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--orman);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  animation: suzul 3.2s ease-in-out infinite;
}

.ari-rozet svg {
  width: 48px;
  height: 48px;
  overflow: visible;
}

.ari-rozet .kanat-sol {
  transform-origin: 14px 14px;
  animation: kanat-sol 0.45s ease-in-out infinite alternate;
}

.ari-rozet .kanat-sag {
  transform-origin: 19.5px 14px;
  animation: kanat-sag 0.45s ease-in-out infinite alternate;
}

@keyframes suzul {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes kanat-sol {
  from { transform: rotate(-25deg) scaleY(1); }
  to { transform: rotate(-16deg) scaleY(0.84); }
}

@keyframes kanat-sag {
  from { transform: rotate(25deg) scaleY(1); }
  to { transform: rotate(16deg) scaleY(0.84); }
}

@media (prefers-reduced-motion: reduce) {
  .ari-rozet,
  .ari-rozet .kanat-sol,
  .ari-rozet .kanat-sag {
    animation: none;
  }
}

/* Bölüm başlığı (BolumBasligi) */
.bolum-ust {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 42px 0 16px;
}

.bolum-ust h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--orman);
}

.bolum-ust span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--yesil2);
}

/* Ürün kutucuk şeridi (Satılabilir stok kartları biçiminde) */
.urun-seridi {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.urun-kutusu {
  flex: 1 0 154px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 18px;
  background: var(--kart);
  border: 1px solid var(--cizgi);
  box-shadow: 0 3px 10px rgba(23, 61, 43, 0.04);
}

.urun-kutusu img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  background: #FFFDF7;
}

.urun-kutusu b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--metin);
  line-height: 1.2;
  white-space: nowrap;
}

.urun-kutusu small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--kehribar);
  margin-top: 2px;
  white-space: nowrap;
}

/* Kart temel biçimi (Modifier.kart: beyaz, 18px) */
.kart {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(23, 61, 43, 0.045);
}

/* Özellik kartları */
.ozellikler {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ozellik {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ozellik.zekat-kart {
  border-color: #E2C67C;
  box-shadow: 0 4px 16px rgba(217, 154, 36, 0.09);
}

.ozellik-bas {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ozellik-bas img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: contain;
  flex-shrink: 0;
  background: #FFFDF7;
  border: 1px solid var(--cizgi);
}

.ozellik h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--orman);
  line-height: 1.25;
}

.ozellik p {
  margin: 0;
  font-size: 14.5px;
  color: var(--soluk);
}

/* Native RozetTuru hapları */
.rozetler {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rozet {
  display: inline-block;
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
}

.rozet.odendi { background: var(--rozet-odendi-bg); color: var(--rozet-odendi-fg); }
.rozet.onsip  { background: var(--rozet-onsip-bg);  color: var(--rozet-onsip-fg); }
.rozet.alacak { background: var(--rozet-alacak-bg); color: var(--rozet-alacak-fg); }
.rozet.teslim { background: var(--rozet-teslim-bg); color: var(--rozet-teslim-fg); }
.rozet.hediye { background: var(--rozet-hediye-bg); color: var(--rozet-hediye-fg); }

/* Zekat ilerleme çubuğu önizlemesi */
.zekat-cubuk {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--bal-acik);
}

.zekat-cubuk-ust {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--metin);
  margin-bottom: 6px;
}

.zekat-cubuk-ust span:last-child {
  color: var(--kehribar);
}

.iz {
  height: 8px;
  border-radius: 999px;
  background: var(--bal-acik);
  overflow: hidden;
}

.iz i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tamam), var(--bal));
}

/* Ekran galerisi */
.galeri {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.ekran-karti {
  flex: 1 0 184px;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}

.ekran-cerceve {
  padding: 6px;
  border-radius: 26px;
  background: var(--orman);
  border: 1.5px solid rgba(23, 61, 43, 0.25);
  box-shadow: 0 10px 24px rgba(23, 61, 43, 0.14);
}

.ekran-cerceve img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.ekran-karti figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--metin);
}

/* SSS */
.sss {
  padding: 6px 22px;
}

.sss details {
  padding: 14px 0;
  border-bottom: 1px solid var(--cizgi);
}

.sss details:last-child {
  border-bottom: 0;
}

.sss summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--orman);
}

.sss summary::-webkit-details-marker {
  display: none;
}

.sss summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--kehribar);
  flex-shrink: 0;
  line-height: 1;
}

.sss details[open] summary::after {
  content: "−";
}

.sss p {
  margin: 10px 0 2px;
  font-size: 14.5px;
  color: var(--soluk);
}

/* Alt bağlantılar */
.baglantilar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 16px 20px;
}

.baglantilar a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--orman);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--krem);
  border: 1px solid var(--cizgi);
}

.baglantilar a:hover {
  background: var(--bal-acik);
  text-decoration: none;
}

footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soluk);
}

/* Gizlilik belge sayfası */
.belge {
  padding: 32px 34px;
}

.belge h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 800;
  color: var(--orman);
  letter-spacing: -0.02em;
}

.belge .tarih {
  margin: 0 0 22px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--kehribar);
}

.belge h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--orman);
  padding-top: 14px;
  border-top: 1px solid var(--cizgi);
}

.belge p,
.belge li {
  font-size: 15px;
  color: var(--soluk);
}

.belge ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

.belge li {
  margin-bottom: 6px;
}

.belge b {
  color: var(--metin);
}

.belge code {
  background: var(--krem);
  border: 1px solid var(--cizgi);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--orman);
}

.not-kutu {
  background: var(--krem);
  border-left: 4px solid var(--bal);
  border-radius: 10px;
  padding: 12px 15px;
  margin: 12px 0;
  font-size: 14.5px;
  color: var(--metin);
}

/* Responsive */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 26px;
    gap: 26px;
  }

  .telefon {
    max-width: 248px;
  }

  .ari-rozet {
    left: calc(50% - 148px);
    bottom: 14px;
    width: 62px;
    height: 62px;
  }

  .ari-rozet svg {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 14px 14px 44px;
  }

  .hero {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .ozet-serit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ozet-kutu {
    padding: 9px 10px;
  }

  .ozet-kutu b {
    font-size: 13.5px;
  }

  .indir {
    flex-direction: column;
  }

  .magaza {
    justify-content: center;
  }

  .ozellikler {
    grid-template-columns: 1fr;
  }

  .bolum-ust {
    flex-direction: column;
    gap: 2px;
    margin-top: 32px;
  }

  .belge {
    padding: 22px 18px;
  }
}
