/* =====================================================================================
 * ANI — Premium service tiles  (کاشی‌های لوکس سرویس)
 * -------------------------------------------------------------------------------------
 * File : wwwroot/css/ani-service-tiles.css
 * Used : index.html (سایر سرویس‌ها) + services.html (مرکز خدمات یکپارچه)
 * ===================================================================================== */

.ani-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 8px;
}

.ani-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 2px 0;
  border: 0;
  background: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ani-tile__icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(155deg, #ffffff 0%, #f2faf6 55%, #e9f6f0 100%);
  box-shadow:
    0 10px 20px var(--tile-glow, rgba(20, 60, 45, 0.18)),
    0 2px 5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.2s ease;
  overflow: hidden;
}

.ani-tile__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(127, 199, 164, 0.32);
  pointer-events: none;
}

.ani-tile__icon svg {
  width: 46px;
  height: 46px;
  display: block;
  position: relative;
  z-index: 1;
}

.ani-tile__label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(6, 40, 30, 0.35);
  white-space: nowrap;
  letter-spacing: 0.1px;
  line-height: 1.2;
}

.ani-tile:hover .ani-tile__icon {
  transform: translateY(-3px) scale(1.055);
  box-shadow:
    0 16px 28px var(--tile-glow, rgba(20, 60, 45, 0.24)),
    0 4px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ani-tile:active .ani-tile__icon {
  transform: scale(0.94);
}

.ani-tile:focus-visible {
  outline: none;
}

.ani-tile:focus-visible .ani-tile__icon {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 10px 22px rgba(20, 60, 45, 0.3);
}

/* ─── هدر بخش ─── */
.ani-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ani-section-head .section-title {
  margin: 0;
}

.ani-see-all {
  font-size: 0.74rem;
  font-weight: 700;
  color: #eafff6;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: background 0.18s ease;
  white-space: nowrap;
}

.ani-see-all:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ─── حالت تاریک (اگر روزی فعال شد) ─── */
:root[data-theme='dark'] .ani-tile__icon {
  background: linear-gradient(155deg, #1c2f27 0%, #16261f 100%);
}
:root[data-theme='dark'] .ani-tile__icon::after {
  box-shadow: inset 0 0 0 1.5px rgba(127, 199, 164, 0.22);
}

@media (max-width: 360px) {
  .ani-tile__icon { width: 58px; height: 58px; border-radius: 19px; }
  .ani-tile__icon svg { width: 40px; height: 40px; }
  .ani-tile__label { font-size: 0.7rem; }
}
