/* Core Design Tokens & Theme Variables */
:root {
  --theme: #f8fafc;
  --entry: rgba(255, 255, 255, 0.8);
  --primary: #1d1d1f;
  --secondary: #86868b;
  --tertiary: rgba(248, 250, 252, 0.8);
  --content: #1d1d1f;
  --code-block-bg: rgba(248, 250, 252, 0.8);
  --code-bg: rgba(248, 250, 252, 0.6);
  --border: rgba(210, 210, 215, 0.8);
  --accent: #007aff;
  --accent-hover: #0056cc;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page-wide initial fade-in */
.page-fade-in { opacity: 0; animation: pageFadeIn 0.5s ease-out forwards; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

[data-theme="dark"] {
  --theme: #06070d;
  --entry: rgba(18, 22, 38, 0.7);
  --primary: #ffffff;
  --secondary: #98989d;
  --tertiary: rgba(18, 22, 38, 0.7);
  --content: #ffffff;
  --code-block-bg: rgba(18, 22, 38, 0.8);
  --code-bg: rgba(30, 36, 60, 0.8);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --glass-bg: rgba(10, 14, 26, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Global Layout & Typography */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  text-align: left;
  background: transparent !important;
  color: var(--primary);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 20px 50px 20px;
  min-height: 80vh;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.nav-left .logo {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-weight: 800;
  font-size: 1.5em;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
  padding: 8px 16px;
  border-radius: 10px;
  position: relative;
  background: var(--glass-bg);
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.05), inset -2px -2px 4px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.nav-left .logo:hover {
  color: var(--accent);
  transform: translateY(-2px) rotateX(5deg);
  box-shadow: 0 6px 12px rgba(0, 122, 255, 0.2);
}

.nav-left .logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-left .logo:hover::after {
  width: 80%;
}

.nav-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  padding: 0 10px;
}

.pill-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  padding: 8px 24px;
  border-radius: 25px;
  display: flex;
  gap: 28px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  justify-content: flex-start;
  margin: 0 auto;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: max-content;
  flex-shrink: 0;
  max-width: 480px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1;
}

.pill-nav::-webkit-scrollbar {
  display: none;
}

.pill-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.pill-nav:hover {
  box-shadow: var(--shadow-medium);
  transform: none;
}

.pill-nav:hover::before {
  opacity: 0.05;
}

.pill-nav a {
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  color: var(--secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 10px 20px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Active state mirrors Search/Archives */
.pill-nav a.active {
  font-weight: 700;
  font-size: 1.05em;
  color: white;
  background: var(--accent);
}

.pill-nav a.active:hover {
  background: var(--accent-hover);
}

.pill-nav a:hover:not(.active) {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
}

#theme-toggle {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  z-index: 1;
}

#theme-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

#theme-toggle:hover {
  transform: none;
  box-shadow: var(--shadow-light);
}

#theme-toggle:hover::before {
  opacity: 0.1;
}

#theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#moon {
  display: none;
}

[data-theme="dark"] #sun {
  display: none;
}

[data-theme="dark"] #moon {
  display: block;
}

/* Main Content Area */
.post-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 20px 40px 20px;
}

.breadcrumb {
  font-size: 0.85em;
  color: var(--secondary);
  margin: 0 0 24px 0;
  padding-left: 0;
  font-weight: 400;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 8px;
  border-radius: 6px;
  margin: 0 2px;
}

.breadcrumb a:hover {
  color: var(--accent);
  background: rgba(0, 122, 255, 0.08);
}

.breadcrumb a[aria-current="page"] {
  font-weight: 500;
  color: var(--primary);
  background: rgba(0, 122, 255, 0.1);
}

/* Header Bar */
.header-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 28px 0;
}

.header-bar h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 8px;
  margin: 0 0 24px 0;
  font-weight: 400;
  text-align: left;
}

/* Hybrid Bento Explorer Top Controls & Split Pane */
.top-controls-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.search-box-hybrid {
  position: relative;
  width: 100%;
}

.search-box-hybrid i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 0.95em;
}

.search-box-hybrid input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}

.search-box-hybrid input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15);
}

.quick-links-hybrid {
  display: flex;
  gap: 12px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--primary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.quick-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.2);
}

/* Hybrid Split-Pane Layout */
.hybrid-split-pane {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 50px;
}

.hybrid-sidebar {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 410px;
  box-sizing: border-box;
}

.sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  padding: 4px 12px 6px 12px;
}

.hybrid-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  background: transparent !important;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.hybrid-cat-item:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.hybrid-cat-item.active {
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.15);
}

.hybrid-cat-item .cat-count {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
}

.hybrid-cat-item.active .cat-count {
  background: var(--accent);
  color: #ffffff;
}

/* Right Bento Tiles Grid & Column */
.hybrid-right-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 410px;
}

.hybrid-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  align-content: start;
  min-height: 330px;
}

.bento-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.bento-tile::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.bento-tile:hover::before {
  opacity: 1;
}

.bento-tile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.bento-tile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.bento-tile:hover .bento-tile-name {
  color: var(--accent);
}

.bento-tile-progress {
  flex: 1;
  margin: 0 14px;
  display: flex;
  align-items: center;
  min-width: 50px;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="light"] .progress-track {
  background: rgba(0, 0, 0, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.bento-tile-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bento-count-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
  min-width: 18px;
  text-align: right;
}

.bento-arrow {
  font-size: 0.82rem;
  color: var(--secondary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.bento-tile:hover .bento-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Bento Pagination Controls */
.bento-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  margin-top: 6px;
}

.bento-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bento-page-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.25);
}

.bento-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bento-page-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

[data-theme="light"] .page-dot {
  background: rgba(0, 0, 0, 0.2);
}

.page-dot:hover {
  background: rgba(10, 132, 255, 0.5);
}

.page-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.6);
}

.page-num-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-num-btn:hover, .page-num-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.25);
}

/* Tags Content */
.tags-container {
  min-height: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--glass-border);
  max-width: 900px;
  margin: 0 auto;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.quick-link-card {
  position: relative;
  padding: 20px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  cursor: pointer;
  color: var(--primary) !important;
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.quick-link-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--accent);
}

.quick-link-card > i:first-child,
.quick-link-card > .fa-blog,
.quick-link-card > .fa-code {
  font-size: 1.5em;
  color: var(--primary) !important;
  transition: all 0.3s ease;
}

.quick-link-card:hover > i:first-child,
.quick-link-card:hover > .fa-blog,
.quick-link-card:hover > .fa-code {
  color: var(--accent) !important;
  transform: scale(1.1) rotate(5deg);
}

.quick-link-card span,
.quick-link-card > span {
  flex: 1;
  font-size: 1em;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--primary) !important;
  transition: color 0.3s ease;
}

.quick-link-card:hover span,
.quick-link-card:hover > span {
  color: var(--accent) !important;
}

.quick-link-card .arrow,
.quick-link-card > .fa-arrow-right {
  font-size: 1em;
  color: var(--secondary) !important;
  transition: all 0.3s ease;
}

.quick-link-card:hover .arrow,
.quick-link-card:hover > .fa-arrow-right {
  color: var(--accent) !important;
  transform: translateX(5px);
}

/* Tags Grid */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 50px;
}

/* Tag Card */
.tag {
  position: relative;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover::before {
  transform: scaleX(1);
}

.tag:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--accent);
}

.tag-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.3s ease;
}

.tag:hover .tag-name {
  color: var(--accent);
}

.tag-count {
  font-size: 0.85em;
  color: var(--secondary);
  font-weight: 500;
}

.tag-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 2em;
  color: var(--border);
  transition: all 0.3s ease;
  opacity: 0.3;
}

.tag:hover .tag-icon {
  color: var(--accent);
  opacity: 0.6;
  transform: scale(1.1);
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
}

.no-results i {
  font-size: 3em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.no-results h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
}

.no-results p {
  font-size: 1.1em;
  color: var(--text-muted);
  margin: 0;
}

/* Skeleton Loading States */

/* Skeleton Loading States */

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.quick-link-card {
  position: relative;
  padding: 28px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.quick-link-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--accent);
}

.quick-link-card > i:first-child {
  font-size: 2em;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.quick-link-card:hover > i:first-child {
  transform: scale(1.15) rotate(5deg);
}

.quick-link-card span {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text);
}

.quick-link-card .arrow {
  font-size: 1.2em;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.quick-link-card:hover .arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* Skeleton Loading States */
.skeleton-resource-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  text-align: center;
  opacity: 0.8;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-light);
  min-height: 32px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.6;
  }
}

/* Footer */
.skeleton-resource-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  text-align: center;
  opacity: 0.8;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-light);
  min-height: 32px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.6;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 80px;
  position: relative;
  color: var(--secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer:hover::before {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  /* Reduced gap for closer icons */
  margin-bottom: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.social-icons a:hover::before {
  opacity: 0.1;
}

.social-icons a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.social-icons a i {
  font-size: 1.2em;
}

.footer p {
  font-size: 0.9em;
  margin: 0;
  opacity: 0.8;
}

/* Scroll to Top Button */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--primary);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1em;
}

#scrollTop:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

/* Loader Styles */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Popular Tags Section (Hidden on Desktop) */
.popular-tags-section {
  display: none;
}

/* Alphabet Navigation (Hidden on Desktop) */
.alphabet-nav {
  display: none;
}

/* Tag Sections (for alphabetical grouping) */
.tag-section {
  margin-bottom: 24px;
}

.section-header {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: none; /* Hidden on desktop by default */
}

.section-tags {
  display: contents; /* Makes it transparent in grid layout */
}

.loader.active {
  opacity: 1;
  visibility: visible;
}

.loader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  z-index: -999999 !important;
}

.terry-animation {
  display: flex;
  gap: 4px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 2em;
  color: var(--primary);
}

.letter {
  animation: spinLetter 1s ease-in-out infinite;
  transform-origin: center;
}

.letter:nth-child(1) {
  animation-delay: 0s;
}

.letter:nth-child(2) {
  animation-delay: 0.1s;
}

.letter:nth-child(3) {
  animation-delay: 0.2s;
}

.letter:nth-child(4) {
  animation-delay: 0.3s;
}

.letter:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes spinLetter {

  0%,
  100% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(180deg);
  }
}

@keyframes shrinkLogo {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 1024px) {
  .tags-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .post-container {
    padding: 95px 20px 40px 20px;
  }
  
  /* Ensure tag sections display properly on tablets */
  .tag-section {
    display: block;
  }
  
  .section-tags {
    display: contents;
  }
}

/* ========== Mobile Styles (max-width: 850px) ========== */
@media (max-width: 850px) {
  /* Transparent Header - No full-width background bar ever, even on scroll */
  .header,
  .header.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  .nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Exact Floating Glass Logo Pill from stylesheet.css */
  .nav-left .logo {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace !important;
    font-weight: 800 !important;
    font-size: 1.5em !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    letter-spacing: -1px !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    position: relative !important;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .nav-right-items {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Exact Action Pill Buttons from stylesheet.css */
  .nav-right-items #theme-toggle,
  .nav-right-items #bento-menu-btn,
  .nav-right-items .bento-menu-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), var(--shadow-light) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary) !important;
  }

  /* Exact Match from projects.css */
  .post-container, .container {
    padding: 100px 16px 32px 16px !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Hide Alphabet Nav Strip on Mobile per User Request */
  .alphabet-nav {
    display: none !important;
  }

  /* Breadcrumb - Match projects.css Exactly */
  .breadcrumb {
    font-size: 0.92em !important;
    margin: 4px 0 24px 0 !important;
    text-align: left !important;
  }

  /* Header Bar - Match projects.css Exactly */
  .header-bar {
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
    margin: 0 0 20px 0 !important;
  }

  .header-bar h1 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .subtitle {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    color: var(--secondary) !important;
    letter-spacing: 8px !important;
    margin-bottom: 24px !important;
    text-align: left !important;
    line-height: 1.4 !important;
  }

  /* Search Box - Absolute Magnifying Glass Positioned Inside Input */
  .search-box {
    position: relative !important;
    max-width: 100%;
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
  }

  .search-box i {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--secondary) !important;
    font-size: 0.95em !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }

  .search-box input {
    width: 100% !important;
    padding: 14px 16px 14px 44px !important;
    font-size: 0.92em !important;
    border-radius: 14px !important;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--primary) !important;
    box-sizing: border-box !important;
  }

  /* Mobile Category Filter Track */
  .mob-cat-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mob-cat-track::-webkit-scrollbar {
    display: none;
  }

  .mob-cat-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mob-cat-pill.active {
    background: var(--accent, #0a84ff);
    color: #ffffff;
    border-color: var(--accent, #0a84ff);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
  }

  /* Full-Width Stacked Glass Tag Cards (Match Screenshot 2) */
  .tags-grid, #mobileTagsContainer {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tags-grid .tag, #mobileTagsContainer .tag {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
  }

  .tags-grid .tag:active, #mobileTagsContainer .tag:active {
    transform: scale(0.98) !important;
    background: rgba(10, 132, 255, 0.12) !important;
    border-color: rgba(10, 132, 255, 0.4) !important;
  }

  .tags-grid .tag-name, #mobileTagsContainer .tag-name {
    font-weight: 700 !important;
    font-size: 0.9em !important;
    color: #ffffff !important;
  }

  .tags-grid .tag-count, #mobileTagsContainer .tag-count {
    background: rgba(10, 132, 255, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(10, 132, 255, 0.3) !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    font-size: 0.75em !important;
    font-weight: 600 !important;
  }

  /* Quick Links - Stack vertically with better styling */
  .quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .quick-link-card {
    padding: 14px 18px;
    border-radius: 12px;
  }

  .quick-link-card > i:first-child {
    font-size: 1.2em;
  }

  .quick-link-card span {
    font-size: 0.95em;
  }

  .quick-link-card .arrow {
    font-size: 0.85em;
  }

  .quick-link-card:hover {
    transform: none;
  }

  .quick-link-card:hover::before {
    transform: scaleY(0);
  }

  /* ===== POPULAR TAGS SECTION (Mobile Only) ===== */
  .popular-tags-section {
    display: block;
    margin-bottom: 24px;
    background: var(--glass-bg);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .popular-tags-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .popular-tags-title i {
    color: #ff6b35;
    font-size: 1.1em;
  }

  .popular-tags-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .popular-tag-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(10, 132, 255, 0.12);
    border: 1px solid rgba(10, 132, 255, 0.3);
    color: #38bdf8;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .popular-tag-pill:active {
    transform: scale(0.96);
    background: var(--accent);
    color: #ffffff;
  }

  .popular-tag-pill i {
    font-size: 0.9em;
    opacity: 0.9;
  }

  .popular-tag-pill .pill-count {
    background: var(--accent, #0a84ff);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78em;
    font-weight: 700;
  }

  /* ===== ALPHABET NAVIGATION - HORIZONTAL SCROLLABLE STRIP (Mobile Only) ===== */
  .alphabet-nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .alphabet-nav::-webkit-scrollbar {
    display: none;
  }

  .alphabet-btn {
    min-width: 40px;
    height: 40px;
    border: none;
    background: var(--entry);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
  }

  .alphabet-btn:active {
    transform: scale(0.92);
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  .alphabet-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.4);
    transform: scale(1.05);
  }

  /* ===== TAG SECTIONS (Mobile Only) ===== */
  .tag-section {
    margin-bottom: 24px;
  }

  .section-header {
    display: block;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 12px 0;
    padding: 8px 0 8px 12px;
    background: linear-gradient(90deg, var(--glass-bg) 0%, transparent 100%);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
  }

  .section-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Tags Grid - LIST VIEW for mobile (not grid) */
  .tags-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
  }

  /* Tag Cards - Full width list items */
  .tag {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 12px;
    gap: 12px;
    margin-bottom: 0;
  }

  .tag::before {
    display: none;
  }

  .tag:hover {
    transform: none;
    box-shadow: var(--shadow-light);
  }

  .tag-name {
    font-size: 1em;
    font-weight: 600;
    flex: 1;
    text-align: left;
  }

  .tag-count {
    font-size: 0.85em;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
  }

  .tag-icon {
    position: static;
    font-size: 1.2em;
    opacity: 0.5;
    margin-right: 8px;
    order: -1;
  }

  .tag:hover .tag-icon {
    opacity: 1;
  }

  /* No Results */
  .no-results {
    padding: 40px 20px;
    border-radius: 12px;
  }

  .no-results i {
    font-size: 2.5em;
  }

  .no-results h3 {
    font-size: 1.2em;
  }

  .no-results p {
    font-size: 0.95em;
  }

  .nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 24px !important;
    max-width: 100% !important;
  }

  .nav-left {
    flex: 1;
    text-align: left;
  }

  .nav-center {
    display: none;
    /* Hide pill navigation in mobile */
  }

  .pill-nav {
    display: none;
    /* Hide pill navigation in mobile */
  }

  .pill-nav a {
    width: auto;
    min-width: 90px;
    font-size: 0.9em;
    text-align: center;
  }

  .pill-nav a.active {
    min-width: 90px;
  }

  .pill-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-right {
    order: 2;
    margin-left: auto;
  }

  .terry-animation {
    font-size: 2.2rem;
    top: 0;
    position: relative;
    text-align: left;
  }

  .pill-nav {
    scroll-snap-type: x mandatory;
  }

  .pill-nav a {
    scroll-snap-align: start;
  }

  .post-container,
  .tags-container,
  .search-sort-container,
  .tags-grid {
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .tags-container {
    min-height: auto;
  }
}

/* ========== Small Mobile Styles (max-width: 480px) ========== */
@media (max-width: 480px) {
  .post-container {
    padding: 20px 12px 100px 12px;
  }

  /* Header - Match Search Page */
  .breadcrumb {
    font-size: 0.92em;
    margin: 4px 0 24px 0;
    text-align: left;
  }

  .header-bar h1 {
    font-size: 2rem;
    margin: 0 0 12px 0;
  }

  .subtitle {
    font-size: 0.9em;
    margin: 0 0 0 0;
  }

  /* Search Box - Match Search Page - FIX OVERFLOW */
  .search-box {
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .search-box input {
    padding: 14px 16px 14px 44px;
    font-size: 0.9em;
    width: 100%;
    box-sizing: border-box;
  }

  .search-box i {
    left: 14px;
    font-size: 0.9em;
  }

  /* Quick Links - More compact */
  .quick-links {
    gap: 8px;
    margin-bottom: 20px;
  }

  .quick-link-card {
    padding: 12px 16px;
  }

  .quick-link-card > i:first-child {
    font-size: 1.1em;
  }

  .quick-link-card span {
    font-size: 0.9em;
  }

  .quick-link-card .arrow {
    font-size: 0.8em;
  }

  /* Popular Tags - More compact */
  .popular-tags-section {
    padding: 14px;
    margin-bottom: 20px;
  }

  .popular-tags-title {
    font-size: 0.95em;
    margin-bottom: 10px;
  }

  .popular-tags-pills {
    gap: 6px;
  }

  .popular-tag-pill {
    padding: 6px 12px;
    font-size: 0.8em;
  }

  .popular-tag-pill .pill-count {
    padding: 2px 6px;
    font-size: 0.8em;
  }

  /* Alphabet Nav - More compact for small screens */
  .alphabet-nav {
    padding: 10px 12px;
    gap: 6px;
    margin-bottom: 20px;
  }

  .alphabet-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.9em;
  }

  /* Section Headers - Smaller */
  .section-header {
    font-size: 1.2em;
    padding: 6px 0 6px 10px;
    margin-bottom: 10px;
  }

  /* Tags List - Tighter spacing */
  .tags-grid {
    gap: 8px;
  }

  .section-tags {
    gap: 8px;
  }

  .tag {
    padding: 14px 16px;
    margin-bottom: 0;
  }

  .tag {
    padding: 14px 16px;
  }

  .tag-name {
    font-size: 0.95em;
  }

  .tag-count {
    font-size: 0.8em;
    padding: 3px 10px;
  }

  .tag-icon {
    font-size: 1.1em;
    margin-right: 6px;
  }

  /* No Results */
  .no-results {
    padding: 30px 16px;
  }

  .no-results i {
    font-size: 2em;
    margin-bottom: 12px;
  }

  .no-results h3 {
    font-size: 1.1em;
  }

  .no-results p {
    font-size: 0.9em;
  }

  /* Match toggle button sizing with Search/Resources */
  #theme-toggle {
    width: 44px;
    height: 44px;
  }

  #theme-toggle svg {
    width: 20px;
    height: 20px;
  }

  /* Keep scroll-to-top above bottom nav */
  #scrollTop {
    bottom: 100px;
    right: 16px;
  }

  .pill-nav a {
    min-width: 80px;
    font-size: 0.85em;
  }

  .pill-nav a.active {
    min-width: 80px;
  }
}

/* ---------- Override for Quick Link Card Colors ---------- */
a.quick-link-card,
a.quick-link-card:link,
a.quick-link-card:visited {
  color: var(--text) !important;
}

a.quick-link-card:hover,
a.quick-link-card:active {
  color: var(--text) !important;
}

a.quick-link-card i,
a.quick-link-card span,
a.quick-link-card .fa-blog,
a.quick-link-card .fa-code,
a.quick-link-card .fa-arrow-right {
  color: var(--text) !important;
}

a.quick-link-card:hover i,
a.quick-link-card:hover span,
a.quick-link-card:hover .fa-blog,
a.quick-link-card:hover .fa-code,
a.quick-link-card:hover .fa-arrow-right {
  color: var(--accent) !important;
}

/* ---------- Bottom Navigation (Desktop - Hidden) ---------- */
.bottom-nav {
  display: none;
}

/* ---------- Bottom Navigation (Mobile Only) ---------- */
@media (max-width: 768px) {
  body {
    padding-bottom: 100px;
  }

  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 8px 0;
    z-index: 999;
    box-shadow: var(--shadow-light);
  }

  .bottom-nav a {
    color: var(--primary);
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    padding: 6px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
  }

  .bottom-nav a.active {
    color: var(--accent);
    font-weight: bold;
  }

  .bottom-nav a:hover {
    color: var(--accent-hover);
  }

  .bottom-nav i {
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
  }
}

/* ---------- Dual View Toggle: Desktop Hybrid vs Mobile Original ---------- */
.desktop-hybrid-view {
  display: block;
}
.mobile-original-view {
  display: none;
}

@media (max-width: 768px) {
  .desktop-hybrid-view {
    display: none !important;
  }
  .mobile-original-view {
    display: block !important;
  }
}

/* Hybrid Bento Mobile Responsive Controls */
@media (max-width: 900px) {
  .top-controls-grid {
    grid-template-columns: 1fr;
  }
  .quick-links-hybrid {
    width: 100%;
  }
  .quick-btn {
    flex: 1;
    justify-content: center;
  }
  .hybrid-split-pane {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hybrid-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
    border-radius: 14px;
  }
  .sidebar-title { display: none; }
  .hybrid-cat-item {
    white-space: nowrap;
    width: auto;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .hybrid-tiles-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .bottom-nav span {
    display: none;
  }

  .bottom-nav i {
    font-size: 28px;
  }

  .bottom-nav a {
    font-size: 0;
    padding: 10px 0;
  }
}

/* Standardized Footer Styles (Matched to Each Projects Page) */
.footer {
  text-align: center;
  padding: 40px 20px 80px 20px;
  margin-top: 80px;
  position: relative;
  color: var(--secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer:hover::before {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

.footer p {
  margin: 12px 0 0 0;
  font-size: 0.9em;
  color: var(--secondary);
}

.social-icons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.social-icons a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  color: var(--primary) !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--shadow-light) !important;
  font-size: 1.15em !important;
  margin: 0 !important;
}

.social-icons a i {
  color: var(--primary) !important;
  transition: color 0.2s ease !important;
}

.social-icons a:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: var(--shadow-medium) !important;
}

.social-icons a:hover i {
  color: #ffffff !important;
}

/* ---------- Mobile Pagination Responsive Fixes ---------- */
@media (max-width: 768px) {
  .bento-pagination {
    padding: 8px 10px;
    gap: 6px;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .bento-pagination::-webkit-scrollbar,
  .bento-page-indicators::-webkit-scrollbar,
  #mobPageIndicators::-webkit-scrollbar,
  #pageIndicators::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .bento-page-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    gap: 4px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .bento-page-indicators,
  #mobPageIndicators,
  #pageIndicators {
    display: flex;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .page-num-btn {
    min-width: 30px;
    height: 32px;
    padding: 4px 6px;
    font-size: 0.78rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
}

