/* DevTools Hub - homepage + category pages (new design) */
/* Scoped to .hub-page wrapper. Uses IBM Plex Sans + JetBrains Mono for distinctive typography. */

.hub-page { font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #e8eaed; background: #0a0d14; }
.hub-page * { box-sizing: border-box; }
.hub-page a { color: #7eb3ff; text-decoration: none; transition: color 0.15s; }
.hub-page a:hover { color: #a3c8ff; }

.hub-page .site-header { padding: 28px 0 20px; border-bottom: 1px solid #1a1f2c; margin-bottom: 0; }
.hub-page .site-header .container { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hub-page .site-header h1 { font-size: 1.4rem; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.hub-page .site-header h1 a { color: inherit; }
.hub-page .site-header .subtitle { color: #b3b8c0; font-size: 0.9rem; margin: 4px 0 0; }
.hub-page .site-header .top-nav { display: flex; gap: 18px; font-size: 0.875rem; }
.hub-page .site-header .top-nav a { color: #b3b8c0; }
.hub-page .site-header .top-nav a:hover { color: #fff; }
.hub-page .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.hub-page .hero { text-align: center; padding: 60px 0 56px; }
.hub-page .hero h2 { font-size: 2.5rem; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.15; }
.hub-page .hero p { color: #b3b8c0; font-size: 1.05rem; max-width: 580px; margin: 0 auto 32px; }
.hub-page .hero-search { max-width: 560px; margin: 0 auto; position: relative; }
.hub-page .hero-search input { width: 100%; padding: 16px 20px 16px 48px; background: #131826; border: 1px solid #1f2638; border-radius: 8px; color: #fff; font-size: 1rem; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.hub-page .hero-search input:focus { outline: none; border-color: #7eb3ff; box-shadow: 0 0 0 3px rgba(126, 179, 255, 0.2); }
.hub-page .hero-search input:focus-visible { outline: 3px solid #7eb3ff; outline-offset: 2px; }
.hub-page .hero-search::before { content: "\2315"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #8a8f99; font-size: 1.2rem; }
.hub-page .hero-meta { color: #8a8f99; font-size: 0.85rem; margin-top: 18px; }

.hub-page .section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid #1a1f2c; }
.hub-page .section-header h2 { font-size: 1.25rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.hub-page .section-header .section-count { color: #8a8f99; font-size: 0.875rem; font-weight: 400; }
.hub-page .section-block { margin-bottom: 72px; }

.hub-page .category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hub-page .category-card { display: block; padding: 20px 18px; background: #131826; border: 1px solid #1f2638; border-radius: 8px; text-decoration: none; color: #e8eaed; transition: all 0.15s; }
.hub-page .category-card:hover { border-color: #7eb3ff; background: #161c2c; }
.hub-page .category-card:focus-visible { outline: 3px solid #7eb3ff; outline-offset: 2px; border-color: #7eb3ff; }
.hub-page .category-card h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 4px; }
.hub-page .category-card .cat-count { color: #8a8f99; font-size: 0.8rem; }

.hub-page .tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hub-page .tool-card { display: block; padding: 18px; background: #131826; border: 1px solid #1f2638; border-radius: 8px; transition: all 0.15s; text-decoration: none; color: inherit; }
.hub-page .tool-card:hover { border-color: #7eb3ff; background: #161c2c; }
.hub-page .tool-card:focus-visible { outline: 3px solid #7eb3ff; outline-offset: 2px; }
.hub-page .tool-card h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 6px; color: #e8eaed; }
.hub-page .tool-card h3 a { color: inherit; }
.hub-page .tool-card p { color: #b3b8c0; font-size: 0.85rem; margin: 0; line-height: 1.45; }
.hub-page .tool-tag { display: inline-block; margin-top: 10px; padding: 2px 8px; font-size: 0.7rem; font-weight: 500; border-radius: 4px; background: #1f2d4a; color: #a3c8ff; }

.hub-page .all-tools-section { margin-bottom: 64px; }
.hub-page .all-tools-section details { border: 1px solid #1a1f2c; border-radius: 8px; background: #0d111c; }
.hub-page .all-tools-section summary { padding: 16px 20px; cursor: pointer; color: #e8eaed; font-weight: 500; user-select: none; list-style: none; }
.hub-page .all-tools-section summary:focus-visible { outline: 3px solid #7eb3ff; outline-offset: -3px; }
.hub-page .all-tools-section summary::-webkit-details-marker { display: none; }
.hub-page .all-tools-section summary::before { content: "\25B8"; color: #8a8f99; display: inline-block; margin-right: 8px; }
.hub-page .all-tools-section details[open] summary::before { content: "\25BE"; }
.hub-page .all-tools-section details[open] summary { border-bottom: 1px solid #1a1f2c; }
.hub-page .all-tools-section .tools-grid { padding: 20px; }

.hub-page .related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hub-page .related-card { display: block; padding: 18px 16px; background: #131826; border: 1px solid #1f2638; border-radius: 8px; text-decoration: none; color: #e8eaed; transition: all 0.15s; }
.hub-page .related-card:hover { border-color: #7eb3ff; background: #161c2c; }
.hub-page .related-card:focus-visible { outline: 3px solid #7eb3ff; outline-offset: 2px; }
.hub-page .related-card h3 { font-size: 0.9rem; font-weight: 600; margin: 0 0 4px; }
.hub-page .related-card .count { color: #8a8f99; font-size: 0.8rem; margin: 0; }

.hub-page .footer-min { border-top: 1px solid #1a1f2c; padding: 28px 0; margin-top: 60px; color: #8a8f99; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.hub-page .footer-min a { color: #b3b8c0; margin-right: 18px; }
.hub-page .footer-min a:hover { color: #fff; }
.hub-page .footer-min a:focus-visible { outline: 2px solid #7eb3ff; outline-offset: 2px; }

.hub-page .pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 24px 20px 8px; justify-content: center; }
.hub-page .page-link { display: inline-block; padding: 6px 12px; min-width: 36px; text-align: center; background: #131826; border: 1px solid #1f2638; border-radius: 6px; color: #b3b8c0; font-size: 0.85rem; text-decoration: none; transition: all 0.15s; }
.hub-page .page-link:hover { border-color: #7eb3ff; color: #fff; background: #161c2c; }
.hub-page .page-link:focus-visible { outline: 3px solid #7eb3ff; outline-offset: 2px; }
.hub-page .page-link.current { background: #7eb3ff; border-color: #7eb3ff; color: #0a0d14; font-weight: 600; }
.hub-page .page-link.disabled { opacity: 0.4; cursor: not-allowed; }
.hub-page .page-ellipsis { color: #8a8f99; padding: 0 4px; }
.hub-page .page-info { color: #8a8f99; font-size: 0.8rem; margin-left: 12px; width: 100%; text-align: center; padding-top: 8px; }

/* Universal focus-visible for any element in hub-page */
.hub-page a:focus-visible, .hub-page button:focus-visible, .hub-page input:focus-visible, .hub-page summary:focus-visible { outline: 3px solid #7eb3ff; outline-offset: 2px; }

@media (max-width: 720px) {
  .hub-page .hero h2 { font-size: 1.8rem; }
  .hub-page .hero { padding: 36px 0 32px; }
  .hub-page .section-block { margin-bottom: 48px; }
  .hub-page .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-page .site-header .container { flex-direction: column; align-items: flex-start; }
  .hub-page .site-header .top-nav { margin-top: 8px; }
  .hub-page .pagination { padding: 16px 12px 4px; }
  .hub-page .page-info { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-page * { transition: none !important; animation: none !important; }
}
