/* ==========================================================================
   Upperstack Tools Directory - GCP + shadcn/ui Design System
   ========================================================================== */

:root {
  /* Font Family */
  --font-sans: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Google Sans Mono', 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Light Theme Colors (GCP + shadcn neutral) */
  --background: #f8f9fa;
  --surface: #ffffff;
  --surface-hover: #f1f3f4;
  --foreground: #202124;
  --foreground-secondary: #5f6368;
  --foreground-muted: #80868b;

  --card: #ffffff;
  --card-foreground: #202124;
  --card-border: #dadce0;
  --card-border-hover: #1a73e8;
  --card-shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 1px 2px rgba(60, 64, 67, 0.08);
  --card-shadow-hover: 0 4px 16px rgba(26, 115, 232, 0.12), 0 2px 6px rgba(60, 64, 67, 0.15);

  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --primary-foreground: #ffffff;
  --primary-light: #e8f0fe;

  --badge-bg: #e8f0fe;
  --badge-text: #1967d2;
  --badge-border: #d2e3fc;

  --badge-active-bg: #e6f4ea;
  --badge-active-text: #137333;
  --badge-active-border: #ceead6;

  --badge-beta-bg: #fef7e0;
  --badge-beta-text: #b06000;
  --badge-beta-border: #feefc3;

  --badge-webapp-bg: #e8f0fe;
  --badge-webapp-text: #1967d2;
  --badge-webapp-border: #d2e3fc;

  --badge-github-bg: #f1f3f4;
  --badge-github-text: #3c4043;
  --badge-github-border: #dadce0;

  --badge-demo-bg: #e6f4ea;
  --badge-demo-text: #137333;
  --badge-demo-border: #ceead6;

  --badge-internal-bg: #f3e8fd;
  --badge-internal-text: #8430ce;
  --badge-internal-border: #e9d2fd;

  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: #dadce0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  /* Dark Theme Colors (GCP Console Dark Theme) */
  --background: #18191c;
  --surface: #202124;
  --surface-hover: #292a2d;
  --foreground: #e8eaed;
  --foreground-secondary: #9aa0a6;
  --foreground-muted: #80868b;

  --card: #202124;
  --card-foreground: #e8eaed;
  --card-border: #3c4043;
  --card-border-hover: #8ab4f8;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px #8ab4f8;

  --primary: #8ab4f8;
  --primary-hover: #aecbfa;
  --primary-foreground: #202124;
  --primary-light: rgba(138, 180, 248, 0.12);

  --badge-bg: rgba(138, 180, 248, 0.15);
  --badge-text: #aecbfa;
  --badge-border: rgba(138, 180, 248, 0.3);

  --badge-active-bg: rgba(129, 201, 149, 0.15);
  --badge-active-text: #81c995;
  --badge-active-border: rgba(129, 201, 149, 0.3);

  --badge-beta-bg: rgba(253, 214, 99, 0.15);
  --badge-beta-text: #fdd663;
  --badge-beta-border: rgba(253, 214, 99, 0.3);

  --badge-webapp-bg: rgba(138, 180, 248, 0.15);
  --badge-webapp-text: #aecbfa;
  --badge-webapp-border: rgba(138, 180, 248, 0.3);

  --badge-github-bg: rgba(255, 255, 255, 0.08);
  --badge-github-text: #e8eaed;
  --badge-github-border: rgba(255, 255, 255, 0.15);

  --badge-demo-bg: rgba(129, 201, 149, 0.15);
  --badge-demo-text: #81c995;
  --badge-demo-border: rgba(129, 201, 149, 0.3);

  --badge-internal-bg: rgba(215, 174, 251, 0.15);
  --badge-internal-text: #d7aefb;
  --badge-internal-border: rgba(215, 174, 251, 0.3);

  --header-bg: rgba(32, 33, 36, 0.85);
  --header-border: #3c4043;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
}

.gcp-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--header-border);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
}

.team-pill {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--badge-border);
}

.brand-subtitle {
  font-size: 0.8125rem;
  color: var(--foreground-secondary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-sheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--foreground-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-sheet-btn:hover {
  background: var(--surface-hover);
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.header-sheet-btn svg {
  flex-shrink: 0;
}

.header-sheet-btn .external-icon {
  opacity: 0.6;
}

.header-sheet-btn:hover .external-icon {
  opacity: 1;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--foreground-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--foreground);
  border-color: var(--primary);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

/* Main Layout */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero Section */
.hero-section {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--foreground-secondary);
  max-width: 720px;
  line-height: 1.6;
}

/* Controls Section (Search + Category Filter Chips) */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-bottom: 2rem;
}

/* Search Box */
.search-box-wrapper {
  width: 100%;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.125rem;
  width: 18px;
  height: 18px;
  color: var(--foreground-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.85rem 5.5rem 0.85rem 2.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background-color: var(--card);
  color: var(--foreground);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  outline: none;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--foreground-muted);
  font-size: 0.875rem;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light), var(--card-shadow);
}

.search-clear-btn {
  position: absolute;
  right: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--foreground-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.search-clear-btn:hover {
  color: var(--foreground);
  background-color: var(--surface-hover);
}

.search-clear-btn svg {
  width: 15px;
  height: 15px;
}

.search-shortcut-badge {
  position: absolute;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background-color: var(--surface);
  color: var(--foreground-muted);
  pointer-events: none;
  user-select: none;
}

/* Category Filter Chips */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.filters-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  background-color: var(--surface);
  color: var(--foreground-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.filter-chip:hover {
  background-color: var(--surface-hover);
  color: var(--foreground);
  border-color: var(--foreground-muted);
}

.filter-chip.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.filter-chip .chip-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .filter-chip .chip-count {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Results Metadata Bar */
.results-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--foreground-secondary);
  min-height: 1.5rem;
}

.results-count {
  font-size: 0.8125rem;
  color: var(--foreground-secondary);
}

.results-count strong {
  color: var(--foreground);
}

.reset-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.reset-all-btn:hover {
  background-color: var(--primary-light);
  text-decoration: underline;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

/* Tool Card (shadcn-inspired) */
.tool-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.tool-card-main-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Card Header (Approach 2: Top Meta Bar + Title Row) */
.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.tool-category-badge {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.tool-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.05);
}

.tool-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.tool-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  line-height: 1.35;
  flex: 1;
}

.external-arrow {
  color: var(--foreground-muted);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all 0.2s ease;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tool-card:hover .external-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--primary);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--badge-border);
  background-color: var(--badge-bg);
  color: var(--badge-text);
  white-space: nowrap;
}

.status-badge.active,
.status-badge.badge-web-app {
  background-color: var(--badge-webapp-bg);
  color: var(--badge-webapp-text);
  border-color: var(--badge-webapp-border);
}

.status-badge.badge-github-repo {
  background-color: var(--badge-github-bg);
  color: var(--badge-github-text);
  border-color: var(--badge-github-border);
}

.status-badge.badge-live-demo {
  background-color: var(--badge-demo-bg);
  color: var(--badge-demo-text);
  border-color: var(--badge-demo-border);
}

.status-badge.badge-internal-tool {
  background-color: var(--badge-internal-bg);
  color: var(--badge-internal-text);
  border-color: var(--badge-internal-border);
}

.status-badge.badge-dashboard,
.status-badge.badge-looker-studio,
.status-badge.badge-metrics {
  background-color: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

[data-theme="dark"] .status-badge.badge-dashboard,
[data-theme="dark"] .status-badge.badge-looker-studio,
[data-theme="dark"] .status-badge.badge-metrics {
  background-color: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.3);
}

.status-badge.badge-cli-script,
.status-badge.badge-script,
.status-badge.badge-automation {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

[data-theme="dark"] .status-badge.badge-cli-script,
[data-theme="dark"] .status-badge.badge-script,
[data-theme="dark"] .status-badge.badge-automation {
  background-color: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.3);
}

.status-badge.badge-doc,
.status-badge.badge-guide,
.status-badge.badge-playbook,
.status-badge.badge-documentation {
  background-color: #ccfbf1;
  color: #0f766e;
  border-color: #99f6e4;
}

[data-theme="dark"] .status-badge.badge-doc,
[data-theme="dark"] .status-badge.badge-guide,
[data-theme="dark"] .status-badge.badge-playbook,
[data-theme="dark"] .status-badge.badge-documentation {
  background-color: rgba(45, 212, 191, 0.15);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.3);
}

.status-badge.badge-colab,
.status-badge.badge-notebook,
.status-badge.badge-colab-notebook {
  background-color: #ffedd5;
  color: #c2410c;
  border-color: #fed7aa;
}

[data-theme="dark"] .status-badge.badge-colab,
[data-theme="dark"] .status-badge.badge-notebook,
[data-theme="dark"] .status-badge.badge-colab-notebook {
  background-color: rgba(251, 146, 60, 0.15);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.3);
}

.status-badge.badge-gpaste,
.status-badge.badge-paste,
.status-badge.badge-snippet {
  background-color: #fce7f3;
  color: #be185d;
  border-color: #fbcfe8;
}

[data-theme="dark"] .status-badge.badge-gpaste,
[data-theme="dark"] .status-badge.badge-paste,
[data-theme="dark"] .status-badge.badge-snippet {
  background-color: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}

.status-badge.beta {
  background-color: var(--badge-beta-bg);
  color: var(--badge-beta-text);
  border-color: var(--badge-beta-border);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Card Body */
.tool-description {
  font-size: 0.875rem;
  color: var(--foreground-secondary);
  line-height: 1.55;
  margin-bottom: 0.875rem;
}

/* Companion Resources (Presentations & Demos) */
.resource-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}

.tool-resource-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  background-color: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  cursor: pointer;
}

.tool-resource-banner.presentation-banner:hover {
  background-color: var(--badge-beta-bg);
  border-color: var(--badge-beta-border);
  transform: translateY(-1px);
}

.tool-resource-banner.demo-banner:hover {
  background-color: var(--badge-demo-bg);
  border-color: var(--badge-demo-border);
  transform: translateY(-1px);
}

.resource-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-icon-wrap.presentation-icon-wrap {
  color: var(--badge-beta-text);
}

.resource-icon-wrap.demo-icon-wrap {
  color: var(--badge-demo-text);
}

.resource-content {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.resource-tag {
  font-size: 0.675rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.resource-tag.presentation-tag {
  background-color: var(--badge-beta-bg);
  color: var(--badge-beta-text);
  border: 1px solid var(--badge-beta-border);
}

.resource-tag.demo-tag {
  background-color: var(--badge-demo-bg);
  color: var(--badge-demo-text);
  border: 1px solid var(--badge-demo-border);
}

.resource-link-text {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--foreground-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-resource-banner:hover .resource-link-text {
  color: var(--foreground);
}

.resource-arrow-icon {
  color: var(--foreground-muted);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.tool-resource-banner.presentation-banner:hover .resource-arrow-icon {
  transform: translate(2px, -2px);
  color: var(--badge-beta-text);
}

.tool-resource-banner.demo-banner:hover .resource-arrow-icon {
  transform: translate(2px, -2px);
  color: var(--badge-demo-text);
}

/* Product Tag Pills */
.product-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
}

.product-tag-pill {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground-secondary);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  font-family: inherit;
}

.product-tag-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--header-border);
  margin-top: auto;
}

.tool-url-preview {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--foreground-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.tool-url-preview:hover {
  color: var(--primary);
  text-decoration: underline;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.launch-btn-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.launch-btn-label:hover {
  opacity: 0.8;
}

/* Loading & Empty State */
.state-container {
  text-align: center;
  padding: 4rem 1.5rem;
  grid-column: 1 / -1;
  background-color: var(--card);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
}

.state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--foreground-muted);
}

.state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}

.state-text {
  font-size: 0.875rem;
  color: var(--foreground-secondary);
  margin-bottom: 1.25rem;
}

.state-reset-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.state-reset-btn:hover {
  background-color: var(--primary-hover);
}

/* Footer */
.footer {
  border-top: 1px solid var(--header-border);
  background-color: var(--surface);
  margin-top: auto;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--foreground-secondary);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-link {
  color: var(--foreground-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  .main-content {
    padding: 1.5rem 1rem 3rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-description {
    font-size: 0.9375rem;
  }
  .search-shortcut-badge {
    display: none;
  }
  .search-input {
    padding-right: 3rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
