:root {
  --bg-main: #0B0F19;
  --bg-card: rgba(17, 24, 39, 0.7);
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --accent: #58a6ff;
  --border: rgba(255, 255, 255, 0.08);
  --glow-1: rgba(139, 92, 246, 0.2);
  --glow-2: rgba(59, 130, 246, 0.2);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.bg-effects {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, var(--glow-1), transparent 40%),
    radial-gradient(circle at 90% 80%, var(--glow-2), transparent 40%);
  filter: blur(80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.title { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; font-family: 'Outfit', sans-serif; }
.gradient-text { background: linear-gradient(135deg, #58a6ff, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--text-secondary); margin-bottom: 2rem; }

/* Requirement B: Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.1);
}

/* Requirement A: Categories */
.tool-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

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

.tool-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(10px);
}

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

.card-icon { font-size: 2.5rem; }

.card-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; }
.card-date { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); margin-top: -4px; margin-bottom: 8px; font-family: 'Inter', sans-serif; }

.card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.tag-vba { color: #58a6ff; border-color: rgba(88, 166, 255, 0.3); }
.tag-ps { color: #8b5cf6; border-color: rgba(139, 92, 246, 0.3); }

.page-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}
