/* ============================================================================
   page-help.css — "Bu ekran nasıl çalışır?" infografik helper (page-help.js).
   Reusable: [data-page-help="anahtar"] tetikleyici + #ph-modal infografik.
   ============================================================================ */
.ph-trigger {
    border: 0;
    background: transparent;
    color: #0dcaf0;
    cursor: pointer;
    line-height: 1;
}
.ph-trigger:hover { color: #0aa2c0; }

.ph-purpose {
    background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(13,202,240,.08));
    border: 1px solid rgba(13,110,253,.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.ph-purpose .ph-purpose-ic {
    font-size: 1.4rem; color: var(--bs-primary, #0d6efd);
}

/* Veri akışı şeridi: girdiler -> [ekran] -> çıktılar */
.ph-flow {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.ph-flow-col { display: flex; flex-direction: column; gap: 6px; }
.ph-chip {
    background: #fff; border: 1px solid #dee2e6; border-radius: 20px;
    padding: 5px 12px; font-size: .8rem; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ph-center {
    background: var(--bs-primary, #0d6efd); color: #fff; border: 0;
    border-radius: 12px; padding: 10px 16px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(13,110,253,.3);
}
.ph-arrow { color: #adb5bd; font-size: 1.1rem; }

/* Bölüm kartları */
.ph-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .ph-cards { grid-template-columns: 1fr; } }
.ph-card {
    border: 1px solid #e9ecef; border-radius: 12px; padding: 14px 16px;
    background: #fff; will-change: transform, opacity;
}
.ph-card-h {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; margin-bottom: 10px;
}
.ph-card-h .ph-ic {
    width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.ph-card ul { margin: 0; padding-left: 2px; list-style: none; }
.ph-card li { position: relative; padding-left: 18px; margin-bottom: 7px; font-size: .875rem; line-height: 1.4; }
.ph-card li:before {
    content: "•"; position: absolute; left: 4px; color: var(--bs-primary, #0d6efd); font-weight: 700;
}
.ph-card li b { font-weight: 600; }

/* Sayfa başına otomatik yardım balonu (inline tetikleyici yoksa) */
.ph-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 1050;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: #0dcaf0; color: #fff; font-size: 1.2rem; cursor: pointer;
    box-shadow: 0 6px 18px rgba(13,202,240,.45);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s ease, background .15s ease;
}
.ph-fab:hover { background: #0aa2c0; transform: translateY(-2px); }

/* Sayfaya özel yardımı olmayan ekranlarda FAB doğrudan kullanım kılavuzunu açar (kitap ikonu). */
.ph-fab-guide { background: #2563eb; box-shadow: 0 6px 18px rgba(37,99,235,.4); }
.ph-fab-guide:hover { background: #1d4ed8; }

/* Yardım panelinin altındaki kılavuz bağlantısı. */
.ph-guide-link { font-size: .85rem; text-decoration: none; color: #2563eb; }
.ph-guide-link:hover { text-decoration: underline; }
[data-theme="dark"] .ph-guide-link { color: #93c5fd; }

[data-theme="dark"] .ph-chip { background: var(--input-bg, #0b1220); border-color: var(--border, #3b475c); color: var(--text, #e2e8f0); }
[data-theme="dark"] .ph-card { background: var(--card-bg, #0f172a); border-color: var(--border, #3b475c); }
[data-theme="dark"] .ph-purpose { border-color: rgba(96,165,250,.3); }
