/* =====================================================================================
 * ANI LINE ICONS — Styles
 * =====================================================================================
 * File    : wwwroot/css/ani-icons.css
 * Date    : 1405/07/27
 * ===================================================================================== */

:root {
  --ani-fill:   #7FC7A4;
  --ani-stroke: #1E5A47;
  --ani-point:  #C8653F;
  --ani-tile:   #E3F3EC;
  --ani-bg:     #FAFAF8;
}

/* ─── کارت آیکون ─── */
.ani-icon-card {
  width: 180px;
  height: 210px;
  border-radius: 40px;
  background: var(--ani-tile);
  border: 2px solid #cfe6db;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}

.ani-icon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 90, 71, .15);
}

.ani-icon-card::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ani-point);
}

.ani-icon-card svg {
  width: 100px;
  height: 100px;
  display: block;
}

.ani-icon-label {
  text-align: center;
  font-size: 15px;
  color: var(--ani-stroke);
  font-weight: 700;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

/* ─── گرید آیکون‌ها ─── */
.ani-icon-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

/* ─── آیکون inline ─── */
.ani-icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.ani-icon-inline svg {
  flex-shrink: 0;
}

/* ─── اندازه‌ها ─── */
.ani-icon-xs svg { width: 16px; height: 16px; }
.ani-icon-sm svg { width: 24px; height: 24px; }
.ani-icon-md svg { width: 32px; height: 32px; }
.ani-icon-lg svg { width: 48px; height: 48px; }
.ani-icon-xl svg { width: 64px; height: 64px; }

/* ─── برندهای غذایی ─── */
.ani-icon-kabab {
  filter: drop-shadow(0 2px 4px rgba(200, 101, 63, .2));
}

.ani-icon-burger {
  filter: drop-shadow(0 2px 4px rgba(127, 199, 164, .25));
}

/* ─── حالت تاریک ─── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ani-icon-card {
    background: #1b2b24;
    border-color: #2a4038;
  }
}

:root[data-theme="dark"] .ani-icon-card {
  background: #1b2b24;
  border-color: #2a4038;
}

/* ─── چاپ ─── */
@media print {
  .ani-icon-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
