/* Research Navigation Enhancement CSS */

/* Global Research Theme Variables */
:root {
    --research-primary: #3b82f6;
    --research-secondary: #1e40af;
    --research-accent: #22c55e;
    --research-warning: #f59e0b;
    --research-danger: #ef4444;
    --research-dark: #1f2937;
    --research-light: #f8fafc;
    --research-border: #e5e7eb;
    --research-shadow: rgba(0, 0, 0, 0.1);
    --research-gradient: linear-gradient(135deg, var(--research-primary), var(--research-secondary));
}

/* Enhanced Typography for Research */
.research-header {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.research-header h1,
.research-header h2,
.research-header h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.research-header p {
    line-height: 1.6;
}

/* Research Badge Animations */
.research-badge {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
}

/* Enhanced Hover Effects */
.quick-link,
.social-icon,
.nav-link {
    position: relative;
    overflow: hidden;
}

.quick-link::before,
.social-icon::before,
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quick-link:hover::before,
.social-icon:hover::before,
.nav-link:hover::before {
    left: 100%;
}

/* Research Progress Indicator */
.research-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--research-gradient);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Enhanced Search with Research Context */
.search-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 45px center;
    background-size: 20px;
}

/* Research Category Indicators */
.nav-item[data-category="research"] .nav-link {
    border-left: 3px solid var(--research-primary);
    padding-left: 12px;
}

.nav-item[data-category="team"] .nav-link {
    border-left: 3px solid var(--research-accent);
    padding-left: 12px;
}

.nav-item[data-category="data"] .nav-link {
    border-left: 3px solid var(--research-warning);
    padding-left: 12px;
}

/* Enhanced Dropdown with Research Icons */
.dropdown-item {
    position: relative;
    padding-left: 40px;
}

.dropdown-item i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    text-align: center;
}

/* Research Notification Badge */
.research-notification {
    position: relative;
}

.research-notification::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--research-danger);
    border-radius: 50%;
    animation: notification-pulse 2s infinite;
}

@keyframes notification-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Mobile Navigation */
.mobile-nav-list {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin: 10px;
    overflow: hidden;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    padding: 16px 20px;
    background: transparent;
    transition: all 0.3s ease;
}

.mobile-nav-list a:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(8px);
}

/* Research Data Visualization Hints */
.nav-link[href*="data"],
.nav-link[href*="research"],
.nav-link[href*="analytics"] {
    position: relative;
}

.nav-link[href*="data"]::after,
.nav-link[href*="research"]::after,
.nav-link[href*="analytics"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--research-primary), var(--research-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link[href*="data"]:hover::after,
.nav-link[href*="research"]:hover::after,
.nav-link[href*="analytics"]:hover::after {
    transform: scaleX(1);
}

/* Accessibility Enhancements */
.nav-link:focus,
.quick-link:focus,
.search-input:focus {
    outline: 2px solid var(--research-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .research-header {
        border: 2px solid var(--research-dark);
    }
    
    .nav-link {
        border: 1px solid var(--research-border);
        margin: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .research-badge,
    .research-notification::after,
    .nav-link::before {
        animation: none;
    }
    
    .nav-link,
    .quick-link,
    .social-icon {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .research-header {
        background: white !important;
        box-shadow: none !important;
    }
    
    .research-banner,
    .quick-links,
    .header-social,
    .search-container,
    .login-btn {
        display: none !important;
    }
    
    .nav-link {
        color: black !important;
    }
}

/* Research Theme Customization */
.research-theme-blue {
    --research-primary: #2563eb;
    --research-secondary: #1d4ed8;
}

.research-theme-green {
    --research-primary: #059669;
    --research-secondary: #047857;
}

.research-theme-purple {
    --research-primary: #7c3aed;
    --research-secondary: #6d28d9;
}

/* Loading States */
.nav-link.loading {
    position: relative;
    color: transparent !important;
}

.nav-link.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--research-border);
    border-top: 2px solid var(--research-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Research Status Indicators */
.research-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
}

.research-status.active {
    background: var(--research-accent);
    box-shadow: 0 0 6px var(--research-accent);
}

.research-status.pending {
    background: var(--research-warning);
    box-shadow: 0 0 6px var(--research-warning);
}

.research-status.inactive {
    background: var(--research-border);
}

/* Enhanced Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--research-dark);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}
