
:root {
  /* === Base Palette (Dark - default for tech audience) === */
  --bg-base: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a25;
  --bg-card-hover: #1e1e2a;
  --text-primary: #f0f0f5;
  --text-secondary: #9898a8;
  --text-muted: #5a5a6e;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  /* === Brand Colors (Blue=trust/tech + Orange=fun/energy) === */
  --accent: #3b82f6;
  --accent-glow: rgba(59,130,246,0.15);
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --fun: #f97316;
  --fun-glow: rgba(249,115,22,0.15);
  --fun-light: #fb923c;

  /* === Category Colors (mapped to psychological associations) === */
  --cat-ai: #8b5cf6;        /* violet: innovation, imagination, AI/future */
  --cat-gadgets: #f59e0b;   /* amber: attention, new/shiny, excitement */
  --cat-gaming: #22c55e;    /* green: go/start, energy, Xbox/Razer feel */
  --cat-programming: #3b82f6;/* blue: logic, precision, calm focus */
  --cat-security: #ef4444;  /* red: alert, protection, urgency */
  --cat-space: #6366f1;     /* indigo: deep space, wonder, vastness */
  --cat-apps: #ec4899;      /* pink: creative, modern, approachable */
  --cat-howto: #0d9488;     /* teal: clarity, guidance, freshness */

  /* === Typography === */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", monospace;

  /* === Spacing & Radius === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* === Light Theme === */
.light {
  --bg-base: #f5f5fa;
  --bg-card: #ffffff;
  --bg-elevated: #ededf3;
  --bg-card-hover: #e5e5ec;
  --text-primary: #111118;
  --text-secondary: #55556a;
  --text-muted: #8888a0;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
}

/* === Reset & Base === */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  padding-bottom: 72px;
  overflow-x: hidden;
  width: 100%;
}
@media(min-width:1024px) { body { padding-bottom: 0; } }
a { color: inherit; text-decoration: none; }
img { max-width:100%; display:block; height:auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; overflow-x: hidden; }
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-width: 0;
  overflow: hidden;
}
@media(min-width:1024px) {
  .main-grid { grid-template-columns: 2fr 1fr; }
}

/* === Glass Card System === */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.light .site-header { background: rgba(245,245,250,0.85); }
.header-hide { transform: translateY(-100%); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent) 0%, var(--fun) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo span {
  font-weight: 800;
  background: linear-gradient(135deg, var(--fun) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.search-box {
  flex: 1;
  max-width: 420px;
  min-width: 0;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: background 0.2s;
  min-width: 36px;
}
.icon-btn:hover { background: var(--bg-card-hover); }

/* === Category Tabs === */
.category-tabs {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 53px;
  z-index: 90;
}
.tabs-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
  scroll-snap-align: start;
  white-space: nowrap;
}
.tab:hover, .tab.active {
  color: #fff;
  border-color: transparent;
}
.tab[data-cat="ai"]:hover,.tab[data-cat="ai"].active { background: var(--cat-ai); }
.tab[data-cat="gadgets"]:hover,.tab[data-cat="gadgets"].active { background: var(--cat-gadgets); color: #000; }
.tab[data-cat="gaming"]:hover,.tab[data-cat="gaming"].active { background: var(--cat-gaming); color: #000; }
.tab[data-cat="programming"]:hover,.tab[data-cat="programming"].active { background: var(--cat-programming); }
.tab[data-cat="security"]:hover,.tab[data-cat="security"].active { background: var(--cat-security); }
.tab[data-cat="space"]:hover,.tab[data-cat="space"].active { background: var(--cat-space); }
.tab[data-cat="apps"]:hover,.tab[data-cat="apps"].active { background: var(--cat-apps); }
.tab[data-cat="howto"]:hover,.tab[data-cat="howto"].active { background: var(--cat-howto); }
.tab[data-cat="all"]:hover,.tab[data-cat="all"].active { background: var(--accent); }

/* === Hero Card === */
.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.hero-card .hero-visual {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}
@media(min-width:768px) { .hero-card .hero-visual { height: 340px; } }
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 20px 20px;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.6) 60%, transparent 100%);
}
.hero-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media(min-width:768px) { .hero-card h2 { font-size: 1.75rem; } }
.hero-summary {
  padding: 12px 20px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.hero-meta {
  padding: 0 20px 16px;
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* === Badge System === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-sm { font-size: 0.65rem; padding: 2px 8px; }
.badge-ai { background: rgba(139,92,246,0.2); color: #a78bfa; }
.badge-gadgets { background: rgba(245,158,11,0.2); color: #fbbf24; }
.badge-gaming { background: rgba(34,197,94,0.2); color: #4ade80; }
.badge-programming { background: rgba(59,130,246,0.2); color: #60a5fa; }
.badge-security { background: rgba(239,68,68,0.2); color: #f87171; }
.badge-space { background: rgba(99,102,241,0.2); color: #818cf8; }
.badge-apps { background: rgba(236,72,153,0.2); color: #f472b6; }
.badge-howto { background: rgba(13,148,136,0.2); color: #2dd4bf; }
.badge-general { background: rgba(59,130,246,0.2); color: #60a5fa; }

/* === Section Headers === */
.section { margin-bottom: 28px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fun);
}
.see-all {
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 600;
  transition: color 0.2s;
}
.see-all:hover { color: var(--fun-light); }

/* === Horizontal Carousel === */
.carousel-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
@media(min-width:640px) { .carousel-scroll { padding: 4px 44px 8px; } }
.carousel-scroll::-webkit-scrollbar { display: none; }
.carousel-card {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media(min-width:640px) { .carousel-card { width: 220px; } }
@media(min-width:1024px) { .carousel-card { width: 260px; } }
@media(max-width:380px) { .carousel-card { width: 160px; } }
.carousel-card .card-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
@media(min-width:1024px) { .carousel-card .card-visual { height: 150px; } }
.carousel-card .card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.carousel-card .card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
@media(min-width:1024px) { .carousel-card .card-title { font-size: 0.9rem; -webkit-line-clamp: 3; } }

/* === Article List Cards === */
.article-list { display: flex; flex-direction: column; gap: 10px; }
.article-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  align-items: flex-start;
}
.article-card .card-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}
@media(min-width:768px) {
  .article-card .card-thumb { width: 100px; height: 100px; }
}
.article-card .card-content { flex: 1; min-width: 0; }
.article-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-card .card-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}
.card-meta {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

/* === Line Clamps === */
.line-clamp-1 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; }
.line-clamp-2 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.line-clamp-3 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }

/* === Sidebar === */
.sidebar { display: none; }
@media(min-width:1024px) { .sidebar { display: flex; flex-direction: column; gap: 20px; } }
.sidebar-section { padding: 18px; }
.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.trending-list { list-style: none; }
.trending-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.trending-list li:last-child { border-bottom: none; }
.trending-rank {
  font-size: 1rem;
  font-weight: 800;
  color: var(--fun);
  font-family: var(--font-mono);
  min-width: 24px;
}
.trending-list a {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s;
}
.trending-list a:hover { color: var(--accent-light); }
.cat-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* === Bottom Navigation === */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.light .bottom-nav { background: rgba(245,245,250,0.9); }
@media(min-width:1024px) { .bottom-nav { display: none; } }
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  min-width: 64px;
}
.nav-item.active { color: var(--accent-light); }
.nav-item:hover { color: var(--text-secondary); }
.nav-item svg { width: 22px; height: 22px; }

/* === Article Detail Page === */
.article-content { max-width: 720px; margin: 0 auto; overflow-x: hidden; }
.article-header { margin-bottom: 24px; }
.article-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media(min-width:768px) { .article-header h1 { font-size: 2.25rem; } }
.article-header .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--text-primary); }
.article-body code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.article-body pre {
  background: var(--bg-elevated);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 16px;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-secondary);
  font-style: italic;
}
.article-body table {
  width: 100%;
  overflow-x: auto;
  display: block;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* === FAQ Section === */
.faq-section { margin-top: 32px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-q {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); }
.faq-item.open .faq-q::after { content: '-'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 500px; padding-top: 10px; }

/* === Share Bar === */
.share-bar {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.share-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }

/* === Related Articles === */
.related-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* === Categories Grid === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media(min-width:640px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  padding: 24px 16px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cat-card .cat-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.cat-card .cat-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.cat-card .cat-count { font-size: 0.75rem; color: var(--text-muted); }

/* === Skeleton Loading === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}
.page-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.page-btn:hover { background: var(--bg-card-hover); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* === Footer === */
.site-footer {
  display: none;
  margin-top: 48px;
  padding: 32px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
@media(min-width:1024px) { .site-footer { display: block; } }

/* === Search Page === */
.search-hero {
  text-align: center;
  padding: 40px 16px 24px;
}
.search-hero h1 { font-size: 1.5rem; margin-bottom: 16px; }
.search-hero .search-input-lg {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-hero .search-input-lg:focus { border-color: var(--accent); }

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}
.empty-state .empty-emoji { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; }

/* === Carousel Arrows === */
.carousel-wrap { position: relative; }
.carousel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.carousel-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carousel-arrow.arrow-left { left: 2px; }
.carousel-arrow.arrow-right { right: 2px; }
@media(min-width:640px) {
  .carousel-arrow { display: flex; }
}

/* === Animations === */
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.fade-in { animation: fadeIn 0.3s ease forwards; }

/* === Category visual backgrounds === */
.bg-cat-ai { background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(139,92,246,0.05)); }
.bg-cat-gadgets { background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(245,158,11,0.05)); }
.bg-cat-gaming { background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(34,197,94,0.05)); }
.bg-cat-programming { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(59,130,246,0.05)); }
.bg-cat-security { background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(239,68,68,0.05)); }
.bg-cat-space { background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(99,102,241,0.05)); }
.bg-cat-apps { background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(236,72,153,0.05)); }
.bg-cat-howto { background: linear-gradient(135deg, rgba(13,148,136,0.3), rgba(13,148,136,0.05)); }
.bg-cat-general { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(59,130,246,0.05)); }

/* === View Transitions === */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 200ms ease; }
::view-transition-new(root) { animation: fade-in 200ms ease; }
@keyframes fade-out { from{opacity:1} to{opacity:0} }
@keyframes fade-in { from{opacity:0} to{opacity:1} }
