/* ============================================================
   ANA SAYFA — TÜM KANALLAR TEK GELEN KUTUSUNDA (index.php .kak)
   ------------------------------------------------------------
   Sol ve sağdaki kanal kartlarından ortadaki gelen kutusuna eğri
   bağlantılar; js/ana-kanal-akis.js çizgileri kart konumlarına göre
   çizer, sırayla bir kanaldan parçacık yollar ve kutuya ulaşınca o
   kanalın mesajını listenin başına kaydırır.
   Ayrı dosya: css/business.css'in min/ aynası canlıda sunuluyor
   (bkz. araclar/asset_servis.php); ona dokunmadan yalnız ana sayfa.
   900px altında kartlar kutunun üstünde ve altında 4'lü ızgara olur;
   çizgiler yukarıdan ve aşağıdan kutuya bağlanır (JS yönü kendisi seçer).
   ============================================================ */

.kak { padding: 80px 0 88px; background: linear-gradient(180deg, #fff 0%, #f6f7fb 100%); overflow: hidden; }
.kak-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; text-align: center; }
.kak-ust { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; margin-bottom: 20px; font-size: 13px; font-weight: 600;
    color: #334155; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.kak-ust-lg { display: flex; }
.kak-ust-lg > span { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #eef0f3;
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.kak-ust-lg > span + span { margin-left: -5px; }
.kak-ust-lg img, .kak-ust-lg svg { width: 16px; height: 16px; display: block; }
.kak .integrations-title { margin-bottom: 18px; }
.kak .integrations-description { margin-bottom: 0; max-width: 760px; }

/* sahne: kart kolonu | çizgi | gelen kutusu | çizgi | kart kolonu */
.kak-sahne { position: relative; display: grid; grid-template-columns: 220px minmax(36px, 1fr) minmax(0, 430px) minmax(36px, 1fr) 220px;
    align-items: center; margin: 56px auto 0; text-align: left; }
.kak-cizgi { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.kak-taban { fill: none; stroke: #dadee6; stroke-width: 1.5; }
.kak-akan { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 11; opacity: .7; animation: kak-akis 1.8s linear infinite; }
@keyframes kak-akis { to { stroke-dashoffset: -26; } }
.kak-port { fill: #fff; stroke: #0f172a; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.kak-port.is-vur { animation: kak-vur .6s ease-out; }
@keyframes kak-vur { 40% { transform: scale(1.9); } }
.kak-hale { opacity: .2; }

.kak-kol { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.kak-kol.sol { grid-column: 1; grid-row: 1; }
.kak-kutu { grid-column: 3; grid-row: 1; }
.kak-kol.sag { grid-column: 5; grid-row: 1; }
.kak-k { position: relative; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 14px; background: #fff;
    border: 1px solid #eceef2; border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px -16px rgba(15, 23, 42, .28);
    transition: transform .3s ease; }
.kak-kol.sag .kak-k { flex-direction: row-reverse; text-align: right; }
.kak-k::after { content: ''; position: absolute; inset: -5px; border: 2px solid var(--r, #6366f1); border-radius: 20px; opacity: 0; pointer-events: none; }
.kak-k.is-gonder { transform: scale(1.04); }
.kak-k.is-gonder::after { animation: kak-halka .9s ease-out; }
@keyframes kak-halka { 0% { opacity: .55; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.08); } }
.kak-lg { width: 38px; height: 38px; border-radius: 11px; background: #f5f6f8; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kak-lg img, .kak-lg svg { width: 24px; height: 24px; display: block; }
.kak-lg i { font-size: 17px; color: #64748b; }
.kak-k-m { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.kak-k-m b { font-size: 14px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kak-k-m small { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* gelen kutusu */
.kak-kutu { position: relative; z-index: 1; min-width: 0; background: #fff; border: 1px solid #e8eaef; border-radius: 20px; overflow: hidden;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 28px 56px -28px rgba(15, 23, 42, .4); }
.kak-kh { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid #eef0f3; }
.kak-kh > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.kak-kh-ik { width: 32px; height: 32px; border-radius: 10px; background: #0f172a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.kak-kh b { font-size: 15px; color: #0f172a; }
.kak-kh small { font-size: 12px; color: #64748b; }
.kak-say { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: #0f172a; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.kak-pencere { height: 310px; overflow: hidden; }
.kak-liste.is-kay { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.kak-s { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 18px; border-bottom: 1px solid #f1f2f5; }
.kak-s.is-yeni { animation: kak-yeni 2.6s ease-out; }
@keyframes kak-yeni { 0%, 30% { background: #edf9f0; } 100% { background: #fff; } }
.kak-av { position: relative; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 12.5px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kak-rz { position: absolute; right: -5px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kak-rz img, .kak-rz svg { width: 15px; height: 15px; display: block; }
.kak-rz i { font-size: 10px; color: #64748b; }
.kak-m { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.kak-m b { font-size: 13.5px; font-weight: 600; color: #0f172a; }
.kak-m small { font-size: 12.5px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kak-z { font-size: 11.5px; color: #94a3b8; white-space: nowrap; }
.kak-s:first-child .kak-z { color: #16a34a; font-weight: 600; }
.kak-kf { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: 12.5px; color: #475569; background: #fafbfc; border-top: 1px solid #eef0f3; }
.kak-kf i { color: #16a34a; }

.kak-alt { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 52px; }
.kak-link { font-size: 15px; font-weight: 600; color: #0f172a; text-decoration: underline; text-underline-offset: 4px; }
.kak-link:hover { color: #334155; }

@media (prefers-reduced-motion: reduce) {
    .kak-akan, .kak-s.is-yeni, .kak-k.is-gonder::after { animation: none; }
    .kak-liste.is-kay { transition: none; }
}

@media (max-width: 1100px) {
    .kak-sahne { grid-template-columns: 178px minmax(28px, 1fr) minmax(0, 390px) minmax(28px, 1fr) 178px; }
    .kak-k { height: 54px; padding: 0 12px; gap: 10px; }
    .kak-k-m small { display: none; }
}

@media (max-width: 900px) {
    .kak { padding: 56px 0 64px; }
    .kak-sahne { grid-template-columns: minmax(0, 1fr); max-width: 460px; row-gap: 40px; margin-top: 40px; }
    .kak-kol.sol { grid-column: 1; grid-row: 1; }
    .kak-kutu { grid-column: 1; grid-row: 2; }
    .kak-kol.sag { grid-column: 1; grid-row: 3; }
    .kak-kol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .kak-k, .kak-kol.sag .kak-k { flex-direction: column; justify-content: center; height: auto; padding: 10px 4px 9px; gap: 6px; text-align: center; border-radius: 14px; }
    .kak-k::after { border-radius: 18px; }
    .kak-k-m { align-items: center; }
    .kak-k-m b { font-size: 11.5px; white-space: normal; line-height: 1.15; }
    .kak-lg { width: 34px; height: 34px; border-radius: 10px; }
    .kak-lg img, .kak-lg svg { width: 22px; height: 22px; }
    .kak-pencere { height: 232px; }
    .kak-s { height: 58px; padding: 0 14px; gap: 10px; }
    .kak-kh { padding: 12px 14px; }
    .kak-kf { padding: 11px 14px; font-size: 12px; }
    .kak-alt { margin-top: 40px; gap: 16px; }
}
