/* Portal anasayfa — modern kategori kartları */
.portal-home .vcs-zone,
.vcs-zone.main-cat-container {
  --vcs-red: #c31313;
  --vcs-red-soft: rgba(195, 19, 19, 0.1);
  position: relative;
  margin-bottom: 1.15rem;
  padding: 0 2.4rem;
  overflow: visible;
}

.portal-home .vcs-swiper,
.vcs-zone .vcs-swiper {
  padding: 6px 2px 8px;
  overflow: hidden;
}

.portal-home .vcs-swiper .swiper-slide,
.vcs-zone .vcs-swiper .swiper-slide {
  height: auto;
}

/* CLS guard — Swiper init öncesi */
.portal-home .vcs-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  box-sizing: border-box;
}

.portal-home .vcs-swiper:not(.swiper-initialized) .swiper-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  width: calc((100% - 10px * 1.45) / 2.45);
  margin-right: 10px;
}

@media (min-width: 480px) {
  .portal-home .vcs-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 12px * 2.15) / 3.15);
    margin-right: 12px;
  }
}

@media (min-width: 768px) {
  .portal-home .vcs-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 14px * 3) / 4);
    margin-right: 14px;
  }
}

@media (min-width: 992px) {
  .portal-home .vcs-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 16px * 4) / 5);
    margin-right: 16px;
  }
}

@media (min-width: 1200px) {
  .portal-home .vcs-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 18px * 6) / 7);
    margin-right: 18px;
  }
}

.portal-home .vcs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--vcs-tint) 42%, #fff) 100%);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  border: 1px solid color-mix(in srgb, var(--vcs-accent) 18%, #e2e8f0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.portal-home .vcs-card:hover,
.portal-home .vcs-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--vcs-accent) 45%, #e2e8f0);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--vcs-accent) 22%, transparent);
  outline: none;
  text-decoration: none !important;
}

.portal-home .vcs-card *,
.portal-home .vcs-card:hover *,
.portal-home .vcs-card:focus-visible * {
  text-decoration: none !important;
}

.portal-home .vcs-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), transparent 55%),
    linear-gradient(160deg, #fff 0%, var(--vcs-tint) 100%);
  flex-shrink: 0;
}

.portal-home .vcs-card__glow {
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 55%;
  background: radial-gradient(circle, color-mix(in srgb, var(--vcs-accent) 28%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.portal-home .vcs-card__img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: brightness(1.08) saturate(1.18) contrast(1.04);
  transition: transform 0.35s ease, filter 0.25s ease;
  z-index: 1;
}

.portal-home .vcs-card:hover .vcs-card__img,
.portal-home .vcs-card:focus-visible .vcs-card__img {
  filter: brightness(1.12) saturate(1.24) contrast(1.05);
  transform: scale(1.05);
}

.portal-home .vcs-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vcs-accent);
  z-index: 1;
}

.portal-home .vcs-card__fallback i {
  font-size: clamp(2rem, 8vw, 2.75rem);
  opacity: 0.92;
}

.portal-home .vcs-card__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--vcs-accent);
  border: 1px solid color-mix(in srgb, var(--vcs-accent) 25%, #fff);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
}

.portal-home .vcs-card__caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.55rem 0.62rem;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid color-mix(in srgb, var(--vcs-accent) 12%, #f1f5f9);
  position: relative;
}

.portal-home .vcs-card__caption::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vcs-accent), #f97316);
  opacity: 0.9;
}

.portal-home .vcs-card__name {
  width: 100%;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-align: center;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.portal-home .vcs-card__hint {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--vcs-accent) 75%, #64748b);
  opacity: 0.92;
  line-height: 1;
}

.portal-home .vcs-card:hover .vcs-card__name,
.portal-home .vcs-card:focus-visible .vcs-card__name {
  color: var(--vcs-accent);
}

.portal-home .vcs-nav,
.vcs-zone .vcs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  z-index: 6;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
  border: 1px solid rgba(226, 232, 240, 0.98);
  opacity: 1 !important;
  cursor: pointer;
}

.portal-home .vcs-nav--prev,
.vcs-zone .vcs-nav--prev {
  left: 0;
}

.portal-home .vcs-nav--next,
.vcs-zone .vcs-nav--next {
  right: 0;
}

.portal-home .vcs-nav::after,
.vcs-zone .vcs-nav::after {
  display: none !important;
  content: none !important;
}

.portal-home .vcs-nav i,
.vcs-zone .vcs-nav i {
  font-size: 1.2rem;
  line-height: 1;
  color: inherit;
}

.portal-home .vcs-nav:hover,
.vcs-zone .vcs-nav:hover {
  color: var(--vcs-red, #c31313) !important;
  border-color: rgba(195, 19, 19, 0.4);
}

.portal-home .vcs-nav.swiper-button-disabled,
.vcs-zone .vcs-nav.swiper-button-disabled {
  opacity: 0.35 !important;
  cursor: default;
}

@media (min-width: 768px) {
  .portal-home .vcs-card__name {
    font-size: 0.9rem;
  }

  .portal-home .vcs-card__caption {
    min-height: 3.25rem;
    padding: 0.58rem 0.6rem 0.66rem;
  }

  .portal-home .vcs-card__hint {
    font-size: 0.7rem;
  }
}

@media (max-width: 767.98px) {
  .portal-home .vcs-zone,
  .vcs-zone.main-cat-container {
    margin-bottom: 0.7rem;
    padding: 0;
  }

  .portal-home .vcs-nav,
  .vcs-zone .vcs-nav {
    display: none !important;
  }

  .portal-home .vcs-swiper,
  .vcs-zone .vcs-swiper {
    padding: 4px 0 2px;
    overflow: hidden;
  }

  .portal-home .vcs-card {
    border-radius: 13px;
  }

  .portal-home .vcs-card__caption {
    min-height: 2.85rem;
    padding: 0.45rem 0.4rem 0.5rem;
  }

  .portal-home .vcs-card__name {
    font-size: 0.76rem;
  }

  .portal-home .vcs-card__hint {
    font-size: 0.6rem;
  }

  .portal-home .vcs-card__badge {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.72rem;
  }

  .portal-home .vcs-card__caption::before {
    width: 24px;
    height: 2px;
  }
}

/* Bottom bar kategori paneli */
#catPanel .cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

#catPanel .vcs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--vcs-tint) 40%, #fff) 100%);
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.06);
  border: 1px solid color-mix(in srgb, var(--vcs-accent) 16%, #eef2f6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

#catPanel .vcs-card:active {
  transform: scale(0.98);
  border-color: color-mix(in srgb, var(--vcs-accent) 40%, #eef2f6);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--vcs-accent) 18%, transparent);
}

#catPanel .vcs-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, var(--vcs-tint) 100%);
  flex-shrink: 0;
}

#catPanel .vcs-card__img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: brightness(1.1) saturate(1.2) contrast(1.04);
}

#catPanel .vcs-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vcs-accent);
}

#catPanel .vcs-card__fallback i {
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  opacity: 0.95;
}

#catPanel .vcs-card__badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 2;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--vcs-accent);
  font-size: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--vcs-accent) 22%, #fff);
}

#catPanel .vcs-card__caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 2.55rem;
  padding: 0.4rem 0.38rem 0.44rem;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #f1f5f9;
  position: relative;
}

#catPanel .vcs-card__caption::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vcs-accent, #c31313), #f97316);
  opacity: 0.85;
}

#catPanel .vcs-card__name {
  width: 100%;
  color: #1e293b;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-align: center;
  margin-top: 0.12rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#catPanel .vcs-card__hint {
  font-size: 0.58rem;
  color: #94a3b8;
  line-height: 1.2;
  font-weight: 700;
}

#catPanel .vcs-card__glow {
  display: none;
}
