@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0c0d0f;
  --bg-soft: #14161a;
  --bg-card: #1a1d23;
  --text: #f3f3f3;
  --muted: #a8b0bf;
  --accent: #8fd3ff;
  --accent-2: #7bffa0;
  --border: #2b2f37;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at 20% 20%, #1c2029 0%, #0b0d11 45%, #07090c 100%);
  color: var(--text);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(125, 255, 222, 0.12), transparent 55%),
    radial-gradient(circle at 10% 70%, rgba(143, 211, 255, 0.18), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 64px);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2a313d, #15171c);
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.search-wrap {
  max-width: 420px;
  width: 100%;
}

#search {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#search:focus {
  border-color: rgba(143, 211, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(143, 211, 255, 0.15);
}

main {
  padding: 0 clamp(20px, 6vw, 64px) 80px;
}

.hero {
  padding: 30px 0 40px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 8px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(19, 23, 30, 0.7);
  color: var(--muted);
}

.badge.active {
  border-color: rgba(123, 255, 160, 0.7);
  color: var(--accent-2);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 14px 30px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.guide-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(143, 211, 255, 0.2);
}

.guide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(143, 211, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.guide-card:hover::after {
  opacity: 1;
}

.guide-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.guide-body {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.guide-body p {
  margin: 0 0 10px;
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 10px 18px;
  padding: 0;
}

.guide-body strong {
  color: var(--text);
}

.guide-body a {
  color: var(--accent);
  text-decoration: none;
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 211, 255, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
}

.empty-state {
  margin-top: 40px;
  display: grid;
  place-items: center;
}

.empty-card {
  background: rgba(18, 20, 26, 0.85);
  border: 1px dashed var(--border);
  padding: 30px;
  border-radius: 18px;
  text-align: center;
}

.site-footer {
  padding: 30px clamp(20px, 6vw, 64px);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

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

@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
}
