:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --card-hover: #222633;
  --border: #2a2e3d;
  --text: #e4e6f0;
  --muted: #8b8fa8;
  --accent: #f7931a;
  --green: #26a17b;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--text);
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

.search-section {
  text-align: center;
  margin-bottom: 2rem;
}

.search-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tool-card-link {
  text-decoration: none;
  color: inherit;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
  height: 100%;
}

.tool-card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tool-icon {
  font-size: 1.5rem;
}

.tool-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.tool-desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: rgba(247, 147, 26, 0.15);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 500;
}

.featured-section {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.featured-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.resource-card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
}

.resource-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.resource-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.resource-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}
