/* kodend.com — zengin footer, hesaplama araçları, entegrasyon detay ve yasal sayfalar */

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; isolation: isolate; margin-top: 0; background: linear-gradient(180deg, #0B1030 0%, #0E1440 60%, #120F33 100%); color: #C9CDEA; padding-top: 0; }
.foot a { color: inherit; text-decoration: none; }
.foot-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 320px at 10% 0%, rgba(203,34,40,.28), transparent 70%), radial-gradient(600px 300px at 95% 30%, rgba(124,58,237,.22), transparent 70%); }
.foot-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); }

.foot-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-block: 48px 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.fc-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: transform .25s var(--kd-ease), background .25s, border-color .25s; min-width: 0; }
.fc-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.fc-card > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.fc-card small { font-size: .78rem; color: #9298C4; }
.fc-card b { color: #fff; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.08); color: #fff; }
.fc-wa { background: #25D366; }
.fc-primary { background: linear-gradient(120deg, var(--red), #E5484D); border-color: transparent; }
.fc-primary:hover { background: linear-gradient(120deg, #B71C22, var(--red)); }
.fc-primary small { color: rgba(255,255,255,.8); }
.fc-primary .fc-ic { background: rgba(255,255,255,.18); }
.fc-go { margin-left: auto; color: #fff; transition: transform .2s; }
.fc-primary:hover .fc-go { transform: translateX(4px); }

.foot-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 48px; padding-block: 56px 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 18px; }
.foot-logo img { height: 42px; width: auto; filter: invert(1) hue-rotate(180deg) saturate(1.5) brightness(1.1); }
.foot-brand > p { font-size: .92rem; line-height: 1.65; color: #A9AED6; }
.foot-hours { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.foot-hours li { display: flex; gap: 8px; align-items: center; }
.foot-hours .ic { color: #FF8A8C; }
.foot-social { list-style: none; display: flex; gap: 8px; }
.foot-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .2s; }
.foot-social a:hover { background: var(--red); transform: translateY(-3px); }
.foot-social .ic { width: 20px; height: 20px; }
.foot-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.foot-trust li { display: inline-flex; gap: 6px; align-items: center; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(22,163,74,.12); color: #7EE2A8; border: 1px solid rgba(22,163,74,.25); }

.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.foot-cols h2 { font: 700 .78rem var(--kd-font-body); letter-spacing: .09em; text-transform: uppercase; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.foot-cols h2::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--red); }
.foot-cols h2.mt { margin-top: 26px; }
.foot-cols ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-cols a { font-size: .9rem; color: #A9AED6; transition: color .15s, padding .15s; display: inline-flex; align-items: center; gap: 6px; }
.foot-cols a:hover { color: #fff; padding-left: 4px; }
.tag-new { font-size: .66rem; font-weight: 800; color: #fff; background: var(--red); padding: 1px 6px; border-radius: 999px; }

.foot-logos { border-block: 1px solid rgba(255,255,255,.08); padding-block: 18px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fl-track { list-style: none; display: flex; gap: 12px; width: max-content; animation: marquee 90s linear infinite reverse; }
.foot-logos:hover .fl-track { animation-play-state: paused; }
.fl-track a { display: grid; place-items: center; width: 52px; height: 52px; padding: 7px; border-radius: 14px; background: #fff; opacity: .82; transition: opacity .2s, transform .2s; }
.fl-track a:hover { opacity: 1; transform: translateY(-3px); }
.fl-track img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: .82rem; color: #8D93C0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a:hover, .to-top:hover { color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); font-weight: 600; }

/* Eski footer sınıflarını devre dışı bırak (site.css'ten kalan) */
.site-footer { display: none; }

/* ---------- Entegrasyon detay ---------- */
.int-hero-art { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; gap: 0; }
.iha-ring { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--kd-accent) 45%, var(--kd-line)); animation: spin 40s linear infinite; }
.iha-card { position: relative; z-index: 1; width: 120px; height: 120px; border-radius: 30px; background: #fff; border: 1px solid var(--kd-line); box-shadow: var(--shadow-lg); display: grid; place-items: center; padding: 18px; }
.iha-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.iha-brand { animation: bob 6s ease-in-out infinite; }
.iha-kodend { animation: bob 6s -3s ease-in-out infinite; }
.iha-link { display: flex; gap: 8px; padding-inline: 14px; position: relative; z-index: 1; }
.iha-link i { width: 10px; height: 10px; border-radius: 50%; background: var(--kd-accent); opacity: .25; animation: dot-flow 1.2s ease-in-out infinite; }
.iha-link i:nth-child(2) { animation-delay: .2s; }
.iha-link i:nth-child(3) { animation-delay: .4s; }
@keyframes dot-flow { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.iha-badge { left: 50%; bottom: 18px; transform: translateX(-50%); animation: none; }
.int-card--link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; height: 100%; transition: transform .25s var(--kd-ease), box-shadow .25s, border-color .25s; }
.int-card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--kd-accent) 40%, var(--kd-line)); }
.int-grid > li { display: flex; }
.int-grid > li > * { flex: 1; }

/* ---------- Hesaplama araçları ---------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.calc-card { background: var(--kd-surface); border: 1px solid var(--kd-line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-md); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-unit { position: relative; }
.input-unit .kd-input { padding-right: 36px; font-size: 1.05rem; font-variant-numeric: tabular-nums; min-height: 46px; }
.input-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--kd-muted); font-weight: 600; }
.calc-card .kd-select { min-height: 46px; }
.calc-result { position: sticky; top: 100px; border-radius: 22px; padding: clamp(22px, 3vw, 32px); color: #E8EAF6; background: radial-gradient(500px 260px at 90% 0%, rgba(124,58,237,.4), transparent 60%), radial-gradient(400px 260px at 0% 100%, rgba(203,34,40,.35), transparent 60%), var(--navy); display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lg); }
.cr-big { display: flex; flex-direction: column; gap: 4px; }
.cr-big small { color: #9298C4; }
.cr-big b { font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--kd-font-display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cr-big b.neg { color: #FF8A8C; }
.cr-pill { align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(22,163,74,.18); color: #7EE2A8; font-weight: 700; font-size: .85rem; }
.cr-list { margin: 0; display: flex; flex-direction: column; }
.cr-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.cr-list dt { color: #A9AED6; }
.cr-list dd { margin: 0; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cr-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.08); }
.cr-bar i { height: 100%; transition: width .4s var(--kd-ease); }
#b-maliyet, .l-m { background: #94A3B8; }
#b-komisyon, .l-k { background: var(--amber); }
#b-kdv, .l-v { background: #8FA0FF; }
#b-gider, .l-g { background: #F472B6; }
#b-kar, .l-p { background: #22C55E; }
.cr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .75rem; color: #A9AED6; }
.cr-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.cr-note { font-size: .78rem; color: #8D93C0; line-height: 1.55; }
.calc-result .cta-primary { justify-content: center; }

/* ---------- Yasal ---------- */
.legal-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.legal-note { display: flex; gap: 16px; padding: 24px; border-radius: 18px; background: var(--kd-surface); border: 1px solid var(--kd-line); box-shadow: var(--shadow-md); }
.legal-note > .ic { width: 32px; height: 32px; color: var(--red); flex: none; }
.legal-note p { color: var(--kd-muted); margin-top: 6px; max-width: 62ch; }
.legal-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 16px; background: var(--kd-surface); border: 1px solid var(--kd-line); }
.legal-nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--kd-muted); }
.legal-nav a:hover { background: var(--kd-soft); color: var(--kd-ink); }
.legal-nav a[aria-current="page"] { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1020px) {
  .foot-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .calc-grid, .legal-body { grid-template-columns: minmax(0, 1fr); }
  .calc-result { position: static; }
}
@media (max-width: 720px) {
  .foot-contact { grid-template-columns: minmax(0, 1fr); padding-block: 36px 28px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .calc-row { grid-template-columns: minmax(0, 1fr); }
  .int-hero-art { height: 240px; transform: scale(.85); }
}
@media (prefers-reduced-motion: reduce) {
  .fl-track, .iha-ring, .iha-brand, .iha-kodend, .iha-link i { animation: none !important; }
  .foot-logos { overflow-x: auto; }
}
.legal-text { max-width: 72ch; padding: 28px 32px; border-radius: 18px; background: var(--kd-surface); border: 1px solid var(--kd-line); }
.legal-text h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p, .legal-text li { color: var(--kd-muted); line-height: 1.7; }
.legal-text p + p { margin-top: 10px; }
.legal-text ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 640px) { .legal-text { padding: 20px; } }
