/* Rakip kelime avcısı — Keywords For Site */

.card--kfs {
  padding: 0;
  overflow: visible;
}

.main__body .container.container--blog > .card.card--kfs {
  padding: 0;
}

.kfs-workbench {
  padding: 1.5rem 1.35rem 1.65rem;
}

@media (min-width: 640px) {
  .kfs-workbench {
    padding: 1.75rem 1.85rem 2rem;
  }
}

.kfs-wb-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.kfs-wb-head__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.kfs-wb-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text, #f4f4f5);
}

.kfs-wb-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted, #a1a1aa);
  max-width: 42rem;
}

.kfs-wb-lead strong {
  color: var(--text-soft, #d4d4d8);
  font-weight: 600;
}

.kfs-wb-block {
  margin-bottom: 1.25rem;
}

.kfs-wb-label {
  display: block;
  margin: 0 0 0.5rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--muted, #a1a1aa) !important;
}

.kfs-wb-input {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0.9rem 1rem !important;
  font-size: 0.95rem !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.12)) !important;
  background: var(--bg-deep, #121214) !important;
  color: var(--text, #f4f4f5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.kfs-wb-input:focus {
  outline: none !important;
  border-color: rgba(20, 184, 166, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.15);
}

.kfs-wb-hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted, #a1a1aa);
}

.kfs-wb-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .kfs-wb-filters {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.kfs-wb-select-shell {
  position: relative;
}

.kfs-wb-select-shell::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted, #a1a1aa);
  pointer-events: none;
  opacity: 0.75;
}

.kfs-wb-select {
  width: 100%;
  margin: 0 !important;
  padding: 0.85rem 2.5rem 0.85rem 1rem !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.12)) !important;
  background: var(--bg-elevated, #222226) !important;
  color: var(--text, #f4f4f5) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.kfs-wb-select:focus {
  outline: none !important;
  border-color: rgba(20, 184, 166, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.15) !important;
}

.kfs-wb-costnote {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-soft, #d4d4d8);
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(120, 53, 15, 0.2);
}

.kfs-wb-costnote strong {
  color: #fde68a;
  font-weight: 700;
}

.kfs-wb-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: rgba(15, 118, 110, 0.06);
}

.kfs-wb-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-soft, #d4d4d8);
  cursor: pointer;
}

.kfs-wb-check input {
  margin-top: 0.2rem;
  accent-color: #14b8a6;
}

.kfs-wb-check--warn span:last-child {
  color: #fcd34d;
}

.kfs-wb-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.kfs-wb-submit {
  position: relative;
  width: 100%;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.5rem !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  border-radius: 12px !important;
  border: none !important;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #0891b2 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35), 0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}

.kfs-wb-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.kfs-wb-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.kfs-wb-submit__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 45%);
  pointer-events: none;
  opacity: 0.5;
}

.kfs-wb-submit__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 1;
}

.kfs-wb-actions__note {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted, #a1a1aa);
}

/* app.css .output-box max-height kalksın — sonuçlar sayfa ile akar, iç kutu scroll’u yok */
#out-kfs.kfs-output-flush.output-box,
.kfs-output-flush.output-box {
  max-height: none !important;
  overflow: visible !important;
  overflow-x: visible !important;
}

/* Çıktı */
.kfs-out {
  margin-top: 0;
  padding: 1.25rem 1.15rem 1.5rem;
}

@media (min-width: 640px) {
  .kfs-out {
    padding: 1.5rem 1.65rem 1.85rem;
  }
}

.kfs-dashboard {
  width: 100%;
}

/* Bu dilimde en yüksek tahmini talep (hacim) */
.kfs-topkw {
  margin: 1rem 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.35), rgba(15, 23, 42, 0.65));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.kfs-topkw__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #99f6e4;
}

.kfs-topkw__word {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  color: #f0fdfa;
  word-break: break-word;
}

.kfs-topkw__meta {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.kfs-topkw__note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
}

.kfs-hero {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}

.kfs-stat {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.55), rgba(15, 118, 110, 0.12));
  padding: 0.65rem 0.75rem;
  min-height: 3.75rem;
}

.kfs-stat--ok {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.5));
}

.kfs-stat--cost {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.45), rgba(15, 23, 42, 0.55));
}

.kfs-stat--cost .kfs-stat__v {
  color: #fde68a;
}

.kfs-cost-footnote {
  max-width: 52rem;
}

.kfs-stat__k {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #a1a1aa);
}

.kfs-stat__v {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text, #f4f4f5);
  word-break: break-word;
}

.kfs-stat__v--wide {
  font-size: 0.95rem;
  line-height: 1.25;
}

.kfs-stat__h {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: #6ee7b7;
}

.kfs-ai-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(45, 212, 191, 0.45);
  background: rgba(15, 118, 110, 0.12);
  color: #ccfbf1;
  font-size: 0.9rem;
}

.kfs-ai-banner__pulse {
  animation: kfs-pulse 1.2s ease-in-out infinite;
}

@keyframes kfs-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.08);
  }
}

.kfs-table-wrap {
  overflow: visible;
  width: 100%;
}

.kfs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: fixed;
}

.kfs-table th,
.kfs-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.kfs-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #a1a1aa);
  white-space: nowrap;
}

.kfs-kw {
  font-weight: 600;
  color: var(--text, #f4f4f5);
  max-width: 16rem;
}

.kfs-trend {
  font-size: 0.72rem;
  color: var(--text-soft, #d4d4d8);
}

.kfs-tr-detail td {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
}

.kfs-detail-inner {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-soft, #d4d4d8);
}

.kfs-meta-line {
  margin: 0.35rem 0;
}

.kfs-subh {
  margin: 1rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5eead4;
}

.kfs-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.kfs-mini-table th,
.kfs-mini-table td {
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kfs-list {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.kfs-list li {
  margin: 0.25rem 0;
}

.kfs-warn {
  color: #fca5a5;
}

.kfs-tag {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.7rem;
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

.kfs-legacy-wrap {
  margin-top: 1.5rem;
}

/* Koyu çıktı alanında bölüm başlıkları (Tailwind slate-900 burada okunaksız kalıyordu) */
.kfs-section-head {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.kfs-section-head__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f4f5;
}

/* Son aramalar */
.kfs-history {
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.45);
}

.kfs-history__label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #a1a1aa);
}

.kfs-history__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kfs-history-chip {
  cursor: pointer;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(15, 118, 110, 0.25);
  color: #ccfbf1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kfs-history-chip:hover {
  border-color: rgba(45, 212, 191, 0.6);
  background: rgba(15, 118, 110, 0.4);
}

/* PDF dışa aktarma */
.kfs-export-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.kfs-export-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.kfs-btn-print {
  font-weight: 700;
}

.kfs-export-bar__hint {
  font-size: 0.78rem;
  color: var(--muted, #a1a1aa);
}

/* AI “Sonuç” paragrafları — Tailwind dinamik HTML’de üretilmeyebilir */
.kfs-sonuc-line {
  margin: 0;
  color: #f4f4f5;
  line-height: 1.65;
}

/* Okunaklı PDF: tarayıcı yazdır → PDF olarak kaydet (metin vektör, sayfa kırılımı doğal) */
@media print {
  #site-topbar,
  .sub,
  .page-title,
  .guest-cta,
  .guest-cta--soft,
  .arac-seo,
  .no-print {
    display: none !important;
  }

  .main {
    padding: 0 !important;
  }

  .main .container.container--blog {
    max-width: 100% !important;
    padding: 6mm 8mm !important;
    margin: 0 !important;
  }

  #kfs-print-root {
    break-inside: auto;
    border: none !important;
    box-shadow: none !important;
  }

  #kfs-print-root,
  #kfs-print-root * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #out-kfs {
    max-height: none !important;
    overflow: visible !important;
  }
}
