/* ═══════════════════════════════════════════════════════════
   BT Kreativ — Professional Icon System (Lucide)
   ═══════════════════════════════════════════════════════════ */

:root {
  --icon-stroke: 1.75;
  --icon-color: currentColor;
}

/* Base icon */
.icon,
.lucide-icon,
i[data-lucide],
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  color: inherit;
  line-height: 1;
}

/* Lucide replaces <i> with <svg> — keep layout stable */
svg.lucide {
  overflow: visible;
}

/* Size scale */
.icon-xs, .icon.icon-xs, svg.lucide.icon-xs { width: 0.85rem; height: 0.85rem; }
.icon-sm, .icon.icon-sm, svg.lucide.icon-sm { width: 1rem; height: 1rem; }
.icon-md, .icon.icon-md, svg.lucide.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg, .icon.icon-lg, svg.lucide.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl, .icon.icon-xl, svg.lucide.icon-xl { width: 1.85rem; height: 1.85rem; }
.icon-2xl, .icon.icon-2xl, svg.lucide.icon-2xl { width: 2.25rem; height: 2.25rem; }

/* Icon in buttons / nav */
.btn .icon,
.btn svg.lucide,
.btn-icon .icon,
.btn-icon svg.lucide,
.nav-link svg.lucide,
.view-all svg.lucide {
  width: 1.05em;
  height: 1.05em;
}

.btn-icon svg.lucide {
  width: 1.15rem;
  height: 1.15rem;
}

/* Soft icon badge (catalog / subject / empty) */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--primary-soft, rgba(15, 118, 110, 0.1));
  color: var(--primary, #0F766E);
  flex-shrink: 0;
}
.icon-badge svg.lucide,
.icon-badge .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.icon-badge-lg {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
}
.icon-badge-lg svg.lucide {
  width: 1.5rem;
  height: 1.5rem;
}

/* Subject / catalog icon wells */
.subject-icon,
.catalog-icon,
.hero-panel-icon,
.feature-icon,
.empty-state-icon,
.cabinet-stat-icon,
.material-type {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.subject-icon svg.lucide,
.catalog-icon svg.lucide {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 1.7;
}

.catalog-icon svg.lucide {
  width: 1.2rem;
  height: 1.2rem;
}

.subject-detail-icon svg.lucide {
  width: 1.75rem;
  height: 1.75rem;
}

.hero-panel-icon svg.lucide {
  width: 1.1rem;
  height: 1.1rem;
  color: #fff;
}

.empty-state-icon svg.lucide {
  width: 1.5rem;
  height: 1.5rem;
}

/* Material type badges keep letter labels; icons inside centered */
.material-type svg.lucide {
  width: 1rem;
  height: 1rem;
  color: #fff;
  stroke-width: 2;
}

/* Nav dropdown icons */
.nav-dropdown a svg.lucide,
.nav-dropdown a .icon {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.9;
  color: var(--primary);
}

/* Profile / menu items */
.profile-menu-item svg.lucide,
.cabinet-nav a svg.lucide,
.footer-contact i svg.lucide,
.footer-contact svg.lucide {
  width: 1.05rem;
  height: 1.05rem;
}

/* Social — brand-neutral stroke icons */
.social-link svg.lucide {
  width: 1.1rem;
  height: 1.1rem;
}

/* Theme switch icons */
.theme-switch svg.lucide {
  width: 0.95rem;
  height: 0.95rem;
}

/* Spinner animation for loader icon */
.icon-spin,
svg.lucide.icon-spin,
.fa-spin {
  animation: icon-spin 0.85s linear infinite;
}
@keyframes icon-spin {
  to { transform: rotate(360deg); }
}

/* Legacy FA size reset once migrated to svg */
i.fas, i.far, i.fab {
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure FA doesn't flash huge before migration */
i.fas:not([data-lucide]):empty::before,
i.far:not([data-lucide]):empty::before {
  content: none;
}
