/* UMAP360 UI Enhancements - P1 Quick Wins */
/* FontAwesome icon styles + Enhanced hover animations */

/* ==================== */
/* Icon Replacement Classes */
/* ==================== */

.icon-fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: inherit;
}

/* Badge/Chip icons */
.chip-icon {
    margin-right: 6px;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Section label icons */
.section-icon {
    margin-right: 8px;
}

/* Card icons - larger display */
.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.card-icon-wrap.purple { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.05)); color: #A78BFA; }
.card-icon-wrap.pink { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(236,72,153,0.05)); color: #EC4899; }
.card-icon-wrap.green { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.05)); color: #10B981; }
.card-icon-wrap.blue { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.05)); color: #3B82F6; }
.card-icon-wrap.orange { background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(249,115,22,0.05)); color: #FB923C; }
.card-icon-wrap.teal { background: linear-gradient(135deg, rgba(45,212,191,0.2), rgba(45,212,191,0.05)); color: #2DD4BF; }
.card-icon-wrap.red { background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.05)); color: #EF4444; }

/* Large centered icons */
.icon-lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 20px;
    font-size: 28px;
}

/* Problem/Feature card icons */
.problem-icon-fa {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
}

/* ==================== */
/* Enhanced Hover Animations */
/* ==================== */

/* Button hover enhancements */
.btn, 
button,
[class*="btn-"],
.cta-button,
.nav-actions a,
.hero-actions a,
.pricing-card button,
.demo-btn,
.submit-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease, 
                background 0.3s ease,
                border-color 0.3s ease,
                color 0.2s ease !important;
}

/* Hover lift effect */
.btn:hover,
button:hover:not(:disabled),
[class*="btn-"]:hover,
.cta-button:hover,
.hero-actions a:hover {
    transform: translateY(-3px) !important;
}

/* Active press effect */
.btn:active,
button:active:not(:disabled),
[class*="btn-"]:active {
    transform: translateY(-1px) scale(0.98) !important;
}

/* Card hover animations */
.pricing-card,
.feature-card,
.case-card,
.guide-card,
.doc-card,
.testimonial-card,
.stat-card,
.company-card,
[class*="-card"] {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease,
                border-color 0.3s ease !important;
}

.pricing-card:hover,
.feature-card:hover,
.case-card:hover,
.guide-card:hover,
.doc-card:hover,
.testimonial-card:hover,
[class*="-card"]:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(139, 92, 246, 0.2) !important;
}

/* Link hover animations */
a:not(.btn):not([class*="btn-"]) {
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

/* Nav link hover */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Tab button animations */
.tab-btn,
.mode-tab,
.sector-tab,
[role="tab"] {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tab-btn:hover,
.mode-tab:hover,
.sector-tab:hover,
[role="tab"]:hover {
    transform: translateY(-2px);
}

.tab-btn.active,
.mode-tab.active,
[role="tab"][aria-selected="true"] {
    transform: translateY(-2px);
}

/* Input focus animations */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    transition: border-color 0.3s ease, 
                box-shadow 0.3s ease,
                background 0.3s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
    outline: none !important;
}

/* Badge/chip hover */
.industry-chip,
.card-badge,
.diff-badge,
[class*="-badge"],
[class*="-chip"] {
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.industry-chip:hover,
.card-badge:hover,
.diff-badge:hover {
    transform: scale(1.05);
}

/* Icon animations */
.fa, .fas, .far, .fab,
[class^="fa-"] {
    transition: transform 0.2s ease, color 0.2s ease !important;
}

button:hover .fa,
button:hover .fas,
button:hover .far,
a:hover .fa,
a:hover .fas,
a:hover .far {
    transform: scale(1.1);
}

/* Pulse animation for CTAs */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5); }
}

.btn-primary.pulse,
.cta-primary {
    animation: subtle-pulse 2s ease-in-out infinite;
}

.btn-primary.pulse:hover,
.cta-primary:hover {
    animation: none;
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.5) !important;
}

/* Gradient text shimmer */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text-animated {
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #8B5CF6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Stagger animation for list items */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grid children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from different directions */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Status indicators with FontAwesome */
.status-check { color: #10B981; }
.status-cross { color: #EF4444; }
.status-warning { color: #F59E0B; }

/* Lock icon styling */
.lock-icon {
    color: #6B7280;
    font-size: 0.85em;
    margin-right: 4px;
}

/* Location pin styling */
.location-icon {
    color: #EC4899;
    margin-right: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn:hover,
    button:hover,
    [class*="btn-"]:hover {
        transform: translateY(-2px) !important;
    }
    
    .pricing-card:hover,
    .feature-card:hover,
    [class*="-card"]:hover {
        transform: translateY(-4px) !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
