/* Bağ Şeması — "Bizi Bir Arada Tutan" bölümü.
   JS yüklenmezse (.is-ready yoksa) şema gizlenir, beş metin alt alta düz liste olarak okunur. */
.adc-bag { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 28px; align-items: center;
           padding: 28px; background: var(--adc-card); border: 1px solid var(--adc-line); border-radius: 16px; font-family: var(--adc-font); }
.adc-bag:not(.is-ready) { display: block; }
.adc-bag:not(.is-ready) .adc-bag-web, .adc-bag:not(.is-ready) .adc-bag-bars { display: none; }
.adc-bag:not(.is-ready) .adc-bag-pane + .adc-bag-pane { margin-top: 24px; }

/* --- şema --- */
.adc-bag-web { position: relative; aspect-ratio: 52 / 42; }
.adc-bag-web svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.adc-bag-web line { stroke: #cbd5e1; stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: stroke .25s; }
.adc-bag-web line.rim { stroke: var(--adc-line); }
.adc-bag-web line.on { stroke: var(--adc-rose); stroke-width: 2; stroke-dasharray: 5 7; animation: adc-bag-flow 1s linear infinite; }
@keyframes adc-bag-flow { to { stroke-dashoffset: -12; } }
.adc-bag-hub { position: absolute; left: 50%; top: var(--hy, 50%); transform: translate(-50%, -50%);
               display: grid; place-items: center; height: 46px; padding: 0 18px; border-radius: 999px;
               background: var(--adc-rose); color: #fff; font-weight: 800; font-size: 15px;
               box-shadow: 0 0 0 8px rgba(225, 29, 72, .1), 0 8px 22px rgba(225, 29, 72, .3); }
.adc-bag-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
                display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; white-space: nowrap; cursor: pointer;
                border: 1px solid var(--adc-line); border-radius: 999px; background: #fff; color: var(--adc-navy);
                font: 700 14px var(--adc-font); box-shadow: 0 2px 8px rgba(15, 36, 57, .06);
                transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.adc-bag-node::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; transition: background .2s; }
.adc-bag-node:hover { border-color: #fda4af; }
.adc-bag-node:focus-visible { outline: 2px solid var(--adc-rose); outline-offset: 3px; }
.adc-bag-node[aria-selected="true"] { background: var(--adc-navy); border-color: var(--adc-navy); color: #fff; box-shadow: 0 8px 22px rgba(15, 36, 57, .22); }
.adc-bag-node[aria-selected="true"]::before { background: var(--adc-rose-soft); }

/* --- metin --- */
.adc-bag-detail { display: flex; flex-direction: column; touch-action: pan-y; }
/* Beş metin aynı hücrede üst üste durur: en uzun metin yüksekliği belirler, geçişte sayfa zıplamaz */
.adc-bag.is-ready .adc-bag-stack { display: grid; }
.adc-bag.is-ready .adc-bag-pane { grid-area: 1 / 1; visibility: hidden; }
.adc-bag.is-ready .adc-bag-pane.on { visibility: visible; animation: adc-bag-swap .35s ease-out; }
@keyframes adc-bag-swap { from { opacity: 0; transform: translateY(6px); } }
.adc-bag-count { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--adc-rose); font-variant-numeric: tabular-nums; }
.adc-bag-pane h3 { margin: 10px 0 0; font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--adc-navy); }
.adc-bag-pane p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--adc-text); }
.adc-bag-bars { display: flex; gap: 6px; padding-top: 22px; }
.adc-bag-bars i { flex: 1; height: 3px; border-radius: 2px; background: var(--adc-line); overflow: hidden; }
.adc-bag-bars i.done { background: #fda4af; }
.adc-bag-bars i.run::after { content: ""; display: block; height: 100%; background: var(--adc-rose); transform-origin: left; animation: adc-bag-fill var(--dur, 6000ms) linear forwards; }
.adc-bag.held .adc-bag-bars i.run::after { animation-play-state: paused; }
@keyframes adc-bag-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- tablet: şema üstte, metin altta --- */
@media (max-width: 860px) {
  .adc-bag { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .adc-bag-web { width: 100%; max-width: 520px; margin: 0 auto; }
}
/* --- telefon: haplar sığmaz; numaralı daire + altında etiket --- */
@media (max-width: 560px) {
  .adc-bag { padding: 20px 16px 22px; gap: 14px; }
  .adc-bag-web { aspect-ratio: 1 / 1.04; max-width: 360px; }
  .adc-bag-node, .adc-bag-node[aria-selected="true"] {
    flex-direction: column; gap: 6px; width: 104px; min-height: 0; padding: 0;
    transform: translate(-50%, -22px);          /* 44px dairenin merkezi bağlantı noktasına oturur */
    white-space: normal; text-align: center; border: 0; background: none; box-shadow: none;
    color: var(--adc-text); font-size: 12.5px; line-height: 1.25; }
  .adc-bag-node::before, .adc-bag-node[aria-selected="true"]::before {
    content: attr(data-n); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 1px solid #cbd5e1; color: var(--adc-navy); font-size: 14px; font-weight: 800;
    box-shadow: 0 2px 8px rgba(15, 36, 57, .08); }
  .adc-bag-node[aria-selected="true"] { color: var(--adc-navy); }
  .adc-bag-node[aria-selected="true"]::before { background: var(--adc-navy); border-color: var(--adc-navy); color: #fff;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, .22), 0 6px 16px rgba(15, 36, 57, .25); }
  .adc-bag-node span { padding: 1px 5px; border-radius: 6px; background: #fff; }   /* çizgi etiketin arkasında kalır */
  .adc-bag-node:focus-visible { outline: none; }
  .adc-bag-node:focus-visible::before { outline: 2px solid var(--adc-rose); outline-offset: 3px; }
  .adc-bag-hub { height: 38px; padding: 0 13px; font-size: 13px; box-shadow: 0 0 0 6px rgba(225, 29, 72, .1), 0 6px 16px rgba(225, 29, 72, .28); }
  .adc-bag-pane h3 { font-size: 22px; }
  .adc-bag-pane p { font-size: 15px; line-height: 1.7; }
  .adc-bag-bars { padding-top: 18px; }
  .adc-bag-bars i { height: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .adc-bag-web line.on, .adc-bag.is-ready .adc-bag-pane.on, .adc-bag-bars i.run::after { animation: none; }
  .adc-bag-bars i.run { background: var(--adc-rose); }
}
