/* ============================================================
   CATEGORY PAGE — SocialZen
============================================================ */

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text3);
}
.breadcrumb-inner a {
  color: var(--text3);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb-inner a:hover { color: var(--pink); }
.breadcrumb-inner i { font-size: 9px; }
.breadcrumb-inner span { color: var(--text2); font-weight: 600; }

/* ── Page Layout ── */
.cat-page {
  background: var(--bg);
  padding: 28px 0 60px;
  min-height: calc(100vh - 120px);
  width: 100%;
}

.cat-page__inner {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

/* ── Sidebar ── */
.cat-sidebar {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.cat-sidebar__card {
  background: linear-gradient(160deg, #0C1526 0%, #141D35 60%, #0F1220 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255,0,128,.06);
  width: 100%;
}

.cat-sidebar__hero {
  padding: 28px 24px 22px;
  text-align: center;
  position: relative;
}
.cat-sidebar__hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--hero-glow, #E1306C) 0%, transparent 65%);
  opacity: .18;
  pointer-events: none;
}

.cat-hero-ico {
  width: 76px; height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 8px 28px rgba(221,42,123,.4), 0 2px 8px rgba(0,0,0,.3);
  position: relative;
}

.cat-sidebar__hero h1 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.cat-sidebar__hero p {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  margin: 0;
}

.cat-sidebar__div {
  height: 1px;
  background: rgba(255,255,255,.07);
}

.cat-sidebar__stats {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.cat-stat__ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cat-stat__label {
  font-size: 11px;
  color: rgba(255,255,255,.38);
  font-weight: 500;
  letter-spacing: .02em;
}
.cat-stat__val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}

.cat-sidebar__cta {
  padding: 0 20px 22px;
}
.cat-sidebar__cta .btn-primary {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

/* Info box */
.cat-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: 14px 16px;
}
.cat-info-box__ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,0,128,.08);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.cat-info-box strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.cat-info-box p {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  margin: 0;
}

/* ── Content Area ── */
.cat-content__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.cat-content__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.4px;
  margin: 0 0 3px;
}
.cat-content__sub {
  font-size: 13px;
  color: var(--text3);
  margin: 0;
}

.cat-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text3);
  white-space: nowrap;
}
.cat-sort select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-s);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.cat-sort select:focus { border-color: var(--pink); }

/* ── Filter Tabs ── */
.cat-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cat-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-p);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
  font-family: inherit;
}
.cat-filter.active {
  background: var(--filter-active-bg, var(--g-brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px var(--filter-active-shadow, rgba(255,0,128,.3));
}
.cat-filter:not(.active):hover {
  border-color: var(--filter-hover-border, rgba(255,0,128,.35));
  color: var(--filter-hover-color, var(--pink));
  background: var(--filter-hover-bg, rgba(255,0,128,.04));
}
.cat-filter i { font-size: 12px; }

/* ── Service Grid ── */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.svc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: 14px 14px 14px 16px;
  text-decoration: none;
  transition: border-color .22s, box-shadow .22s, transform .22s var(--ease-spring);
  cursor: pointer;
}
.svc-card:hover {
  border-color: rgba(225,48,108,.3);
  box-shadow: var(--shadow-sm), 0 4px 20px rgba(225,48,108,.08);
  transform: translateY(-2px);
}

.svc-card__ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--ico-color, linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--ico-shadow, rgba(221,42,123,.28));
  transition: box-shadow .22s, transform .22s var(--ease-spring);
}
.svc-card:hover .svc-card__ico {
  box-shadow: 0 6px 20px var(--ico-shadow-hover, rgba(221,42,123,.4));
  transform: scale(1.06);
}

.svc-card__info {
  flex: 1;
  min-width: 0;
}
.svc-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.svc-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-card__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ico-color-solid, var(--pink));
  background: var(--tag-bg, rgba(255,0,128,.08));
  border: 1px solid var(--tag-border, rgba(255,0,128,.15));
  border-radius: 20px;
  padding: 2px 9px;
}
.svc-card__count {
  font-size: 11.5px;
  color: var(--text3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.svc-card__count i { font-size: 10px; }

.svc-card__arr {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--g-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255,0,128,.3);
  transition: transform .22s var(--ease-spring), box-shadow .22s;
}
.svc-card:hover .svc-card__arr {
  transform: translateX(3px) scale(1.08);
  box-shadow: var(--shadow-pink);
}

/* ── Dark mode ── */
[data-theme="dark"] .cat-sidebar__card {
  border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .cat-sort select {
  background: var(--surface2);
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cat-page { padding: 16px 0 45px; width: 100%; }
  .cat-page__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; min-width: 0; max-width: 100%; }
  .cat-sidebar { position: static; gap: 10px; width: 100%; min-width: 0; max-width: 100%; }
  .cat-sidebar__card { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .cat-content { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
  
  .cat-sidebar__hero { padding: 22px 18px 16px; width: 100%; box-sizing: border-box; }
  .cat-hero-ico { width: 58px; height: 58px; font-size: 26px; border-radius: 16px; margin: 0 auto 10px; }
  .cat-sidebar__hero h1 { font-size: 19px; margin-bottom: 6px; }
  .cat-sidebar__hero p { font-size: 12.5px; line-height: 1.55; word-break: normal; overflow-wrap: break-word; }
  
  /* İstatistikler: Alt alta 3 istatistik (şeffaf kutusuz, sade ve şık) */
  .cat-sidebar__stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .cat-stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 3px;
    width: 100%;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }
  .cat-stat__ico {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    flex: 0 0 32px !important;
    align-self: center !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 3px !important;
    flex-shrink: 0 !important;
    color: var(--pink) !important;
    font-size: 13px !important;
  }
  .cat-stat > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    min-width: 0;
  }
  .cat-stat__label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
  }
  .cat-stat__val {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-top: 2px;
  }
  
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; min-width: 0; max-width: 100%; }
  
  .cat-sidebar__cta { display: none; }
  .cat-info-box { display: none; }
  .cat-content__head { display: none; }
}

@media (max-width: 640px) {
  .breadcrumb-bar { padding: 8px 0; width: 100%; overflow-x: hidden; }
  .breadcrumb-inner { flex-wrap: wrap; gap: 6px; font-size: 11.5px; width: 100%; }

  /* Filtre tabları yatay kaydırmalı (smooth pill bar) */
  .cat-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 4px 2px 10px;
    margin-bottom: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .cat-filters::-webkit-scrollbar { display: none; }
  .cat-filter {
    padding: 8px 16px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: var(--r-p);
  }

  /* Svc Grid tek sütun tam genişlik */
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; min-width: 0; max-width: 100%; }
  .svc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 14px;
    gap: 12px;
    border-radius: var(--r-l);
    box-sizing: border-box;
  }
  .svc-card__ico { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; flex-shrink: 0; }
  .svc-card__info { flex: 1; min-width: 0; overflow: hidden; }
  .svc-card__name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .svc-card__meta { gap: 6px; }
  .svc-card__tag { font-size: 10px; padding: 2px 8px; }
  .svc-card__count { font-size: 11px; }
  .svc-card__arr { width: 30px; height: 30px; font-size: 11px; flex-shrink: 0; }
}

@media (max-width: 480px) {
  .cat-sidebar__hero { padding: 18px 14px 14px; }
  .cat-hero-ico { width: 50px; height: 50px; font-size: 24px; border-radius: 14px; margin-bottom: 8px; }
  .cat-sidebar__hero h1 { font-size: 17.5px; }
  .cat-sidebar__hero p { font-size: 12px; }
  
  .cat-sidebar__stats { padding: 12px 12px 14px; gap: 7px; }
  .cat-stat { padding: 8px 10px; gap: 10px; }
  .cat-stat__ico { width: 30px; height: 30px; font-size: 12px; }
  .cat-stat__label { font-size: 10.5px; }
  .cat-stat__val { font-size: 12.5px; }
  
  .svc-card { padding: 11px 12px; gap: 10px; }
  .svc-card__ico { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
  .svc-card__name { font-size: 13px; margin-bottom: 3px; }
  .svc-card__arr { width: 28px; height: 28px; font-size: 10px; }
}
