/* ===================================
   ICON SYSTEM
   Professional SVG icon styles
   =================================== */

/* === BASE ICON STYLES === */
.icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* === SIZE VARIANTS === */
.icon-xs {
    width: 1rem;
    height: 1rem;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-xl {
    width: 3rem;
    height: 3rem;
}

.icon-2xl {
    width: 4rem;
    height: 4rem;
}

.icon-3xl {
    width: 5rem;
    height: 5rem;
}

/* === COLOR VARIANTS === */
.icon-primary {
    color: var(--color-primary);
}

.icon-accent {
    color: var(--color-accent);
}

.icon-secondary {
    color: var(--color-secondary);
}

.icon-success {
    color: var(--color-success);
}

.icon-error {
    color: var(--color-error);
}

.icon-warning {
    color: var(--color-warning);
}

.icon-muted {
    color: var(--color-text-muted);
}

.icon-white {
    color: #ffffff;
}

/* === FILLED ICONS (for social media) === */
.icon-filled {
    fill: currentColor;
    stroke: none;
}

/* === ICON WITH GLOW EFFECT === */
.icon-glow-blue {
    filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.4));
}

.icon-glow-gold {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.icon-glow-white {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

/* === ICON ANIMATIONS === */
@keyframes icon-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes icon-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.icon-pulse {
    animation: icon-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.icon-spin {
    animation: icon-spin 1s linear infinite;
}

.icon-float {
    animation: icon-float 3s ease-in-out infinite;
}

/* === ICON CONTAINERS === */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    transition: all var(--transition-normal);
}

.icon-container-sm {
    padding: var(--spacing-xs);
}

.icon-container-lg {
    padding: var(--spacing-md);
}

.icon-container-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}

.icon-container-accent {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
}

.icon-container:hover {
    transform: scale(1.05);
}

/* === ICON IN BUTTONS === */
.btn .icon {
    transition: transform var(--transition-fast);
}

.btn:hover .icon {
    transform: translateX(2px);
}

/* === ICON BADGES === */
.icon-badge {
    position: relative;
}

.icon-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--color-error);
    border-radius: 50%;
    border: 2px solid var(--color-bg-primary);
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {

    .icon-pulse,
    .icon-spin,
    .icon-float {
        animation: none;
    }

    .icon-container:hover,
    .btn:hover .icon {
        transform: none;
    }
}