/**
 * Yiğit Efendi — Kategori kartları (Dinevo category-two layout)
 * Scoped: #ye-cafe-category / .ye-cafe-category
 */
.ye-cafe-category {
  --ye-ink: #01261a;
  --ye-green: #0a3d2a;
  --ye-gold: #d4af37;
  --ye-cream: #f5f1e8;
  --ye-white: #ffffff;
  --ye-font: "Poppins", "Hanken Grotesk", system-ui, sans-serif;
  --ye-display: "Hanken Grotesk", "Poppins", system-ui, sans-serif;
  background-color: var(--ye-cream);
  padding: 120px 0;
}

.ye-cafe-category__header {
  width: max-content;
  max-width: 100%;
}

.ye-cafe-category__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid rgba(1, 38, 26, 0.14);
  background: transparent;
  font-family: var(--ye-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ye-ink);
}

.ye-cafe-category__eyebrow-icon {
  display: grid;
  place-content: center;
  width: 16px;
  height: 16px;
  color: var(--ye-gold);
}

.ye-cafe-category__eyebrow-icon svg {
  width: 100%;
  height: 100%;
}

.ye-cafe-category__title {
  margin: 0;
  color: var(--ye-ink);
  font-family: var(--ye-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ye-cafe-category__grid {
  padding-top: 65px;
}

.ye-cafe-category__item {
  border-radius: 10px;
  background: var(--ye-white);
  overflow: hidden;
  padding: 50px 30px;
  text-align: center;
  transition: background-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  height: 100%;
}

.ye-cafe-category__icon {
  display: grid;
  place-content: center;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  color: var(--ye-ink);
  transition: color 0.5s ease;
}

.ye-cafe-category__icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.ye-cafe-category__item-title {
  margin: 65px 0 0;
  color: var(--ye-ink);
  font-family: var(--ye-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.5s ease;
}

.ye-cafe-category__item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.5s ease;
}

.ye-cafe-category__item:hover,
.ye-cafe-category__item.is-active {
  background-color: var(--ye-green);
  box-shadow: 0 18px 40px rgba(1, 38, 26, 0.16);
}

.ye-cafe-category__item:hover .ye-cafe-category__icon,
.ye-cafe-category__item.is-active .ye-cafe-category__icon {
  color: var(--ye-gold);
}

.ye-cafe-category__item:hover .ye-cafe-category__icon svg,
.ye-cafe-category__item.is-active .ye-cafe-category__icon svg {
  transform: scale(1.04);
}

.ye-cafe-category__item:hover .ye-cafe-category__item-title,
.ye-cafe-category__item:hover .ye-cafe-category__item-title a,
.ye-cafe-category__item.is-active .ye-cafe-category__item-title,
.ye-cafe-category__item.is-active .ye-cafe-category__item-title a {
  color: var(--ye-white);
}

/* Fade / reveal (matches about section pattern) */
.ye-cafe-category .ye-fade-anim {
  opacity: 0;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--ye-fade-delay, 0s),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--ye-fade-delay, 0s);
}

.ye-cafe-category .ye-fade-anim[data-dir="bottom"] {
  transform: translate3d(0, var(--ye-fade-dist, 40px), 0);
}

.ye-cafe-category .ye-fade-anim[data-dir="left"] {
  transform: translate3d(calc(var(--ye-fade-dist, 40px) * -1), 0, 0);
}

.ye-cafe-category .ye-fade-anim[data-dir="right"] {
  transform: translate3d(var(--ye-fade-dist, 40px), 0, 0);
}

.ye-cafe-category .ye-fade-anim.is-in {
  opacity: 1;
  transform: none;
}

.ye-cafe-category .ye-text-reveal .ye-reveal-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  transition:
    opacity 0.45s ease calc(var(--i, 0) * 0.028s + var(--ye-fade-delay, 0.1s)),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 0.028s + var(--ye-fade-delay, 0.1s));
}

.ye-cafe-category .ye-text-reveal.is-in .ye-reveal-char {
  opacity: 1;
  transform: none;
}

@media (max-width: 991px) {
  .ye-cafe-category {
    padding: 80px 0;
  }

  .ye-cafe-category__grid {
    padding-top: 40px;
  }

  .ye-cafe-category__item {
    padding: 36px 24px;
  }

  .ye-cafe-category__icon {
    width: 80px;
    height: 80px;
  }

  .ye-cafe-category__item-title {
    margin-top: 40px;
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .ye-cafe-category__eyebrow {
    padding: 5px 10px;
    font-size: 12px;
  }

  .ye-cafe-category__title {
    font-size: 28px;
  }
}
