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

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

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0A;
  color: #fff;
}

/* ── Header ── */
.header {
  background: #111;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #222;
}
.header .builder-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: #fff;
  letter-spacing: 1px;
}
.header .header-right {
  margin-left: auto;
}
.header .header-right a {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.header .header-right a:hover {
  color: #00DAFF;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  justify-content: center;
  background: #111;
  border-bottom: 1px solid #222;
  gap: 0;
}
.tabs button {
  padding: 12px 24px;
  background: transparent;
  color: #888;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.tabs button:hover {
  color: #fff;
}
.tabs button.active {
  border-bottom: 2px solid #00DAFF;
  color: #fff;
  font-weight: 600;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  left: 0;
  top: 96px;
  bottom: 0;
  width: 220px;
  background: #0A0A0A;
  padding: 16px 0;
  border-right: 1px solid #222;
  overflow-y: auto;
}
.filter-section {
  padding: 10px 20px;
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.filter-section:hover {
  background: #111;
  color: #fff;
}
.filter-section.active {
  color: #00DAFF;
}

/* ── Main content ── */
.main {
  margin-left: 220px;
  padding: 32px;
}

/* ── Category sections ── */
.category-section {
  margin-bottom: 40px;
}
.category-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: #00DAFF;
  letter-spacing: 1px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
}

/* ── Template grid ── */
.template-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Template cards ── */
.template-card {
  background: #111;
  color: #fff;
  width: 200px;
  border-radius: 10px;
  border: 1px solid #222;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  cursor: default;
}
.template-card:hover {
  border-color: #00DAFF;
  box-shadow: 0 4px 24px rgba(0, 218, 255, 0.1);
  transform: translateY(-2px);
}
.template-card .card-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.template-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.template-card:hover .card-img img {
  filter: grayscale(0%);
}
.template-card .card-body {
  padding: 14px;
}
.template-card .card-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.template-card .card-size {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 2px;
}
.template-card .card-device {
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 12px;
}
.template-card button {
  width: 100%;
  cursor: pointer;
  background: #220EE9;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.template-card button:hover {
  background: #3a2af0;
}
