/**
 * Ana sayfa – Kategoriler bölümü (tamamen yeniden tasarım)
 * 4 kategori yan yana, özel şekil, kategori varlığını vurgulayan sunum
 */

.home-categories {
  padding: 3.5rem 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #334155 100%);
  color: #fff;
}

.home-categories .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-categories__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.home-categories__subtitle {
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
  margin: 0 0 2.25rem 0;
  font-weight: 500;
}

.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-categories__card {
  display: block;
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.35s ease;
  /* Kesik köşe: sağ alt farklı */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  border-radius: 28px 28px 28px 48px;
}

.home-categories__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

.home-categories__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #475569;
  transition: transform 0.6s ease;
}

.home-categories__card:hover .home-categories__card-bg {
  transform: scale(1.1);
}

.home-categories__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.25) 0%,
    rgba(15, 23, 42, 0.75) 60%,
    rgba(15, 23, 42, 0.92) 100%
  );
  pointer-events: none;
}

/* Dekoratif şekil – sağ üstte hafif daire */
.home-categories__card-shape {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.home-categories__card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.5rem;
}

.home-categories__card-name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin: 0 0 0.5rem 0;
}

.home-categories__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  opacity: 0.95;
}

.home-categories__card-cta::after {
  content: "→";
  font-size: 1rem;
}

.home-categories__empty {
  text-align: center;
  padding: 2rem;
  opacity: 0.9;
  grid-column: 1 / -1;
}

@media (max-width: 992px) {
  .home-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .home-categories {
    padding: 2.5rem 0;
  }
  .home-categories__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .home-categories__card,
  .home-categories__card-inner {
    min-height: 180px;
  }
  .home-categories__card-name {
    font-size: 1.1rem;
  }
}
