/* Lenny Face Pro - Master Design System
   Engineered for 100/100 PageSpeed, Dark/Light Mode & Glassmorphism */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #10b981;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --violet: #8b5cf6;
  --pink: #ec4899;
  --cyan: #0284c7;
  --amber: #d97706;
  --emerald: #10b981;
  
  --brand-gradient: linear-gradient(135deg, #10b981 0%, #059669 45%, #0284c7 100%);
  --brand-glow: rgba(16, 185, 129, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-mono: 'Space Mono', monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 28px -4px rgba(16, 185, 129, 0.22), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--emerald);
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  box-shadow: 0 1px 4px 0 rgba(15, 23, 42, 0.04);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-glyph {
  font-family: var(--font-mono);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.brand-logo span.highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s, border-color 0.2s;
}

.theme-toggle-btn:hover {
  transform: rotate(25deg);
  border-color: var(--violet);
}

.lang-select {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 450px;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(9, 13, 22, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar */
.search-wrapper {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem 3.5rem 1rem 3rem;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}

.search-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.1rem;
}

.search-clear-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
}

/* Category Hubs Filter Bar */
.hubbar {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hub-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.hub-chip:hover, .hub-chip.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.4);
}

/* Sub-category Filter Bar */
.subbar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
}

.sub-chip {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.sub-chip:hover, .sub-chip.active {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text-main);
  border-color: var(--violet);
}

/* Face Grid & Cards */
.face-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.face-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.face-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-hover);
}

.face-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}

.face-glyph-box {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.face-glyph {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  text-align: center;
  word-break: break-all;
  user-select: all;
  transition: transform 0.2s ease;
}

.face-card:hover .face-glyph {
  transform: scale(1.06);
}

.face-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.face-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: capitalize;
}

.face-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.face-action-btn, .face-share-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  padding: 0;
}

.face-action-btn:hover {
  background: rgba(236, 72, 153, 0.15);
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.4);
  transform: translateY(-1px);
}

.face-action-btn.is-fav {
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(236, 72, 153, 0.15);
}

.face-action-btn.is-fav svg {
  fill: var(--pink);
}

.face-share-btn {
  color: #10b981;
}

.face-share-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.face-copy-btn {
  background: #10b981;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  height: 36px;
  padding: 0 0.95rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  letter-spacing: 0.02em;
}

.face-copy-btn svg {
  flex-shrink: 0;
}

.face-copy-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: #ffffff;
  border-color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.face-copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.face-copy-btn.copied {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

/* Individual Face Share Modal */
.share-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.share-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.share-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal-backdrop.active .share-modal-card {
  transform: translateY(0) scale(1);
}

.share-modal-glyph {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--cyan);
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin: 1rem 0 1.25rem;
  word-break: break-all;
}

.share-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.share-modal-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.share-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.share-modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.share-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.face-copy-btn.copied {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

/* Green CTA for Generator */
.btn-green-copy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-green-copy:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.55);
}

/* Social Share Bar Component */
.share-bar-container {
  margin: 1.5rem auto 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 850px;
}

.share-bar-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.share-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.share-btn svg {
  flex-shrink: 0;
}

/* WhatsApp */
.share-btn-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
}
.share-btn-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

/* X / Twitter */
.share-btn-twitter {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.18);
}
.share-btn-twitter:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.35);
  transform: translateY(-2px);
}

/* Telegram */
.share-btn-telegram {
  background: rgba(0, 136, 204, 0.15);
  color: #29b6f6;
  border-color: rgba(0, 136, 204, 0.3);
}
.share-btn-telegram:hover {
  background: #0088cc;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  transform: translateY(-2px);
}

/* Reddit */
.share-btn-reddit {
  background: rgba(255, 69, 0, 0.15);
  color: #ff5722;
  border-color: rgba(255, 69, 0, 0.3);
}
.share-btn-reddit:hover {
  background: #ff4500;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
  transform: translateY(-2px);
}

/* Copy Page Link */
.share-btn-copylink {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.3);
}
.share-btn-copylink:hover {
  background: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* Floating Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--violet);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  animation: toastIn 0.25s ease-out forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Editorial & SEO Section */
.content-section {
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .content-grid {
    grid-template-columns: 2.3fr 1fr;
  }
}

.editorial-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.editorial-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--text-main);
}

.editorial-card h2:first-child { margin-top: 0; }

.editorial-card h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  margin: 1.75rem 0 0.85rem;
  color: var(--cyan);
}

.editorial-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-main);
}

.editorial-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.editorial-card ul, .editorial-card ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.editorial-card li { margin-bottom: 0.6rem; }

.code-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--cyan);
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.sidebar-widget h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.widget-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.widget-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.925rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.widget-links a:hover {
  background: rgba(139, 92, 246, 0.12);
  color: var(--text-main);
}

/* FAQ Section */
.faq-section {
  padding: 3rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(139, 92, 246, 0.4);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--cyan);
  flex-shrink: 0;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.5rem 1.5rem;
}

/* Footer - Clean Light Mode Background */
.footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 4rem 0 2rem;
  margin-top: auto;
  color: var(--text-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: #475569;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--emerald);
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #64748b;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--emerald);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .toast-container { right: 1rem; bottom: 1rem; left: 1rem; }
}

/* Breadcrumb Navigation */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--violet);
}

.breadcrumbs span.sep {
  opacity: 0.4;
}

.breadcrumbs span.current {
  color: var(--text-main);
  font-weight: 700;
}

/* Category Grid & Related Hub Navigation */
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.cat-card .cat-sample {
  font-size: 1.6rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.cat-card .cat-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.cat-card .cat-count {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Quick Copy Table Styles */
.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.shortcut-table th, .shortcut-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.shortcut-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 700;
}

.shortcut-table tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

