/* =====================================================================
   ENPOL — Bileşenler (components.css)
   ===================================================================== */

/* --- 1. Butonlar ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .01em;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease), background-color .22s, color .22s, border-color .22s, box-shadow .22s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }

.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 16px 34px -22px rgba(198, 160, 70, .95); }
.btn.primary:hover { background: var(--accent-2); color: var(--accent-ink); }

.btn.navy { background: var(--navy-800); color: #fff; }
.btn.navy:hover { background: var(--navy-700); color: #fff; }

.btn.ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 34%, transparent); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn.on-light { color: var(--navy-800); }
.on-light .btn.ghost, .panel-light .btn.ghost { color: var(--navy-800); }

.btn.sm { padding: 10px 18px; font-size: 13px; }
.btn.block { width: 100%; }

/* --- 2. Kartlar ----------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  background: var(--card-bg);
  color: var(--card-fg);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 55%, var(--card-line)); }
.card:hover::after { opacity: 1; }
/* .card.light artık temaya uyum sağlar: beyaz görünüm yalnızca açık temada
   --card-bg üzerinden gelir. Koyu temada otomatik koyu yüzeye döner.
   Bir kartı koyu zeminde zorla beyaz göstermek için `.on-light` kullanın. */

.card.dark { background: var(--navy-800); color: #EEF1F6; border-color: rgba(238, 241, 246, .14); }
.card.dark .num { color: var(--gold-400); }
.card.dark p, .card.dark li { color: #A7B6CC; }
.card.flat { border-radius: var(--radius); }
.card.plain::after { display: none; }

.card .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--card-num);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--card-soft); }
.card ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 11px; }
.card li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--card-soft);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* İkonlu minimal kart */
.feature {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.feature .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  margin-bottom: 20px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--fg-soft); }

/* --- 3. Risk etiketleri --------------------------------------------- */
.risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--surface-2);
}
.risk-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-mute); }
.risk-chip.low .dot { background: var(--ok); }
.risk-chip.mid .dot { background: var(--accent); }
.risk-chip.high .dot { background: var(--danger); }

/* --- 4. Etiket / pill ----------------------------------------------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- 5. Fiyat tablosu ----------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.price-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.price-table td { padding: 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr { transition: background-color .2s; }
.price-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.price-table .pkg { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg); display: block; }
.price-table .seg { font-size: 13px; color: var(--fg-soft); }
.price-table .amount { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--fg); display: block; white-space: nowrap; }
.price-table .role { font-size: 12.5px; color: var(--fg-mute); display: block; margin-top: 6px; }
.price-note {
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-soft);
  background: var(--bg-2);
}

/* --- 6. SSS (details) ----------------------------------------------- */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--fg);
  transition: color .2s, background-color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); background: var(--surface-2); }
.faq summary .plus {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--accent);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq .faq-a { padding: 0 28px 26px; color: var(--fg-soft); font-size: 15px; max-width: 72ch; }

/* --- 7. Operasyon döngüsü ------------------------------------------- */
.protocol { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}
.step .tag { display: block; margin-bottom: 8px; }
.step h4 { font-size: clamp(17px, 1.8vw, 20px); margin-bottom: 8px; color: var(--fg); }
.step p { font-size: 14.5px; color: var(--fg-soft); max-width: 62ch; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 12px; } }

/* --- 8. İstatistik şeridi ------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 34px); color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--fg-soft); }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* --- 9. Form -------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); }
.field .hint { font-size: 12px; color: var(--fg-mute); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fg-soft); margin-top: 6px; }
.form-consent input { width: auto; margin-top: 3px; }

/* Honeypot — gerçek kullanıcıya görünmez */
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

/* Uyarı kutuları */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 14.5px;
  margin-bottom: 24px;
}
.alert.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.alert.err { border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

/* --- 10. İletişim bilgi listesi ------------------------------------- */
.contact-list { display: flex; flex-direction: column; gap: 26px; }
.contact-list .item { border-top: 1px solid var(--line); padding-top: 20px; }
.contact-list .item:first-child { border-top: none; padding-top: 0; }
.contact-list .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
}
.contact-list .value { font-family: var(--font-mono); font-size: 16px; color: var(--fg); }
.contact-list .value:hover { color: var(--accent); }

/* --- 11. Paket öne çıkan kartları ----------------------------------- */
.pkg-card { display: flex; flex-direction: column; height: 100%; }
.pkg-card .price { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--accent); margin: 4px 0 6px; }
.pkg-card .unit { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); }

/* --- 12. Görsel panel / foto slotu ---------------------------------- */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  min-height: 320px;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .media-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(10, 19, 34, .88), transparent);
  color: #EEF1F6;
}
.media .media-cap b { font-family: var(--font-display); font-size: 18px; }
