/* ══════════════════════════════════════════════════════════════════════════
   TOPBOARD — CATEGORIES
   Exact Match to User Reference Mockup (Modern Light SaaS Orange Theme)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --cat-bg: #fffdfb;
  --cat-text: #0f172a;
  --cat-muted: #64748b;
  --cat-subtle: #94a3b8;
  --cat-border: #e2e8f0;
  --cat-border-peach: #fed7aa;
  --cat-peach-bg: #fff7ed;
  --cat-peach-pill: #ffedd5;
  --cat-orange: #ea580c;
  --cat-orange-hover: #c2410c;
  --cat-orange-glow: rgba(234, 88, 12, 0.25);
  --cat-gold: #b45309;
}

body:has(.cat-page-wrapper) {
  background-color: var(--cat-bg) !important;
  color: var(--cat-text) !important;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.cat-page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--cat-bg);
  background-image: 
    radial-gradient(ellipse 55% 45% at 85% 12%, rgba(254, 215, 170, 0.42) 0%, rgba(255, 237, 213, 0.18) 45%, transparent 70%),
    radial-gradient(ellipse 35% 30% at 10% 4%, rgba(254, 215, 170, 0.25) 0%, transparent 60%);
  background-repeat: no-repeat;
  color: var(--cat-text);
  overflow-x: hidden;
}

.cat-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 36px 32px 80px;
  box-sizing: border-box;
}

/* ─── Hero Section ──────────────────────────────────────────────── */
.cat-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
}

.cat-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cat-eyebrow {
  display: inline-block;
  background: #ffedd5;
  color: #ea580c;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.cat-hero-title {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.cat-title-highlight {
  color: #ea580c;
}

.cat-hero-subtitle {
  font-size: 16.5px;
  line-height: 1.6;
  color: #64748b;
  max-width: 480px;
  margin: 0;
}

/* ─── Hero Right: Warm Podium & Crown Illustration ──────────────── */
.cat-hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.cat-podium-art {
  width: 320px;
  height: 180px;
}

/* ─── Categories Dynamic Grid ───────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cat-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: #fed7aa;
  box-shadow: 0 10px 24px -4px rgba(234, 88, 12, 0.09);
}

.cat-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cat-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cat-card:hover .cat-icon-box {
  background: #ffedd5;
  transform: scale(1.05);
}

.cat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cat-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.cat-card:hover .cat-name {
  color: #ea580c;
}

.cat-count {
  font-size: 12.5px;
  color: #64748b;
  white-space: nowrap;
}

.cat-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 700;
}

.cat-card:hover .cat-arrow-btn {
  background: #ea580c;
  color: #ffffff;
  transform: translateX(2px);
}

/* ─── Responsive Styles ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .cat-hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cat-hero-right {
    display: none;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cat-container {
    padding: 24px 16px 60px;
  }
  .cat-hero-title {
    font-size: 36px;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
}
