/* ionia-family.css: sektör ibaresi, ürün ailesi kartları, ION8 / ION8 EB sayfaları.
   style.css'ten sonra yüklenir; yalnız onun değişkenlerini kullanır. */

/* Logo altı sektör ibaresi */
.logo .logo-img { height: 50px; }
.logo-sector {
    display: flex; align-items: center; gap: 6px;
    margin-top: 3px; padding-left: 2px;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--primary);
}
.sector-mark { width: 13px; height: 13px; flex-shrink: 0; }
.footer-sector { display: flex; align-items: center; gap: 8px; color: var(--primary); }
.footer-sector .sector-mark { width: 16px; height: 16px; }
.footer-company { font-size: 0.82rem; line-height: 1.55; opacity: 0.85; }
@media (max-width: 480px) {
    .logo .logo-img { height: 42px; }
    .logo-sector { font-size: 0.5rem; letter-spacing: 0.08em; }
    .sector-mark { width: 11px; height: 11px; }
}

/* Ana sayfa: ürün ailesi kartları */
.fam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .fam-grid { grid-template-columns: 1fr; } }
.fam-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm);
    transition: transform 0.2s, border-color 0.2s;
}
.fam-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.fam-card-visual {
    height: 170px; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: linear-gradient(135deg, #141a21, #1a222b); border-bottom: 1px solid var(--border);
}
.fam-card-visual img, .fam-card-visual svg { max-height: 138px; width: auto; max-width: 100%; object-fit: contain; }
.fam-pair { display: flex; align-items: center; gap: 8px; }
.fam-pair img { max-height: 112px; }
.fam-pair i { width: 34px; border-top: 2px dashed var(--primary); }
.fam-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.fam-card-body h3 { margin: 0 0 4px; font-size: 1.25rem; }
.fam-card-tag { color: var(--primary); font-weight: 600; font-size: 0.88rem; margin: 0 0 10px; }
.fam-card-body p { color: var(--text-light); font-size: 0.92rem; line-height: 1.55; margin: 0 0 14px; }
.fam-card-body p.fam-card-tag { color: var(--primary); }
.fam-card-link { margin-top: auto; color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* Ürün sayfaları */
.fam-hero { padding: calc(var(--header-height) + 40px) 24px 56px; background: var(--gradient-hero); }
.fam-hero-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.fam-hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 16px; color: var(--white); }
.fam-hero p { color: var(--text-light); font-size: 1.08rem; line-height: 1.6; max-width: 620px; margin: 0 0 26px; }
.fam-hero-visual { text-align: center; }
.fam-hero-visual img, .fam-hero-visual svg { max-height: 320px; max-width: 100%; width: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45)); }
.fam-wrap { max-width: var(--max-width); margin: 0 auto; padding: 16px 24px 64px; }
.fam-wrap > section { padding: 40px 0 8px; }
.fam-wrap p { color: var(--text-light); line-height: 1.65; }
.fam-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fam-feat {
    background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--primary);
    border-radius: 10px; padding: 20px;
}
.fam-feat h4 { margin: 0 0 8px; font-size: 1.02rem; color: var(--text); }
.fam-feat p { margin: 0; font-size: 0.92rem; }
.fam-app { border-left-color: var(--blue); }
.fam-table { overflow-x: auto; }
.fam-table table { width: 100%; border-collapse: collapse; }
.fam-table th, .fam-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.fam-table th { color: var(--text-light); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.fam-table td { color: var(--text-light); }
.fam-table td strong { color: var(--text); white-space: nowrap; }
.fam-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 28px; }
.fam-mode {
    background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--primary);
    border-radius: 12px; padding: 24px; scroll-margin-top: calc(var(--header-height) + 16px);
}
.fam-mode-no { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; color: var(--text-light); }
.fam-mode h3 { margin: 6px 0 4px; font-size: 1.4rem; color: var(--text); }
.fam-mode ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-light); font-size: 0.93rem; line-height: 1.6; }
.fam-mode li { margin-bottom: 6px; }
.fam-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 28px; }
.fam-nums div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-align: center; }
.fam-nums strong { display: block; font-size: 1.9rem; color: var(--primary); line-height: 1.1; }
.fam-nums span { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--text-light); }
.fam-docs { margin-top: 28px; }
.fam-docs a { color: var(--primary); font-weight: 600; }
.fam-cta {
    margin-top: 48px; padding: 36px 28px !important; text-align: center;
    background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: 14px;
}
.fam-cta h2 { margin: 0 0 10px; color: var(--text); }
.fam-cta p { max-width: 560px; margin: 0 auto 22px; }
@media (max-width: 820px) {
    .fam-hero-inner { grid-template-columns: 1fr; }
    .fam-hero h1 { font-size: 2rem; }
    .fam-hero-visual img, .fam-hero-visual svg { max-height: 220px; }
}

/* Çözüm çizimleri */
.fam-scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 4px 0 24px; }
@media (max-width: 820px) { .fam-scenes { grid-template-columns: 1fr; } }
.fam-scene {
    margin: 0; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
}
.fam-scene img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.fam-scene figcaption { padding: 14px 18px 16px; }
.fam-scene figcaption p { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-light); }
.fam-scene-code { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; color: var(--blue); }
.fam-overview {
    display: block; margin-top: 24px; overflow: hidden;
    border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.2s;
}
.fam-overview:hover { border-color: var(--primary); }
.fam-overview img { display: block; width: 100%; height: auto; }

/* Hedef durumu rozetleri: yalnız taslakta basılır (build.py --yayin'de yok) */
.hd {
    display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px;
    border: 1px solid currentColor; border-radius: 999px;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4;
    text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.hd-k, .hd-n-k { color: #3fb950 !important; }
.hd-s, .hd-n-s { color: #d29922 !important; }
.hd-y, .hd-n-y { color: #f85149 !important; }
.hd-b, .hd-n-b { color: #8b949e !important; }
.hd-b { border-style: dashed; font-weight: 600; }
.hd-hero { grid-template-columns: 1fr; }
.hd-hero p { max-width: 820px; }
.hd-table td { vertical-align: top; font-size: 0.88rem; line-height: 1.5; }
.hd-table td strong { white-space: normal; }
.hd-table tr:target { background: rgba(210, 153, 34, 0.12); }
.hd-table tr { scroll-margin-top: calc(var(--header-height) + 16px); }

/* Açık tema: çizimlerin açık sürümü, kart görseli zemini, rozet renkleri */
.tema-acik { display: none !important; }
[data-theme="light"] .tema-acik { display: block !important; }
[data-theme="light"] .tema-koyu { display: none !important; }
[data-theme="light"] .fam-card-visual { background: linear-gradient(135deg, #eef1f5, #e2e6ec); }
[data-theme="light"] .hd-k, [data-theme="light"] .hd-n-k { color: #1a7f37 !important; }
[data-theme="light"] .hd-s, [data-theme="light"] .hd-n-s { color: #9a6700 !important; }
[data-theme="light"] .hd-y, [data-theme="light"] .hd-n-y { color: #cf222e !important; }
[data-theme="light"] .hd-b, [data-theme="light"] .hd-n-b { color: #57606a !important; }
.fam-overview { margin-bottom: 40px; }

/* Açık tema: ana sayfa tanıtım bölümü (style.css onu açık temada da koyu tutuyor) */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 60%, #e6ebf2 100%) !important;
    color: var(--text);
}
[data-theme="light"] .hero::before {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) !important;
}
[data-theme="light"] .hero::after { background: radial-gradient(circle, rgba(255, 107, 53, 0.14) 0%, transparent 60%); }
[data-theme="light"] .hero-content h1 { color: #0f1722 !important; }
[data-theme="light"] .hero-content h1 span { color: #e8551f; }
[data-theme="light"] .hero-content .subtitle { color: #46505c !important; }
[data-theme="light"] .hero-category,
[data-theme="light"] .hero-demo-eyebrow { color: #c2410c; background: rgba(255, 107, 53, 0.1); border-color: rgba(194, 65, 12, 0.35); }
[data-theme="light"] .hero .btn-secondary { color: #c2410c !important; }
[data-theme="light"] .hero-feature-hint { color: #46505c; background: rgba(0, 150, 130, 0.08); border-color: rgba(0, 150, 130, 0.35); }
[data-theme="light"] .hero-feature-hint strong { color: #0f1722; }
[data-theme="light"] .hero-feature-hint svg { color: #00897b; }
[data-theme="light"] .hero-feature-hint .hint-dot { background: #00897b; box-shadow: 0 0 6px #00897b; }
[data-theme="light"] .hero-demo-title { color: #46505c; }
[data-theme="light"] .hero-stat { background: rgba(255, 255, 255, 0.7); border-color: rgba(15, 23, 42, 0.1); }
[data-theme="light"] .hero-stat-number { color: #e8551f; }
[data-theme="light"] .hero-stat-label { color: #57606a; }
[data-theme="light"] .hd-highlight { background: #ffffff; border-color: rgba(15, 23, 42, 0.12); }
[data-theme="light"] .hd-num { color: #e8551f; }
[data-theme="light"] .hd-lbl { color: #57606a; }
/* Canlı çizim koyu zemine göre çizildi: çerçevesi açık temada da koyu kart olarak kalır */
[data-theme="light"] .hero-visual-side .hero-demo-svg-wrap {
    background: linear-gradient(180deg, #0a0e13 0%, #10161e 100%);
    box-shadow: 0 18px 44px -20px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.12);
}

/* Uygulama şemaları: tıklayınca tam ekran büyütme */
.fam-scene a { cursor: zoom-in; }
.fam-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 3vh 3vw; background: rgba(5, 8, 12, 0.92); cursor: zoom-out; }
.fam-lightbox.open { display: flex; }
.fam-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; background: var(--bg, #0b0f14); }
.fam-lightbox-close { position: absolute; top: 14px; right: 22px; font-size: 2.2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ION8 EB belge indirme kartları */
.fam-dls { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
a.fam-dl { display: block; text-decoration: none; transition: border-color .15s, transform .15s; }
a.fam-dl:hover { border-color: var(--primary); transform: translateY(-2px); }
.fam-dl p { display: flex; align-items: center; gap: 8px; }
.fam-dl-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--primary); border: 1px solid var(--primary); border-radius: 4px; padding: 1px 6px; }
.fam-dl .doc-arrow { margin-left: auto; color: var(--primary); }

/* ===== Alert SCADA sayfası (as-*) ===== */
.as-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.as-chips li { padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--text); background: rgba(79,143,247,0.10); border: 1px solid rgba(79,143,247,0.35); }
.as-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.as-jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.as-job { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px 20px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.as-job:hover { transform: translateY(-4px); border-color: rgba(79,143,247,0.5); box-shadow: 0 14px 34px rgba(0,0,0,0.25); }
.as-job-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(79,143,247,0.12); color: #4f8ff7; }
.as-job-icon svg { width: 24px; height: 24px; }
.as-job:nth-child(2) .as-job-icon { background: rgba(255,107,53,0.12); color: var(--primary); }
.as-job:nth-child(3) .as-job-icon { background: rgba(250,204,21,0.14); color: #e2b400; }
.as-job:nth-child(4) .as-job-icon { background: rgba(0,191,165,0.12); color: var(--teal); }
.as-job-tag { position: absolute; top: 22px; right: 18px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-light); }
.as-job h3 { margin: 14px 0 8px; font-size: 1.15rem; color: var(--white); }
.as-job p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-light); }
.as-energy { display: flex; gap: 20px; align-items: flex-start; margin-top: 22px; padding: 24px 26px; border-radius: 14px; background: linear-gradient(135deg, rgba(250,204,21,0.10), rgba(79,143,247,0.06)); border: 1px solid rgba(250,204,21,0.35); }
.as-energy-icon { flex: none; display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(250,204,21,0.18); color: #e2b400; }
.as-energy-icon svg { width: 26px; height: 26px; }
.as-energy h3 { margin: 2px 0 8px; font-size: 1.2rem; color: var(--white); }
.as-energy p { margin: 0 0 8px; line-height: 1.65; color: var(--text-light); }
.as-note { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.as-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.as-model { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px 20px; }
.as-model-top { border-color: rgba(79,143,247,0.55); box-shadow: 0 0 0 1px rgba(79,143,247,0.25), 0 14px 34px rgba(79,143,247,0.10); }
.as-model-img { height: 190px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border-radius: 10px; background: radial-gradient(circle at 50% 45%, rgba(79,143,247,0.12), transparent 70%); }
.as-model-img img { max-height: 180px; width: auto; max-width: 100%; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
.as-model-img .as-ph { width: 100%; height: 100%; }
.as-model h3 { margin: 0 0 4px; font-size: 1.3rem; color: var(--white); }
.as-model-io { margin: 0 0 8px; font-size: 0.85rem; font-weight: 600; color: #4f8ff7; }
.as-model p:last-child { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--text-light); }
.as-compare td:not(:first-child), .as-compare th:not(:first-child) { text-align: center; }
.as-compare .as-yes { color: var(--teal); font-weight: 600; }
.as-compare .as-no { color: var(--text-light); opacity: 0.6; }
.as-compare .as-dev { color: #e2b400; font-size: 0.85rem; }
.as-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; height: 100%; border: 2px dashed rgba(127,140,160,0.35); border-radius: 10px; background: repeating-linear-gradient(135deg, rgba(127,140,160,0.04) 0 12px, transparent 12px 24px); color: var(--text-light); text-align: center; padding: 16px; }
.as-ph svg { width: 34px; height: 34px; opacity: 0.7; }
.as-ph b { color: var(--text); font-size: 0.95rem; }
.as-ph span { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.as-browser { background: #0b1222; border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,0.35); }
.as-browser-bar { display: flex; gap: 6px; padding: 9px 12px; background: #141c2b; border-bottom: 1px solid rgba(255,255,255,0.06); }
.as-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4558; }
.as-browser-bar i:first-child { background: #ff5f57; }
.as-browser-bar i:nth-child(2) { background: #febc2e; }
.as-browser-bar i:nth-child(3) { background: #28c840; }
.as-browser img { display: block; width: 100%; height: auto; }
.as-browser-ph .as-ph { border: none; border-radius: 0; aspect-ratio: 16 / 9; min-height: 0; color: #8392a8; }
.as-browser-ph .as-ph b { color: #cbd5e1; }
.as-zoom { display: block; cursor: zoom-in; }
.as-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center; margin-bottom: 26px; }
.as-split-text h3 { margin: 0 0 10px; font-size: 1.4rem; color: var(--white); }
.as-split-text p { line-height: 1.7; color: var(--text-light); }
.as-list { margin: 12px 0 0; padding: 0; list-style: none; }
.as-list li { position: relative; padding: 6px 0 6px 26px; color: var(--text); }
.as-list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #4f8ff7; box-shadow: 0 0 0 4px rgba(79,143,247,0.18); }
.as-shots3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 18px; }
.as-shots3 figure { margin: 0; }
.as-shots3 .as-browser a, .as-shots3 .as-browser .as-ph { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: #0b1222; }
.as-shots3 .as-browser img { width: 100%; height: 100%; object-fit: contain; }
.as-shots3 figcaption { margin-top: 10px; font-size: 0.88rem; line-height: 1.5; color: var(--text-light); }
.as-shots3 figcaption b { color: var(--text); }
.as-showcases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.as-showcase { margin: 0; }
.as-stage { position: relative; padding: 0 12% 9% 0; }
.fam-feats.as-2x2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .fam-feats.as-2x2 { grid-template-columns: 1fr; } }
.as-phone { position: absolute; right: 0; bottom: 0; width: 24%; border: 5px solid #1d2636; border-radius: 22px; overflow: hidden; background: #0b1222; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.as-phone img { display: block; width: 100%; height: auto; }
.as-showcase figcaption { margin-top: 14px; }
.as-showcase figcaption p { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-light); }
[data-theme="light"] .as-browser { border-color: rgba(0,0,0,0.12); box-shadow: 0 18px 50px rgba(15,23,42,0.18); }
[data-theme="light"] .as-job:hover { box-shadow: 0 14px 34px rgba(15,23,42,0.12); }
@media (max-width: 1080px) { .as-jobs { grid-template-columns: repeat(2, 1fr); } .as-showcases { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .as-models, .as-shots3, .as-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .as-jobs { grid-template-columns: 1fr; } .as-energy { flex-direction: column; } }
.as-compare th:not(:first-child) { white-space: nowrap; }
.as-jobs.as-jobs-2, .as-models.as-models-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .as-models.as-models-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .as-jobs.as-jobs-2 { grid-template-columns: 1fr; } }
