/* ===================================================================
   ULTRA PREMIUM PROFESSIONAL ICON SYSTEM - 2025
   Advanced 3D Effects | Serious Backgrounds | Best Quality
   =================================================================== */

/* ===================================================================
   CORE ICON FOUNDATION
   =================================================================== */

/* All Icons Base - Professional Enhancement */
i[class*="bi-"],
i[class*="fa-"],
.icon-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================================================
   PREMIUM 3D ICON CONTAINERS
   =================================================================== */

/* Professional Icon Wrapper - 3D Depth */
.icon-container-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.92) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 12px;
    box-shadow:
        /* Outer shadow for depth */
        0 8px 32px rgba(15, 23, 42, 0.12),
        0 4px 16px rgba(15, 23, 42, 0.08),
        /* Inner highlight */
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(15, 23, 42, 0.03);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-container-premium:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 16px 48px rgba(14, 165, 233, 0.2),
        0 8px 24px rgba(15, 23, 42, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
}

/* Serious Dark Background Variant */
.icon-container-dark {
    background: linear-gradient(145deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.05),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.icon-container-dark:hover {
    box-shadow:
        0 16px 48px rgba(14, 165, 233, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(14, 165, 233, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    border-color: rgba(14, 165, 233, 0.6);
}

/* ===================================================================
   GRADIENT ICON BACKGROUNDS - PROFESSIONAL COLORS
   =================================================================== */

/* Primary Brand Gradient */
.icon-bg-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #ffffff;
    box-shadow:
        0 8px 32px rgba(14, 165, 233, 0.35),
        0 4px 16px rgba(6, 182, 212, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(6, 182, 212, 0.4);
}

.icon-bg-primary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
    box-shadow:
        0 16px 48px rgba(14, 165, 233, 0.5),
        0 8px 24px rgba(6, 182, 212, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(6, 182, 212, 0.5);
}

/* Success Green Gradient */
.icon-bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow:
        0 8px 32px rgba(16, 185, 129, 0.35),
        0 4px 16px rgba(5, 150, 105, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(5, 150, 105, 0.4);
}

/* Warning Gold Gradient */
.icon-bg-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow:
        0 8px 32px rgba(251, 191, 36, 0.35),
        0 4px 16px rgba(245, 158, 11, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(245, 158, 11, 0.4);
}

/* Danger Red Gradient */
.icon-bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow:
        0 8px 32px rgba(239, 68, 68, 0.35),
        0 4px 16px rgba(220, 38, 38, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(220, 38, 38, 0.4);
}

/* Professional Purple Gradient */
.icon-bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.35),
        0 4px 16px rgba(124, 58, 237, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(124, 58, 237, 0.4);
}

/* Elegant Pink Gradient */
.icon-bg-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
    box-shadow:
        0 8px 32px rgba(236, 72, 153, 0.35),
        0 4px 16px rgba(219, 39, 119, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(219, 39, 119, 0.4);
}

/* ===================================================================
   PROFESSIONAL 3D ICON EFFECTS
   =================================================================== */

/* Deep 3D Shadow Effect */
.icon-3d-deep {
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.2))
            drop-shadow(0 2px 4px rgba(15, 23, 42, 0.15));
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-3d-deep:hover {
    filter: drop-shadow(0 8px 16px rgba(14, 165, 233, 0.3))
            drop-shadow(0 4px 8px rgba(14, 165, 233, 0.2));
    transform: translateY(-3px) translateZ(10px);
}

/* Embossed 3D Effect */
.icon-embossed {
    text-shadow:
        1px 1px 2px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(15, 23, 42, 0.15),
        0 3px 6px rgba(15, 23, 42, 0.1);
}

/* Glowing Effect */
.icon-glow {
    filter: drop-shadow(0 0 8px currentColor)
            drop-shadow(0 0 16px currentColor);
    animation: icon-pulse-glow 2s ease-in-out infinite;
}

@keyframes icon-pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px currentColor)
                drop-shadow(0 0 16px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 12px currentColor)
                drop-shadow(0 0 24px currentColor);
    }
}

/* Metallic Shine Effect */
.icon-metallic {
    background: linear-gradient(145deg,
        rgba(226, 232, 240, 1) 0%,
        rgba(203, 213, 225, 1) 50%,
        rgba(226, 232, 240, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

/* ===================================================================
   PROFESSIONAL SIZE VARIANTS
   =================================================================== */

/* Extra Small - Compact */
.icon-premium-xs {
    width: 32px;
    height: 32px;
    font-size: 14px;
    padding: 8px;
    border-radius: 10px;
}

/* Small - Standard */
.icon-premium-sm {
    width: 40px;
    height: 40px;
    font-size: 16px;
    padding: 10px;
    border-radius: 12px;
}

/* Medium - Default */
.icon-premium-md {
    width: 48px;
    height: 48px;
    font-size: 20px;
    padding: 12px;
    border-radius: 14px;
}

/* Large - Featured */
.icon-premium-lg {
    width: 64px;
    height: 64px;
    font-size: 28px;
    padding: 16px;
    border-radius: 16px;
}

/* Extra Large - Hero */
.icon-premium-xl {
    width: 80px;
    height: 80px;
    font-size: 36px;
    padding: 20px;
    border-radius: 20px;
}

/* ===================================================================
   ADVANCED ICON ANIMATIONS
   =================================================================== */

/* Floating Animation */
.icon-float {
    animation: icon-floating 3s ease-in-out infinite;
}

@keyframes icon-floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Rotate Animation */
.icon-rotate-hover:hover {
    animation: icon-rotate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Scale Pulse */
.icon-pulse {
    animation: icon-scale-pulse 2s ease-in-out infinite;
}

@keyframes icon-scale-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Bounce Effect */
.icon-bounce-hover:hover {
    animation: icon-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(-8px);
    }
}

/* ===================================================================
   SPECIALIZED ICON GROUPS
   =================================================================== */

/* Social Media Icons - Professional */
.icon-social {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.92) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 50%;
    color: #475569;
    font-size: 18px;
    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-social:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(14, 165, 233, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Status Icons - Professional Indicators */
.icon-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(15, 23, 42, 0.15);
}

.icon-status.online {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(16, 185, 129, 0.6);
}

.icon-status.away {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(251, 191, 36, 0.6);
}

.icon-status.offline {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(148, 163, 184, 0.4);
}

/* ===================================================================
   GLASS MORPHISM ICON CONTAINERS
   =================================================================== */

/* Ultra Premium Glass Background */
.icon-glass-premium {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 14px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-glass-premium:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 48px rgba(14, 165, 233, 0.15),
        0 6px 24px rgba(0, 0, 0, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* Dark Glass Variant */
.icon-glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.icon-glass-dark:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow:
        0 12px 48px rgba(14, 165, 233, 0.25),
        inset 0 1px 2px rgba(14, 165, 233, 0.15);
}

/* ===================================================================
   PROFESSIONAL BADGE ICONS
   =================================================================== */

.icon-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.icon-badge i {
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.15));
}

.icon-badge-text {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.02em;
}

/* ===================================================================
   CONTEXT-SPECIFIC ENHANCEMENTS
   =================================================================== */

/* Navigation Icons */
.nav-item i,
.mobile-menu-item i {
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.1));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover i,
.mobile-menu-item:hover i {
    filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.3));
    transform: scale(1.1);
}

/* Button Icons */
.action-btn i,
.btn i {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-btn:hover i,
.btn:hover i {
    transform: scale(1.15) translateX(2px);
}

/* Stat Icons - Professional Enhancement */
.stat-icon {
    position: relative;
    overflow: visible;
}

.stat-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: icon-subtle-pulse 3s ease-in-out infinite;
}

@keyframes icon-subtle-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 3px 6px rgba(14, 165, 233, 0.3));
    }
}

/* ===================================================================
   PREMIUM LOADING ICON
   =================================================================== */

.icon-loading {
    animation: icon-spin 1s linear infinite;
}

@keyframes icon-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================================================
   RESPONSIVE ADJUSTMENTS
   =================================================================== */

@media (max-width: 768px) {
    .icon-container-premium {
        padding: 10px;
    }

    .icon-premium-lg {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .icon-premium-xl {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .icon-container-premium {
        padding: 8px;
    }

    .icon-premium-md {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .icon-premium-lg {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .icon-premium-xl {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}
