/* Ücretsiz hesap araçları (girişsiz tanıtım sayfaları, 2026-10-17) - includes/tools-common.php
   Tanıtım sayfalarının dili: beyaz kart + Hakkımızda kontürü (--hf-card-line), 5px köşe, gölge ve imleç animasyonu yok,
   ikon kutusu yok. Tailwind'den bağımsız (derlenmiş tailwind.css'te olmayan sınıf sessizce çalışmaz). */

.tl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tl-wrap [hidden] { display: none !important; }   /* .tl-field gibi display veren sınıflar hidden'ı ezmesin */
.tl-section { margin-top: 64px; }
.tl-h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; color: #0c2033; margin: 0 0 18px; line-height: 1.2; }
.tl-h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; color: #0c2033; margin: 0 0 14px; }

/* Araç ızgarası: solda form, sağda sonuç; dar ekranda alt alta */
.tl-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.tl-grid.tl-grid-wide { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
@media (max-width: 1023px) { .tl-grid, .tl-grid.tl-grid-wide { grid-template-columns: minmax(0, 1fr); } }
.tl-card { background: #fff; border: 1px solid var(--hf-card-line, hsla(193,4%,52%,.35)); border-radius: 5px; padding: 24px; min-width: 0; }
.tl-stack > * + * { margin-top: 16px; }
@media (max-width: 520px) { .tl-wrap { padding: 0 16px; } .tl-card { padding: 18px 16px; } }

/* Form */
.tl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; position: relative; }
.tl-label { font-size: .82rem; font-weight: 600; color: #2e4153; }
.tl-label small { font-weight: 500; color: #5e6f7f; }
.tl-in { position: relative; }
.tl-input, .tl-select { width: 100%; height: 44px; border: 1px solid #cbd7e1; border-radius: 5px; padding: 0 12px; font: inherit; font-size: .95rem;
                        color: #0c2033; background: #fff; -moz-appearance: textfield; }
.tl-input::-webkit-outer-spin-button, .tl-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tl-in .tl-input { padding-right: 44px; }
.tl-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #5e6f7f; font-size: .85rem; pointer-events: none; }
.tl-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
             background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e6f7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.tl-input:focus, .tl-select:focus { outline: none; border-color: #0b7f8c; box-shadow: 0 0 0 3px rgba(27,194,210,.2); }
.tl-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tl-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tl-hint { font-size: .78rem; color: #5e6f7f; line-height: 1.5; }
.tl-hint:empty { display: none; }
.tl-sep { border: 0; border-top: 1px solid #e2e7eb; margin: 6px 0 18px; }

/* Kip seçici (iki-üç düğme tek kutuda) ve oran çipleri */
.tl-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; border: 1px solid #cbd7e1; border-radius: 5px; margin-bottom: 18px; }
.tl-seg button { min-height: 38px; padding: 0 8px; border: 0; border-radius: 3px; background: transparent; font: inherit; font-size: .85rem;
                 font-weight: 600; color: #3d5163; cursor: pointer; line-height: 1.2; }
.tl-seg button[aria-pressed="true"] { background: #003058; color: #fff; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip { min-height: 38px; padding: 0 14px; border: 1px solid #cbd7e1; border-radius: 5px; background: #fff; font: inherit; font-size: .88rem;
           font-weight: 600; color: #3d5163; cursor: pointer; }
.tl-chip[aria-pressed="true"] { border-color: #003058; background: rgba(0,48,88,.08); color: #003058; }
.tl-chips .tl-input { width: 96px; height: 38px; }

/* Kategori önerileri (komisyon) */
.tl-suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 20; background: #fff; border: 1px solid #b9c6d2;
              border-radius: 5px; max-height: 260px; overflow-y: auto; }
.tl-suggest[hidden] { display: none; }
.tl-suggest button { display: flex; width: 100%; gap: 12px; justify-content: space-between; align-items: baseline; text-align: left; padding: 9px 12px;
                     border: 0; background: #fff; font: inherit; font-size: .85rem; color: #0c2033; cursor: pointer; line-height: 1.35; }
.tl-suggest button + button { border-top: 1px solid #eef1f4; }
.tl-suggest button:hover, .tl-suggest button:focus-visible { background: #f2f4f6; outline: none; }
.tl-suggest b { color: #003058; white-space: nowrap; }
.tl-suggest .tl-empty { padding: 10px 12px; font-size: .82rem; color: #5e6f7f; }

/* Sonuç */
.tl-big-label { font-size: .85rem; font-weight: 600; color: #5e6f7f; }
.tl-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.05; margin-top: 4px; color: #003058; }
.tl-big.good { color: #15803d; } .tl-big.bad { color: #b91c1c; }
.tl-big-sub { font-size: .9rem; color: #3d5163; margin-top: 6px; }
.tl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid #e2e7eb; }
.tl-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-stat { padding: 14px 14px 0 0; min-width: 0; }
.tl-stat + .tl-stat { border-left: 1px solid #e2e7eb; padding-left: 16px; }
.tl-stat-k { font-size: .78rem; color: #5e6f7f; font-weight: 600; }
.tl-stat-v { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #0c2033; margin-top: 2px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tl-stat-s { font-size: .75rem; color: #5e6f7f; margin-top: 2px; }
@media (max-width: 520px) { .tl-stats { grid-template-columns: minmax(0, 1fr); } .tl-stat + .tl-stat { border-left: 0; padding-left: 0; border-top: 1px solid #eef1f4; padding-bottom: 12px; } }
.tl-note { margin-top: 14px; padding: 10px 12px; border-radius: 5px; font-size: .84rem; line-height: 1.55; background: #f2f4f6; color: #2e4153; }
.tl-note.warn { background: #fff7e6; color: #7a4b00; }
.tl-note.bad { background: #fdecec; color: #8f1d1d; }
.tl-note:empty { display: none; }

/* Halka: fiyatın dağılımı (solda halka, sağda kalemler) */
.tl-donut { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: center; }
.tl-donut svg { width: 168px; height: 168px; display: block; }
.tl-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tl-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: .86rem; color: #2e4153; }
.tl-legend i { width: 10px; height: 10px; border-radius: 2px; display: block; }
.tl-legend b { font-weight: 600; color: #0c2033; text-align: right; white-space: nowrap; }
.tl-legend span.p { color: #5e6f7f; font-size: .78rem; text-align: right; min-width: 44px; }
@media (max-width: 560px) { .tl-donut { grid-template-columns: minmax(0, 1fr); justify-items: center; } .tl-legend { width: 100%; } }

/* Tablolar: zebra + dikey ayraç (panel kuralı) */
.tl-scroll { overflow-x: auto; }
.tl-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tl-table th { font-size: .76rem; font-weight: 600; color: #5e6f7f; text-align: right; padding: 9px 12px; border-bottom: 1px solid #dfe5ea; white-space: nowrap; }
.tl-table td { text-align: right; padding: 9px 12px; color: #0c2033; border-bottom: 1px solid #eef1f4; white-space: nowrap; }
.tl-table th:first-child, .tl-table td:first-child { text-align: left; white-space: normal; }
.tl-table th + th, .tl-table td + td { border-left: 1px solid #eef1f4; }
.tl-table tbody tr:nth-child(even) td { background: #f5f7f9; }
.tl-table tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid #dfe5ea; }
.tl-table .muted { color: #5e6f7f; }
.tl-table .good { color: #15803d; } .tl-table .bad { color: #b91c1c; }
.tl-table tr.is-cur td { background: rgba(0,48,88,.07) !important; font-weight: 600; }
.tl-table .best { font-weight: 700; color: #0b7f8c; }
.tl-tag { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 600; color: #0b7f8c; }

/* Fiyat önerileri */
.tl-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-sugg span { border: 1px solid #cbd7e1; border-radius: 5px; padding: 8px 12px; font-weight: 600; color: #0c2033; font-size: .95rem; }
.tl-sugg small { display: block; font-weight: 500; color: #5e6f7f; font-size: .74rem; margin-top: 2px; }

/* Okuma bölümleri (Nasıl hesaplanır, SSS): başlık + içerik ortada tek sütun (2026-10-17, kullanıcı: "ortala") */
.tl-narrow > * { max-width: 880px; margin-left: auto; margin-right: auto; }

/* Nasıl hesaplanır */
.tl-prose { color: #3d5163; font-size: 1rem; line-height: 1.75; }
.tl-prose p { margin: 0 0 14px; }
.tl-prose ul { margin: 0 0 14px 1.2rem; list-style: disc; }
.tl-prose li { margin-bottom: 6px; }
.tl-prose strong { color: #0c2033; font-weight: 600; }
.tl-formula { font-family: var(--font-display); font-weight: 600; color: #0c2033; background: #fff; border: 1px solid var(--hf-card-line, hsla(193,4%,52%,.35));
              border-radius: 5px; padding: 12px 16px; margin: 0 0 16px; font-size: 1rem; line-height: 1.6; }

/* SSS */
.tl-faq { border-top: 1px solid #dfe5ea; }
.tl-faq-item { border-bottom: 1px solid #dfe5ea; }
.tl-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0;
                       font-weight: 600; color: #0c2033; font-size: 1rem; }
.tl-faq-item summary::-webkit-details-marker { display: none; }
.tl-faq-item summary iconify-icon { flex-shrink: 0; color: #5e6f7f; font-size: 1.1rem; }
.tl-faq-item[open] summary iconify-icon { transform: rotate(180deg); }
.tl-faq-item p { margin: 0 0 16px; color: #3d5163; line-height: 1.7; }

/* Panele davet bandı */
.tl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: #fff;
          border: 1px solid var(--hf-card-line, hsla(193,4%,52%,.35)); border-radius: 5px; padding: 28px; }
.tl-cta-text { flex: 1 1 460px; min-width: 0; }
.tl-cta-text p { color: #3d5163; line-height: 1.65; margin: 0; max-width: 680px; }
.tl-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 5px; font-weight: 600;
          font-size: .95rem; text-decoration: none; color: #003058; background: #fff; border: 1px solid #cbd7e1; }
.tl-btn-primary { background: #003058; border-color: #003058; color: #fff; }
.tl-btn-primary:hover { background: #00213d; }
@media (max-width: 520px) { .tl-cta { padding: 20px 16px; } .tl-cta-actions, .tl-btn { width: 100%; } }

/* Diğer araçlar */
.tl-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #dfe5ea; }
.tl-more li { border-bottom: 1px solid #dfe5ea; }
.tl-more li:nth-child(odd) { border-right: 1px solid #dfe5ea; }
.tl-more a { display: block; padding: 16px 20px 16px 0; text-decoration: none; }
.tl-more li:nth-child(even) a { padding-left: 20px; }
.tl-more-t { display: block; font-weight: 600; color: #003058; font-size: 1rem; }
.tl-more a:hover .tl-more-t { text-decoration: underline; text-underline-offset: 3px; }
.tl-more-d { display: block; color: #5e6f7f; font-size: .88rem; line-height: 1.5; margin-top: 3px; }
@media (max-width: 720px) { .tl-more { grid-template-columns: minmax(0, 1fr); } .tl-more li:nth-child(odd) { border-right: 0; } .tl-more li:nth-child(even) a { padding-left: 0; } }

/* Araçlar listesi (tools.php) */
.tl-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid #dfe5ea; }
.tl-index li { border-bottom: 1px solid #dfe5ea; }
.tl-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 22px 0; text-decoration: none; }
.tl-index-t { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #0c2033; letter-spacing: -.01em; }
.tl-index-d { color: #3d5163; font-size: .95rem; line-height: 1.55; display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
.tl-index-go { color: #0b7f8c; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.tl-index a:hover .tl-index-t { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .tl-index a { grid-template-columns: minmax(0, 1fr); } }
