/* ─── Category Section Card & Grid (React Parity) ─────────────────────────── */
.ycc-cat-section {
  padding: 8px 0 14px;
}
@media (min-width: 768px) {
  .ycc-cat-section {
    padding: 12px 0 18px;
  }
}
.ycc-cat-card {
  position:      relative;
  border-radius: 16px;
  border:        1px solid var(--ycc-slate-200);
  background:    #ffffff;
  box-shadow:    0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow:      hidden;
  transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ycc-cat-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
html.dark .ycc-cat-card {
  background:   #0f172a;
  border-color: #1e293b;
  box-shadow:   none;
}
.ycc-cat-gradient-line {
  height: 4px;
  width:  100%;
}
.ycc-cat-header-bar {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         12px 20px;
  border-bottom:   1px solid rgba(241, 245, 249, 0.6);
  background:      rgba(248, 250, 252, 0.4);
}
html.dark .ycc-cat-header-bar {
  border-bottom-color: #1e293b;
  background:          rgba(15, 23, 42, 0.5);
}
@media (min-width: 768px) {
  .ycc-cat-header-bar {
    padding: 16px 24px;
  }
}
.ycc-cat-meta {
  display:     flex;
  align-items: center;
  gap:         12px;
}
.ycc-cat-icon-wrap {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  border-radius:   8px;
  background:      rgba(37, 99, 235, 0.08);
  flex-shrink:     0;
}
html.dark .ycc-cat-icon-wrap {
  background: rgba(30, 41, 59, 0.8);
}
.ycc-cat-title {
  font-size:   18px;
  font-weight: 700;
  color:       var(--ycc-slate-900);
  line-height: 1.1;
  margin:      0;
  display:     flex;
  align-items: center;
  gap:         8px;
}
@media (min-width: 768px) {
  .ycc-cat-title { font-size: 20px; }
}
html.dark .ycc-cat-title {
  color: #ffffff;
}
.ycc-cat-badge {
  display:        none;
  padding:        2px 8px;
  background:     var(--ycc-slate-100);
  color:          var(--ycc-slate-500);
  font-size:      10px;
  font-weight:    600;
  border-radius:  9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (min-width: 640px) {
  .ycc-cat-badge { display: inline-flex; }
}
html.dark .ycc-cat-badge {
  background: var(--ycc-slate-800);
  color:      var(--ycc-slate-400);
}
.ycc-cat-desc {
  font-size:   11px;
  font-weight: 500;
  color:       var(--ycc-slate-500);
  margin:      4px 0 0;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .ycc-cat-desc { font-size: 12px; }
}
html.dark .ycc-cat-desc {
  color: var(--ycc-slate-400);
}
.ycc-cat-view-all {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  font-size:       13px;
  font-weight:     700;
  color:           var(--ycc-slate-500);
  text-decoration: none;
  cursor:          pointer;
  transition:      all 0.2s ease;
  background:      transparent;
  border:          none;
}
.ycc-cat-view-all:hover {
  color:     var(--ycc-blue-600);
  transform: translateX(3px);
}
html.dark .ycc-cat-view-all {
  color: var(--ycc-slate-400);
}
html.dark .ycc-cat-view-all:hover {
  color: #60a5fa;
}

/* Category card body & grid */
.ycc-cat-body {
  padding:    12px;
  background: #ffffff;
}
@media (min-width: 768px) {
  .ycc-cat-body { padding: 16px; }
}
html.dark .ycc-cat-body {
  background: #0f172a;
}
.ycc-cat-grid {
  display:               grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:                   12px;
}
@media (min-width: 768px) {
  .ycc-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .ycc-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
