/* ═══════════════════════════════════════════════════════════
   FilmTexture — Icon System
   SVG icon styling and variants
   ═══════════════════════════════════════════════════════════ */

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

.icon svg {
  width: 100%;
  height: 100%;
}

/* Icon colors and variations */
.icon--gold {
  color: var(--accent-muted);
  stroke: var(--accent-muted);
}

.icon--white {
  color: var(--white);
  stroke: var(--white);
}

.icon--silver {
  color: rgba(255, 255, 255, 0.6);
  stroke: rgba(255, 255, 255, 0.6);
}

/* Icon sizes */
.icon--sm {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.icon--md {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.icon--lg {
  width: 32px;
  height: 32px;
  font-size: 32px;
}

.icon--xl {
  width: 48px;
  height: 48px;
  font-size: 48px;
}

/* Icon with background circle */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--accent-muted);
}

.icon-circle--lg {
  width: 64px;
  height: 64px;
}

.icon-circle--sm {
  width: 40px;
  height: 40px;
}

/* Icon with subtle background */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--accent-muted);
}

/* Category icons in cards */
.pcard-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-muted);
  opacity: 0.8;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.pcard:hover .pcard-icon {
  opacity: 1;
}

/* Hero section icons (inside .cat-hero-icon-wrap container) */
.cat-hero-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-muted);
  opacity: 0.85;
}

/* Navigation icons */
.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -4px;
}

/* Icon animation on hover */
.icon--animated {
  transition: transform 0.3s var(--ease-out);
}

.pcard:hover .icon--animated,
a:hover .icon--animated,
button:hover .icon--animated {
  transform: scale(1.08);
}

/* Icon fade in animation */
@keyframes icon-fade-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.icon--fadeIn {
  animation: icon-fade-in 0.35s var(--ease-out) forwards;
}

/* SVG stroke styling for outline icons */
svg[class*="icon"] path[stroke],
svg[class*="icon"] circle[stroke],
svg[class*="icon"] rect[stroke],
svg[class*="icon"] line[stroke] {
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Accessibility */
.icon[role="img"] {
  display: inline-block;
}

.icon[aria-hidden="true"] {
  pointer-events: none;
}

/* Dark mode support (already dark UI) */
@media (prefers-color-scheme: dark) {
  .icon-circle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .icon-badge {
    background: rgba(255, 255, 255, 0.06);
  }
}

/* Responsive icon sizing */
@media (max-width: 768px) {
  .cat-hero-icon {
    width: 48px;
    height: 48px;
  }

  .icon-circle--lg {
    width: 56px;
    height: 56px;
  }
}
