/* izgate.com — bileşenler: buton, bağlantı, ikon, kart, çip/ipucu, CTA bandı, çerez kartı (components.css) */

/* ── Butonlar (izMail .iz-btn): 52/48 px, r12, 600; birincil = turuncu CTA, ikincil = beyaz + çerçeve ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: var(--iz-btn-h); padding: 0 20px; border-radius: var(--iz-radius-btn); border: 1.5px solid transparent; cursor: pointer;
  font: 600 16px/1.2 var(--font); text-decoration: none;
  transition: background-color var(--iz-dur) var(--iz-ease), border-color var(--iz-dur) var(--iz-ease), color var(--iz-dur) var(--iz-ease), box-shadow var(--iz-dur) var(--iz-ease), transform var(--iz-dur) var(--iz-ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--iz-focus); outline-offset: 3px; }
.btn-primary { background: var(--iz-cta); color: var(--iz-cta-text); box-shadow: 0 8px 18px -10px rgba(195, 74, 32, 0.7); }
.btn-primary:hover { background: var(--iz-cta-hover); color: var(--iz-cta-text); }
.btn-accent { background: var(--iz-cta); color: var(--iz-cta-text); }
.btn-accent:hover { background: var(--iz-cta-hover); color: var(--iz-cta-text); }
.btn-ghost { background: var(--iz-surface); color: var(--iz-heading); border-color: var(--iz-border-strong); }
.btn-ghost:hover { color: var(--iz-heading); border-color: var(--iz-heading); }
.btn-white { background: var(--iz-white); color: var(--iz-heading); }
.btn-white:hover { background: var(--iz-soft); color: var(--iz-heading); }
/* küçük düğme (izMail .iz-btn--nav ölçüsü): 40 px */
.btn-sm { min-height: 40px; padding: 0 18px; gap: 8px; font-size: 15px; border-width: 1px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { min-height: var(--iz-btn-h); padding: 0 24px; font-size: 16px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.more { font-weight: 600; font-size: 15px; color: var(--iz-accent-text); display: inline-flex; gap: 8px; align-items: center; }
.more svg { width: 16px; height: 16px; transition: transform .2s; }
.more:hover svg { transform: translateX(3px); }

/* Eski başlık üstü etiketi (iç sayfalar): sade, harf aralıksız */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font: 600 .82rem/1 var(--font); color: var(--brand-ink);
  background: var(--brand-wash); border: 1px solid var(--brand-100); padding: 7px 11px; border-radius: 999px;
}
.eyebrow.accent { color: var(--signal-ink); background: var(--signal-wash); border-color: #f6d2c1; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* gradyan yazı kalktı: vurgu metni düz marka mavisi */
.grad-text { color: var(--brand-ink); background: none; -webkit-background-clip: initial; background-clip: initial; }

/* ── İkon kutusu (iç sayfalar): tek tonlu ── */
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand-ink); border: 1px solid var(--brand-100); }
.ico svg { width: 22px; height: 22px; stroke-width: 1.8; }
.ico.accent { background: var(--signal-wash); color: var(--signal-ink); border-color: #f6d2c1; }
.ico.ok { background: var(--ok-50); color: var(--ok); border-color: #c9ecd5; }
.ico.violet { background: var(--brand-wash); color: var(--brand-ink); border-color: var(--brand-100); }
.ico.sm { width: 36px; height: 36px; border-radius: 10px; }
.ico.sm svg { width: 19px; height: 19px; }

/* ── Kart (iç sayfalar) ── */
.card {
  background: var(--iz-surface); border: 1px solid var(--iz-border); border-radius: var(--iz-radius-card); padding: var(--iz-card-pad);
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s; position: relative;
}
.card:hover { box-shadow: var(--sh); border-color: var(--rule-2); }
.card h3 { margin-top: 16px; margin-bottom: 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-3); font-size: .98rem; }
.card.flat:hover { box-shadow: var(--shadow-sm); }

/* ── Çip + ipucu (uzun açıklama yerine) ── */
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--iz-border-strong); border-radius: 999px; background: var(--iz-surface); font: 500 15px/1 var(--font); color: var(--iz-heading); cursor: help;
}
.chip svg { width: 18px; height: 18px; color: var(--iz-accent); flex: none; }
.chip:hover, .chip:focus-visible { border-color: var(--iz-accent); }
.chip[data-tip]:hover::after, .chip[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: max-content; max-width: 260px; padding: 10px 12px; border-radius: 8px; background: var(--ink); color: #fff;
  font: 400 13.5px/1.45 var(--font); text-align: left; white-space: normal; pointer-events: none; z-index: 5; animation: iz-tip .15s ease-out both;
}
@keyframes iz-tip { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .chip { font-size: 14px; padding: 0 14px; }
  .chip[data-tip]:hover::after, .chip[data-tip]:focus-visible::after { position: fixed; left: 16px; right: 16px; bottom: 16px; transform: none; width: auto; max-width: none; font-size: 14px; padding: 12px 14px; }
}

/* ── CTA bandı (partials/cta) — izMail son CTA paneli (.hv-final): Navy zemin, nokta deseni, ortalı ── */
.cta-band {
  --iz-heading: var(--iz-white); --iz-text-2: #C9D6E1; --iz-surface: transparent;
  --iz-border-strong: rgba(255, 255, 255, 0.45); --iz-focus: #8FD0EC;
  position: relative; overflow: hidden; text-align: center;
  background: var(--iz-navy); border: 1px solid var(--iz-border); border-radius: var(--iz-radius-media);
  padding: var(--iz-section-y) var(--iz-card-pad-lg); color: var(--iz-text-2);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0) 0 0 / 24px 24px;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--iz-white); font-size: var(--iz-h2); line-height: var(--iz-h2-lh); max-width: var(--iz-title-measure); margin: 0 auto var(--iz-title-gap); }
.cta-band p { margin: 0 auto; max-width: var(--iz-measure); color: var(--iz-text-2); font-size: var(--iz-lead); line-height: var(--iz-lead-lh); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta-band .btn-ghost { background: transparent; color: var(--iz-white); border-color: var(--iz-border-strong); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--iz-white); border-color: var(--iz-white); }
.cta-band :focus-visible { outline-color: var(--iz-focus); }
@media (max-width: 479.98px) { .cta-band .actions .btn { width: 100%; } }

/* ── Çerez kartı (partials/consent): sağ altta küçük kart; sol hizalı hero düğmelerini örtmez ── */
.izc[hidden], .izc-modal[hidden] { display: none; }
/* Alt çerez barı: ekran genişliğinde, ince, sabit; içerik --iz-container genişliğinde ortalanır */
.izc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; width: auto; box-sizing: border-box;
  background: var(--iz-surface); color: var(--iz-text-2); border: 0; border-top: 1px solid var(--iz-border); border-radius: 0;
  box-shadow: 0 -4px 16px rgba(20, 40, 61, .08);
  padding: 14px max(16px, calc((100% - var(--iz-container)) / 2));
  min-height: 64px; display: flex; align-items: center; gap: 24px; font: 400 13px/1.5 var(--font);
}
.izc > div { flex: 1; min-width: 0; }
/* Sayfa son içeriği (footer) bar açıkken barın altında kalmasın */
body:has(.izc:not([hidden])) .site-footer { padding-bottom: calc(28px + 84px); }
.izc-t { display: block; font: 700 15px/1.3 var(--font-display); color: var(--iz-heading); margin: 0 0 4px; }
.izc-p { margin: 0; }
.izc a, .izc-modal a { color: var(--iz-accent-text); font-weight: 600; text-decoration: underline; }
.izc-btns { margin-left: auto; display: grid; grid-template-columns: repeat(3, 148px); gap: 8px; flex: none; }
.izc-b {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px; border-radius: var(--iz-radius-btn);
  font: 600 13px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
/* Reddet / Ayarlar / Kabul eşit görünürlükte: aynı boyut, aynı ağırlık */
.izc-b.ghost { background: var(--iz-surface); border: 1px solid var(--iz-border-strong); color: var(--iz-heading); }
.izc-b.ghost:hover { border-color: var(--iz-heading); }
.izc-b.ok { background: var(--iz-cta); border: 1px solid var(--iz-cta); color: var(--iz-cta-text); }
.izc-b.ok:hover { background: var(--iz-cta-hover); border-color: var(--iz-cta-hover); }
.izc-b:focus-visible, .izc-x:focus-visible { outline: 3px solid var(--iz-focus); outline-offset: 2px; }
@media (max-width: 768px) {
  .izc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 16px; min-height: 0; font-size: 12px; line-height: 1.35; }
  .izc-t { display: none; }
  .izc-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .izc-b { min-height: 36px; padding: 0 6px; font-size: 12.5px; }
  body:has(.izc:not([hidden])) .site-footer { padding-bottom: calc(28px + 128px); }
}

.izc-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(20, 40, 61, .5); font: 400 15px/1.55 var(--font); color: var(--ink-2); }
.izc-card { width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--rad-lg); box-shadow: var(--sh-lg); }
.izc-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px 0; }
.izc-head strong { flex: 1; font: 700 1.15rem/1.3 var(--font-display); color: var(--ink); }
.izc-x { flex: none; width: 40px; height: 40px; border-radius: var(--rad); border: 1px solid var(--rule); background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.izc-x svg { width: 16px; height: 16px; }
.izc-x:hover { border-color: var(--ink-3); }
.izc-lead { margin: 10px 24px 0; font-size: .9rem; }
.izc-cats { display: grid; padding: 14px 24px 6px; }
.izc-cat { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.izc-cat:last-child { border-bottom: 0; }
.izc-cat:first-child { cursor: default; }
.izc-cat div { flex: 1; min-width: 0; }
.izc-cat b { display: block; font: 700 .95rem/1.3 var(--font-display); color: var(--ink); }
.izc-cat div span { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.45; color: var(--ink-3); }
.izc-always { flex: none; font: 600 .78rem/1 var(--font); color: var(--ok); background: var(--ok-50); padding: 6px 10px; border-radius: 999px; }
.izc-sw { position: absolute; opacity: 0; width: 1px; height: 1px; }
.izc-cat i { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--rule-2); transition: background .2s; }
.izc-cat i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.izc-sw:checked + i { background: var(--brand-ink); }
.izc-sw:checked + i::after { transform: translateX(18px); }
.izc-sw:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.izc-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--rule); }
@media (max-width: 560px) {
  .izc-head, .izc-cats { padding-left: 16px; padding-right: 16px; }
  .izc-lead { margin-left: 16px; margin-right: 16px; }
  .izc-foot { flex-direction: column-reverse; padding-left: 16px; padding-right: 16px; }
  .izc-foot .izc-b { width: 100%; }
}
/* CTA bandı içinde beyaz düğme: bant --iz-heading'i beyaza çeviriyor, düğme metni lacivert kalmalı */
.cta-band .btn-white { background: var(--iz-white); color: var(--iz-navy); border-color: var(--iz-white); }
.cta-band .btn-white:hover { background: #E6EEF5; color: var(--iz-navy); }
