/* main.css - Modern Design System for logical-types.adbyte.cn */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-card: #182238;
  --bg-card-hover: #1f2d4a;
  --bg-card-active: #26385d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  
  --cat-mind: #d97706;
  --cat-mind-bg: rgba(217, 119, 6, 0.15);
  --cat-emotion: #ef4444;
  --cat-emotion-bg: rgba(239, 68, 68, 0.15);
  --cat-deduction: #a855f7;
  --cat-deduction-bg: rgba(168, 85, 247, 0.15);
  --cat-content: #10b981;
  --cat-content-bg: rgba(16, 185, 129, 0.15);
  --cat-causality: #ec4899;
  --cat-causality-bg: rgba(236, 72, 153, 0.15);
  --cat-attack: #0ea5e9;
  --cat-attack-bg: rgba(14, 165, 233, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-active: #e2e8f0;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.16);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-blue: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.1);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header & Hero */
.site-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  color: #ffffff;
}

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: 36px 0 20px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--accent-glow);
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

/* Controls Toolbar */
.toolbar-section {
  padding: 16px 0 24px;
}

.search-box-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto 20px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

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

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
}

.search-clear.visible {
  display: block;
}

.search-shortcut {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  pointer-events: none;
}

/* Category Filters */
.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.cat-pill {
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.cat-pill.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.cat-pill .count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
}

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

.cat-pill.active .count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Category Dots */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-all { background: #6366f1; }
.dot-mind { background: var(--cat-mind); }
.dot-emotion { background: var(--cat-emotion); }
.dot-deduction { background: var(--cat-deduction); }
.dot-content { background: var(--cat-content); }
.dot-causality { background: var(--cat-causality); }
.dot-attack { background: var(--cat-attack); }

/* Status Bar & View Switcher */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.view-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.view-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Card Grid View */
.fallacies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* ==========================================================================
   1. 文本排版 + SVG 矢量卡片 (Vector Typographic Sticker Card)
   ========================================================================== */
.vector-card-surface {
  background-color: var(--item-color);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  min-height: 440px;
}

.vector-card-surface:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.6), 0 0 28px var(--item-color);
}

.vector-card-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vector-card-seq {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.vector-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.vector-card-title {
  font-size: 25px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.vector-card-en {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

.vector-card-icon-wrap {
  width: 124px;
  height: 124px;
  margin: 16px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vector-card-icon-wrap img,
.vector-card-icon-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vector-card-surface:hover .vector-card-icon-wrap img,
.vector-card-surface:hover .vector-card-icon-wrap svg {
  transform: scale(1.1);
}

.vector-card-body {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-end;
}

.vector-card-def {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 10px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.vector-card-example {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", serif;
}

.vector-card-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.vector-btn-detail {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.vector-btn-detail:hover {
  background: rgba(255, 255, 255, 0.35);
}

.vector-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.vector-icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ==========================================================================
   2. 原版贴纸图片卡片 (Original PNG Sticker Card View)
   ========================================================================== */
.fallacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.fallacy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--item-color, var(--accent-blue));
  opacity: 0.85;
}

.fallacy-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 0, 0, 0.2);
  background: var(--bg-card-hover);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-cat-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cat-bg, rgba(255, 255, 255, 0.08));
  color: var(--cat-text, var(--text-secondary));
  letter-spacing: 0.02em;
}

.card-seq-id {
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-muted);
}

.card-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.fallacy-card:hover .card-image-box img {
  transform: scale(1.03);
}

.card-title-group {
  margin-bottom: 10px;
}

.card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
}

.card-en-name {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-definition {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-example-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--item-color, var(--accent-blue));
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  font-size: 12px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.card-btn-detail {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.card-btn-detail:hover {
  text-decoration: underline;
}

.card-quick-actions {
  display: flex;
  gap: 6px;
}

.action-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

/* ==========================================================================
   3. 速查表格 (Cheatsheet Table View)
   ========================================================================== */
.table-view-wrapper {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
  box-shadow: var(--shadow-md);
}

.table-view-wrapper.active {
  display: block;
}

.cheatsheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.cheatsheet-table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.cheatsheet-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
}

.cheatsheet-table tr:hover td {
  background: var(--bg-card-hover);
}

.table-col-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  padding: 4px;
}

/* ==========================================================================
   4. 详情抽屉 / 模态框 (Detail Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-xl);
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.modal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
}

.modal-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Modal Vector Card Preview */
.modal-vector-card {
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-preview-toggle-bar {
  display: flex;
  gap: 6px;
  background: var(--bg-secondary);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.modal-preview-toggle-btn {
  flex: 1;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.modal-preview-toggle-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.modal-sticker-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: none;
}

.modal-sticker-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-title-area {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.modal-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.quote-example {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-blue);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-primary);
}

.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.related-tag-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.related-tag-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color-hover);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

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

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 30px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: none;
}

.empty-state.visible {
  display: block;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 860px) {
  .modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .modal-sticker-wrap, .modal-vector-card {
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 26px;
  }
  .fallacies-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .search-shortcut {
    display: none;
  }
}
