:root {
  --bg-dark: #0f1117;
  --bg-surface: #181b24;
  --bg-surface-elevated: #202431;
  --border-subtle: #292e3f;
  --border-focus: #e7623e;
  --terracotta: #e7623e;
  --terracotta-hover: #ff7551;
  --amber: #f59e0b;
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.15);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-radius: 14px;
  --border-radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, var(--terracotta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 50% 20%, #1f2331 0%, var(--bg-dark) 75%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero p.tagline {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.hero p.description {
  font-size: 1rem;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Search Box */
.search-wrapper {
  max-width: 720px;
  margin: 0 auto 2rem;
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: 50px;
  box-shadow: var(--shadow);
  outline: none;
  transition: all 0.25s ease;
}

#searchInput:focus {
  border-color: var(--terracotta);
  background-color: var(--bg-surface-elevated);
  box-shadow: 0 0 0 4px rgba(231, 98, 62, 0.2), var(--shadow);
  transform: translateY(-2px);
}

#searchInput::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Popular Chips */
.popular-lookups {
  text-align: center;
}

.popular-lookups p {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.chip {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1.15rem;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.chip:hover {
  background: var(--terracotta);
  color: #ffffff;
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 98, 62, 0.35);
}

/* Results Area */
.results-section {
  padding: 3.5rem 0;
  min-height: 450px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
}

/* Plugin Card */
.plugin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  padding: 1.85rem;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.plugin-card:hover {
  transform: translateY(-5px);
  border-color: rgba(231, 98, 62, 0.5);
  box-shadow: var(--shadow-hover);
}

.card-header {
  margin-bottom: 1.25rem;
}

.category-badge {
  display: inline-block;
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.85rem;
}

.paid-plugin {
  font-size: 1.35rem;
  font-weight: 800;
  color: #d1d5db;
  margin-bottom: 0.2rem;
}

.match-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0.75rem 0;
  color: var(--terracotta);
}

.match-icon::before,
.match-icon::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-subtle);
}

.free-plugin {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.developer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.why-text {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 1rem 0 1.75rem;
}

.download-btn {
  display: block;
  text-align: center;
  background: var(--terracotta);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(231, 98, 62, 0.3);
}

.download-btn:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(231, 98, 62, 0.45);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--border-radius);
  grid-column: 1 / -1;
}

.empty-state h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-muted);
  margin: 0;
}

/* Static Directory Table for SEO & GEO */
.static-directory {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-dark);
}

.static-directory h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow);
}

.plugin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.plugin-table th,
.plugin-table td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plugin-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.plugin-table tbody tr:last-child td {
  border-bottom: none;
}

.plugin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.highlight-free {
  color: var(--teal);
  font-weight: 700;
}

/* Explanation Section */
.explanation {
  background: var(--bg-surface);
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.explanation-block h3 {
  font-size: 1.25rem;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
  font-weight: 800;
}

.explanation-block p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #090a0e;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }
  
  .results-section {
    padding: 2rem 0;
  }
  
  .explanation {
    padding: 3.5rem 0;
  }
  
  .plugin-card {
    padding: 1.5rem;
  }
  
  .free-plugin {
    font-size: 1.5rem;
  }
}
