/* ===================================
   NeuroCRM - Organic Outline Icons
   Premium, tech-bio style with glassmorphism
   =================================== */

/* Icon Container */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.icon svg {
    width: 100%;
    height: 100%;
    stroke: #a78bfa;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.3));
    transition: all 0.3s ease;
}

/* Size Variants */
.icon--sm {
    width: 32px;
    height: 32px;
}

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

.icon--xl {
    width: 80px;
    height: 80px;
}

/* Center Card Icons (larger) */
.center-icon .icon {
    width: 60px;
    height: 60px;
}

.center-icon .icon svg {
    stroke: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.4));
}

/* Vibrant Icons - More color and life */
.icon--vibrant svg {
    stroke: #c4b5fd;
    stroke-width: 1.8;
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(196, 181, 253, 0.5))
            drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

.center-icon .icon--vibrant svg {
    stroke: #e9d5ff;
    filter: drop-shadow(0 0 20px rgba(233, 213, 255, 0.6))
            drop-shadow(0 0 40px rgba(167, 139, 250, 0.4));
}

.center-card:hover .icon--vibrant svg {
    stroke: #f5f3ff;
    filter: drop-shadow(0 0 25px rgba(245, 243, 255, 0.7))
            drop-shadow(0 0 50px rgba(139, 92, 246, 0.5));
    transform: scale(1.05);
}

/* Meditation Icon - Subtle floating animation */
.icon--meditation svg {
    animation: meditationFloat 4s ease-in-out infinite;
}

@keyframes meditationFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Tab Icons (about page) */
.tab-icon .icon {
    width: 56px;
    height: 56px;
}

.tab-icon .icon svg {
    stroke: rgba(167, 139, 250, 0.9);
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.35));
}

/* Tab Icons - Vibrant version with glow */
.tab-icon .icon--vibrant svg {
    stroke: #d8b4fe;
    stroke-width: 1.8;
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(216, 180, 254, 0.5))
            drop-shadow(0 0 25px rgba(167, 139, 250, 0.4))
            drop-shadow(0 0 40px rgba(139, 92, 246, 0.25));
}

.about-tab:hover .icon--vibrant svg {
    stroke: #f3e8ff;
    filter: drop-shadow(0 0 18px rgba(243, 232, 255, 0.7))
            drop-shadow(0 0 35px rgba(167, 139, 250, 0.5))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.35));
    transform: scale(1.08);
}

/* ===================================
   Micro-Animations
   =================================== */

/* Brain - Subtle Breathing */
.icon--brain svg {
    animation: iconBreathe 4s ease-in-out infinite;
}

@keyframes iconBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Book - Lift on Hover */
.icon--book:hover svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 12px rgba(167, 139, 250, 0.5));
}

/* DNA/Microscope - Tilt on Hover */
.icon--dna:hover svg,
.icon--microscope:hover svg {
    transform: rotate(3deg);
}

/* Chart - Draw-in Animation */
.icon--chart svg path,
.icon--chart svg polyline {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: iconDrawIn 1.5s ease-out forwards;
}

@keyframes iconDrawIn {
    to { stroke-dashoffset: 0; }
}

/* Building/Lotus/Home - Glow Pulse on Hover */
.icon--building:hover svg,
.icon--lotus:hover svg,
.icon--home:hover svg {
    filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.6));
    opacity: 1;
}

/* Calendar - Subtle Pulse */
.icon--calendar svg {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* ===================================
   Reduced Motion Support
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .icon--brain svg {
        animation: none;
    }

    .icon--chart svg path,
    .icon--chart svg polyline {
        animation: none;
        stroke-dashoffset: 0;
    }

    .icon--calendar svg {
        animation: none;
    }

    .icon svg {
        transition: none;
    }
}

/* ===================================
   Hover States - General
   =================================== */
.icon:hover svg {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.5));
}

/* ===================================
   Color Variants (optional)
   =================================== */
.icon--cyan svg {
    stroke: #67e8f9;
    filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.3));
}

.icon--pink svg {
    stroke: #f9a8d4;
    filter: drop-shadow(0 0 8px rgba(249, 168, 212, 0.3));
}

.icon--white svg {
    stroke: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}
