/* Mobile-First Enhancements for Aether Canvas Strategy */

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.pulse-button {
    animation: pulse 2s infinite;
}

/* Hide scrollbar for mobile tabs */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Mobile-friendly tab improvements */
.tab-button {
    transition: all 0.3s ease;
    border-bottom-color: transparent;
}

.tab-button.active {
    border-bottom-color: #3B82F6;
    color: #3B82F6;
}

.tab-button:hover {
    color: #93C5FD;
    border-bottom-color: #93C5FD;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .kpi-card {
        padding: 1rem !important;
    }
    
    .chart-container {
        padding: 1rem !important;
    }
    
    /* Improve touch targets on mobile */
    .tab-button {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    /* Better spacing for mobile */
    .grid {
        gap: 0.75rem;
    }
}

/* Interactive hover effects for engagement */
.kpi-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Smooth animations for better UX */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced mobile navigation */
.mobile-nav-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Progress indicators */
.progress-ring {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Interactive elements feedback */
button:active, .btn:active {
    transform: scale(0.98);
}

/* Better focus indicators for accessibility */
button:focus, .btn:focus, .tab-button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Mobile sticky elements */
@media (max-width: 768px) {
    .sticky-mobile {
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(10px);
    }
}

/* Tooltip styles for better onboarding */
.tooltip-trigger {
    position: relative;
    cursor: help;
    transition: color 0.2s ease;
}

.tooltip-trigger:hover {
    color: #3B82F6;
}

.tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: #F9FAFB;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 200px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1F2937;
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
}

/* Success indicators */
.field-success {
    border-color: #10B981 !important;
    background-color: rgba(16, 185, 129, 0.05);
}

/* Progress celebration */
@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.celebrate {
    animation: celebrate 0.3s ease;
}