/* ==========================================================================
   Web Kaynak Merkezi — Web Şablonları & Kod Kütüphanesi ortak stilleri
   Ana sitenin tasarım dilini (DM Sans, #111214, #1f65d6, 24px kartlar) kullanır.
   Tüm seçiciler .hub / .hub- önekiyle kapsüllenmiştir; diğer sayfaları etkilemez.
   ========================================================================== */

.hub {
  --hub-bg: #ffffff;
  --hub-surface: #ffffff;
  --hub-soft: #f6f7f9;
  --hub-line: #eceef2;
  --hub-text: #111827;
  --hub-muted: #6b7280;
  --hub-faint: #9ca3af;
  --hub-accent: #1f65d6;
  --hub-accent-soft: #eef4ff;
  --hub-dark: #111214;
  --hub-shadow: 0 16px 40px rgba(17, 24, 39, .08);
  --hub-code-bg: #0d1117;
  --hub-radius: 24px;
  color: var(--hub-text);
}

/* ---------- Koyu mod (yalnızca bu iki sayfada) ---------- */
html[data-hub-theme="dark"] body { background: #0b0c0f; }
html[data-hub-theme="dark"] .hub {
  --hub-bg: #0b0c0f;
  --hub-surface: #14161b;
  --hub-soft: #1a1d23;
  --hub-line: #262a32;
  --hub-text: #f3f4f6;
  --hub-muted: #a1a7b3;
  --hub-faint: #6b7280;
  --hub-accent: #6aa1ff;
  --hub-accent-soft: #172338;
  --hub-dark: #f3f4f6;
  --hub-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
html[data-hub-theme="dark"] .nav-wrap { background: rgba(11, 12, 15, .85); border-bottom-color: #1f2228; }
html[data-hub-theme="dark"] .nav-links { background: #15171c; border-color: #262a32; }
html[data-hub-theme="dark"] .nav-links a, html[data-hub-theme="dark"] .nav-dropdown-trigger { color: #e5e7eb; }
html[data-hub-theme="dark"] .nav-links a:hover, html[data-hub-theme="dark"] .nav-links a.active,
html[data-hub-theme="dark"] .nav-dropdown-wrap:hover .nav-dropdown-trigger { background: #262a32 !important; color: #fff; }
html[data-hub-theme="dark"] .brand-logo { background-image: url('../img/logo3-dark.png'); filter: none; }
html[data-hub-theme="dark"] .nav-btn-desktop { background: #f3f4f6; color: #111; }
html[data-hub-theme="dark"] .nav-toggle { background: #15171c !important; border-color: #262a32 !important; }
html[data-hub-theme="dark"] .nav-toggle svg { stroke: #f3f4f6; }
html[data-hub-theme="dark"] .page-hero h1 { color: #f9fafb; }
html[data-hub-theme="dark"] .page-hero p { color: #a1a7b3; }

/* ---------- Hero ---------- */
.hub .page-hero { max-width: 820px; }
.hub-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hub-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--hub-soft); border: 1px solid var(--hub-line); font-size: 14px; color: var(--hub-muted); }
.hub-stat b { font-size: 16px; color: var(--hub-text); }
.hub-crosslink { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--hub-accent); text-decoration: none; }
.hub-crosslink:hover { text-decoration: underline; }

/* ---------- Araç çubuğu ---------- */
.hub-toolbar { position: sticky; top: 76px; z-index: 20; margin: 40px 0 26px; padding: 14px; border-radius: 22px; background: color-mix(in srgb, var(--hub-surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--hub-line); box-shadow: 0 6px 24px rgba(17, 24, 39, .05); display: grid; gap: 12px; }
.hub-toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hub-search { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.hub-search svg { position: absolute; left: 14px; width: 18px; height: 18px; stroke: var(--hub-faint); fill: none; stroke-width: 2; pointer-events: none; }
.hub-search input { width: 100%; padding: 12px 52px 12px 42px; border-radius: 14px; border: 1px solid var(--hub-line); background: var(--hub-soft); color: var(--hub-text); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.hub-search input:focus { border-color: var(--hub-accent); background: var(--hub-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hub-accent) 15%, transparent); }
.hub-search input::-webkit-search-cancel-button { cursor: pointer; }
.hub-search kbd { position: absolute; right: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--hub-line); font: 12px ui-monospace, Consolas, monospace; color: var(--hub-faint); background: var(--hub-surface); }
.hub-select { padding: 11px 36px 11px 14px; border-radius: 14px; border: 1px solid var(--hub-line); background: var(--hub-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--hub-text); font: inherit; font-size: 14px; appearance: none; cursor: pointer; }
.hub-icon-btn { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--hub-line); background: var(--hub-soft); color: var(--hub-text); cursor: pointer; transition: background .2s, transform .2s; }
.hub-icon-btn:hover { background: var(--hub-surface); transform: translateY(-1px); }
.hub-icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hub-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hub-chips::-webkit-scrollbar { display: none; }
.hub-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hub-line); background: var(--hub-surface); color: var(--hub-muted); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .2s; white-space: nowrap; }
.hub-chip:hover { color: var(--hub-text); border-color: color-mix(in srgb, var(--hub-text) 25%, transparent); }
.hub-chip[aria-pressed="true"] { background: var(--hub-dark); border-color: var(--hub-dark); color: var(--hub-bg); }
.hub-chip small { font-size: 11.5px; opacity: .7; }
.hub-result-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--hub-muted); }
.hub-reset { border: 0; background: none; color: var(--hub-accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* ---------- Kart ızgarası ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hub-card { position: relative; display: flex; flex-direction: column; border-radius: var(--hub-radius); background: var(--hub-surface); border: 1px solid var(--hub-line); overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; animation: hub-in .45s both; }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--hub-shadow); border-color: color-mix(in srgb, var(--hub-text) 12%, transparent); }
.hub-card[hidden] { display: none; }
@keyframes hub-in { from { opacity: 0; transform: translateY(12px); } }
.hub-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hub-soft); border-bottom: 1px solid var(--hub-line); cursor: pointer; border-top: 0; border-left: 0; border-right: 0; padding: 0; width: 100%; }
.hub-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hub-card:hover .hub-thumb img { transform: scale(1.04); }
.hub-thumb iframe { position: absolute; top: 0; left: 0; width: 250%; height: 250%; border: 0; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.hub-thumb-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 18, 20, .45); opacity: 0; transition: opacity .25s; }
.hub-thumb-overlay span { padding: 9px 16px; border-radius: 999px; background: #fff; color: #111; font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.hub-thumb:hover .hub-thumb-overlay, .hub-thumb:focus-visible .hub-thumb-overlay { opacity: 1; }
.hub-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.hub-card-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hub-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--hub-soft); color: var(--hub-muted); border: 1px solid var(--hub-line); }
.hub-badge.cat { background: var(--hub-accent-soft); color: var(--hub-accent); border-color: transparent; }
.hub-badge.ok { color: #15803d; background: color-mix(in srgb, #22c55e 12%, transparent); border-color: transparent; }
.hub-badge.lvl-1 { color: #15803d; background: color-mix(in srgb, #22c55e 12%, transparent); border-color: transparent; }
.hub-badge.lvl-2 { color: #b45309; background: color-mix(in srgb, #f59e0b 14%, transparent); border-color: transparent; }
.hub-badge.lvl-3 { color: #b91c1c; background: color-mix(in srgb, #ef4444 12%, transparent); border-color: transparent; }
html[data-hub-theme="dark"] .hub-badge.ok, html[data-hub-theme="dark"] .hub-badge.lvl-1 { color: #4ade80; }
html[data-hub-theme="dark"] .hub-badge.lvl-2 { color: #fbbf24; }
html[data-hub-theme="dark"] .hub-badge.lvl-3 { color: #f87171; }
.hub-card h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; line-height: 1.3; color: var(--hub-text); }
.hub-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--hub-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hub-tech { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.hub-tech span { padding: 3px 9px; border-radius: 7px; font: 500 11.5px/1.5 ui-monospace, "SF Mono", Consolas, monospace; background: var(--hub-soft); color: var(--hub-muted); }
.hub-actions { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; margin-top: 6px; }
.hub-actions.two { grid-template-columns: 1fr auto; }
.hub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--hub-line); background: var(--hub-surface);
  color: var(--hub-text); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; white-space: nowrap; }
.hub-btn:hover { background: var(--hub-soft); }
.hub-btn:active { transform: scale(.97); }
.hub-btn:focus-visible, .hub-chip:focus-visible, .hub-icon-btn:focus-visible, .hub-thumb:focus-visible { outline: 3px solid color-mix(in srgb, var(--hub-accent) 45%, transparent); outline-offset: 2px; }
.hub-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hub-btn.primary { background: var(--hub-dark); border-color: var(--hub-dark); color: var(--hub-bg); }
.hub-btn.primary:hover { opacity: .88; }
.hub-btn.icon { padding: 10px; width: 42px; }
.hub-btn.sm { padding: 7px 11px; font-size: 12.5px; border-radius: 10px; }
.hub-empty { padding: 60px 20px; text-align: center; color: var(--hub-muted); border: 1px dashed var(--hub-line); border-radius: var(--hub-radius); }
.hub-empty b { display: block; font-size: 18px; color: var(--hub-text); margin-bottom: 6px; }

/* ---------- Bilgi bloğu ---------- */
.hub-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 70px; }
.hub-info div { padding: 26px; border-radius: var(--hub-radius); background: var(--hub-soft); }
.hub-info b { display: block; font-size: 16px; margin-bottom: 6px; color: var(--hub-text); }
.hub-info p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--hub-muted); }

/* ---------- Modal ---------- */
.hub-modal { width: min(1180px, calc(100% - 32px)); max-height: calc(100vh - 40px); margin: auto; padding: 0; border: 0; border-radius: 26px; background: var(--hub-surface); color: var(--hub-text);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45); overflow: hidden; font-family: 'DM Sans', sans-serif; }
.hub-modal[open] { display: flex; flex-direction: column; animation: hub-modal-in .32s cubic-bezier(.2, .8, .2, 1); }
.hub-modal::backdrop { background: rgba(10, 12, 16, .6); backdrop-filter: blur(4px); }
@keyframes hub-modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.hub-modal-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--hub-line); }
.hub-modal-head h2 { margin: 6px 0 4px; font-size: 24px; letter-spacing: -.03em; line-height: 1.2; }
.hub-modal-head p { margin: 0; font-size: 14.5px; color: var(--hub-muted); line-height: 1.55; max-width: 720px; }
.hub-modal-close { margin-left: auto; }
.hub-modal-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--hub-line); overflow-x: auto; scrollbar-width: none; }
.hub-modal-tabs button { position: relative; padding: 14px 14px; border: 0; background: none; color: var(--hub-muted); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hub-modal-tabs button[aria-selected="true"] { color: var(--hub-text); }
.hub-modal-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--hub-text); }
.hub-modal-body { flex: 1; overflow-y: auto; padding: 22px 24px 26px; }
.hub-modal-body [role="tabpanel"][hidden] { display: none; }
.hub-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Şablon detay */
.hub-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.hub-detail-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--hub-line); }
.hub-detail-img img { width: 100%; display: block; }
.hub-detail h3 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--hub-faint); }
.hub-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.hub-list li { display: flex; gap: 10px; line-height: 1.5; }
.hub-list li::before { content: "✓"; flex-shrink: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--hub-accent-soft); color: var(--hub-accent); font-size: 11px; font-weight: 700; margin-top: 1px; }
.hub-tree { margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--hub-soft); font: 13px/1.75 ui-monospace, "SF Mono", Consolas, monospace; color: var(--hub-muted); white-space: pre; overflow-x: auto; }

/* Demo alanı */
.hub-demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.hub-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--hub-soft); border: 1px solid var(--hub-line); }
.hub-seg button { padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: var(--hub-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hub-seg button[aria-pressed="true"] { background: var(--hub-surface); color: var(--hub-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.hub-demo-stage { display: flex; justify-content: center; padding: 14px; border-radius: 18px; background: repeating-conic-gradient(var(--hub-soft) 0 25%, var(--hub-surface) 0 50%) 0 0 / 22px 22px; border: 1px solid var(--hub-line); }
.hub-demo-frame { width: 100%; height: 560px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); transition: width .35s cubic-bezier(.2, .8, .2, 1); }

/* Kod görüntüleyici */
.hub-code { border-radius: 18px; overflow: hidden; background: var(--hub-code-bg); border: 1px solid #1f2630; }
.hub-code-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; background: #161b22; border-bottom: 1px solid #222a35; }
.hub-code-files { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.hub-code-files button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: #8b949e; font: 500 13px ui-monospace, "SF Mono", Consolas, monospace; cursor: pointer; white-space: nowrap; }
.hub-code-files button:hover { color: #e6edf3; }
.hub-code-files button[aria-selected="true"] { background: #0d1117; color: #e6edf3; }
.hub-code-files i { width: 8px; height: 8px; border-radius: 50%; background: #8b949e; }
.hub-code-files i.html { background: #f97316; } .hub-code-files i.css { background: #3b82f6; } .hub-code-files i.js { background: #eab308; } .hub-code-files i.php { background: #8b5cf6; } .hub-code-files i.txt { background: #94a3b8; }
.hub-code-copy { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px solid #30363d; background: #21262d; color: #e6edf3; font: 600 12.5px 'DM Sans', sans-serif; cursor: pointer; transition: background .2s; }
.hub-code-copy:hover { background: #30363d; }
.hub-code-copy.done { background: #238636; border-color: #2ea043; }
.hub-code-copy svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.hub-code pre { margin: 0; max-height: 520px; overflow: auto; padding: 16px 0; font: 13px/1.65 ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; color: #e6edf3; tab-size: 2; counter-reset: ln; }
.hub-code code { display: block; min-width: max-content; }
.hub-code .ln { display: block; padding: 0 18px 0 0; }
.hub-code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 44px; padding-right: 14px; margin-right: 4px; text-align: right; color: #484f58; user-select: none; border-right: 1px solid #21262d; }
.hub-code .ln:hover { background: rgba(110, 118, 129, .1); }
.hub-code-meta { display: flex; justify-content: space-between; padding: 8px 14px; background: #161b22; border-top: 1px solid #222a35; color: #8b949e; font: 12px ui-monospace, Consolas, monospace; }
.hub-code-loading { padding: 40px; color: #8b949e; text-align: center; font: 13px ui-monospace, Consolas, monospace; }
/* Sözdizimi renkleri (GitHub Dark esinli) */
.tk-c { color: #8b949e; font-style: italic; }
.tk-s { color: #a5d6ff; }
.tk-k { color: #ff7b72; }
.tk-n { color: #79c0ff; }
.tk-f { color: #d2a8ff; }
.tk-t { color: #7ee787; }
.tk-a { color: #79c0ff; }
.tk-p { color: #79c0ff; }
.tk-sel { color: #7ee787; }
.tk-at { color: #ff7b72; }
.tk-v { color: #ffa657; }
.tk-pu { color: #8b949e; }

/* Kullanım / prompt */
.hub-usage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.hub-usage h3 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--hub-faint); }
.hub-usage p { margin: 0 0 20px; font-size: 15px; line-height: 1.7; color: var(--hub-text); }
.hub-steps { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.hub-steps li { position: relative; padding: 12px 14px 12px 50px; border-radius: 14px; background: var(--hub-soft); font-size: 14px; line-height: 1.55; counter-increment: st; }
.hub-steps li::before { content: counter(st); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--hub-dark); color: var(--hub-bg); font-size: 12.5px; font-weight: 700; }
.hub-steps code, .hub-usage code { padding: 1px 6px; border-radius: 6px; background: var(--hub-surface); border: 1px solid var(--hub-line); font: 12.5px ui-monospace, Consolas, monospace; }
.hub-dep { padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--hub-line); font-size: 14px; color: var(--hub-muted); margin-bottom: 20px; }
.hub-prompt { position: relative; border-radius: 18px; border: 1px solid var(--hub-line); background: var(--hub-soft); overflow: hidden; }
.hub-prompt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hub-line); font-size: 13.5px; font-weight: 600; }
.hub-prompt-head span { display: inline-flex; align-items: center; gap: 8px; }
.hub-prompt pre { margin: 0; padding: 16px; max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 13px/1.65 ui-monospace, "SF Mono", Consolas, monospace; color: var(--hub-text); }

/* ---------- Bildirim (toast) ---------- */
.hub-toast-wrap { position: fixed; left: 50%; bottom: 24px; z-index: 2147483000; display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.hub-toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #111214; color: #fff; font: 600 14px 'DM Sans', sans-serif; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); animation: hub-toast-in .3s cubic-bezier(.2, .8, .2, 1); }
.hub-toast.err { background: #b91c1c; }
.hub-toast.out { animation: hub-toast-out .25s forwards; }
.hub-toast i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; font-style: normal; font-size: 12px; }
.hub-toast.err i { background: rgba(255, 255, 255, .25); }
@keyframes hub-toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes hub-toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Duyarlı yerleşim ---------- */
@media (max-width: 1080px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-detail, .hub-usage { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hub-toolbar { top: 66px; margin-top: 28px; }
  .hub-info { grid-template-columns: 1fr; }
  .hub-modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  .hub-modal-head { padding: 16px; }
  .hub-modal-head h2 { font-size: 20px; }
  .hub-modal-tabs { padding: 0 10px; }
  .hub-modal-body { padding: 16px; }
  .hub-demo-frame { height: 480px; }
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-toolbar { position: static; padding: 12px; }
  .hub-search { flex-basis: 100%; }
  .hub-search kbd { display: none; }
  .hub-toolbar-row .hub-select { flex: 1 1 0; min-width: 0; padding-right: 30px; font-size: 13px; }
  .hub-demo-sizes { display: none; }
  .hub-code pre { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-card, .hub-modal[open], .hub-toast { animation: none; }
  .hub-card, .hub-thumb img { transition: none; }
}
