/* Enhanced CSS for Professional Blue & White Theme */

/* CSS Variables for consistent theming */
:root {
    /* Primary blue colors */
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondar/* Mobile Navigation Menu - Pure White Background */
#mobile-nav {
    position: fixed;
    top: 64px; /* Start below header */
    left: 0;
    right: 0;
    bottom: 0; /* Extend to bottom of viewport */
    background: #ffffff;
    backdrop-filter: none;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999; /* Very high z-index to ensure it's above everything */
    overflow-y: auto; /* Allow scrolling if content is too long */
    width: 100vw; /* Full viewport width */
    height: calc(100vh - 64px); /* Full height minus header */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}  --secondary-300: #cbd5e1;
    --secondary-400: #94a3b8;
    --secondary-500: #64748b;
}

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Global SVG and Icon Styles */
.bg-primary svg, 
[class*="bg-primary"] svg,
.bg-primary-500 svg,
.bg-primary-600 svg,
.bg-primary-700 svg,
.bg-primary-800 svg {
    color: white !important;
    fill: none !important;
    stroke: white !important;
}

/* Fix for icon containers */
[class*="bg-primary"] {
    background-color: #3B82F6 !important;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.gradient-shift {
    background: linear-gradient(-45deg, var(--primary-500), var(--primary-800), var(--primary-600), var(--primary-700));
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* Hide scrollbar for breadcrumb */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Enhanced Loading States */
.loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--secondary-200);
    border-top: 3px solid var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Loading screen styles */
.loading.fixed {
    display: none;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 50%, var(--primary-50) 100%);
    opacity: 1;
    pointer-events: all;
}

.loading.fixed.active {
    display: flex;
    animation: loadingFadeIn 0.5s ease-in-out;
}

@keyframes loadingFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.loading-progress {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600), var(--primary-700));
}

/* Enhanced Card Effects */
.card-hover {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.job-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-50) 100%);
    border: 1px solid var(--primary-100);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.12);
    border-color: var(--primary-200);
}

/* Enhanced Header Styles */
#main-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark mode header styles */
.dark #main-header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark #main-header.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Logo enhancements */
.logo-container {
    position: relative;
    overflow: hidden;
}

.logo-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed, #2563eb);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(4px);
}

.group:hover .logo-glow {
    opacity: 0.3;
}

/* Logo styling enhancements */
.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

/* Logo fallback styling */
.logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 0.75rem;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    align-items: center;
    justify-content: center;
}

/* Show fallback if image fails to load */
.logo-container img:not([src]),
.logo-container img[src=""] {
    display: none;
}

.logo-container img:not([src]) + .logo-fallback,
.logo-container img[src=""] + .logo-fallback {
    display: flex;
}

/* Navigation pill enhancements */
.nav-pill {
    position: relative;
    overflow: hidden;
}

.nav-pill::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 ease;
}

.nav-pill:hover::before {
    left: 100%;
}

/* Search overlay enhancements */
#search-overlay .transform {
    transform-origin: top center;
}

/* Button hover effects */
.btn-hover-lift {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover-lift:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Notification pulse animation */
@keyframes pulse-notification {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-notification {
    animation: pulse-notification 2s infinite;
}

/* Dark mode text colors */
.dark .text-gray-700 {
    color: #d1d5db;
}

.dark .text-gray-600 {
    color: #9ca3af;
}

.dark .text-gray-500 {
    color: #6b7280;
}

.dark .bg-gray-50 {
    background-color: #374151;
}

.dark .bg-gray-100 {
    background-color: #4b5563;
}

.dark .border-gray-200 {
    border-color: #4b5563;
}

/* Micro-interactions */
.scale-hover {
    transition: transform 0.2s ease;
}

.scale-hover:hover {
    transform: scale(1.02);
}

.rotate-hover {
    transition: transform 0.3s ease;
}

.rotate-hover:hover {
    transform: rotate(5deg);
}

/* Focus states */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom properties for theming */
:root {
    --header-height: 4rem;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: rgba(0, 0, 0, 0.08);
    --nav-active-bg: linear-gradient(135deg, #3b82f6, #2563eb);
    --nav-hover-bg: rgba(255, 255, 255, 0.8);
    --search-bg: rgba(255, 255, 255, 0.9);
}

.dark {
    --header-bg: rgba(17, 24, 39, 0.95);
    --header-border: rgba(255, 255, 255, 0.1);
    --nav-hover-bg: rgba(55, 65, 81, 0.8);
    --search-bg: rgba(31, 41, 55, 0.9);
}

/* Ensure featured job grid containers are displayed correctly */
#featured-jobs-component .grid {
    display: grid !important; /* Ensure display is grid */
    visibility: visible !important; /* Ensure visibility */
    opacity: 1 !important; /* Ensure opacity is not zero */
}

#featured-jobs-component .grid > div {
     /* Styles for individual job cards within the grid */
     display: block !important; /* Ensure job cards are block elements */
     visibility: visible !important; /* Ensure job cards are visible */
     opacity: 1 !important; /* Ensure job card opacity is not zero */
}

/* Enhanced focus states for accessibility */
a:focus, button:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Force the hero container to have a white background */
#hero-container, #hero-component {
    background-color: #FFFFFF !important;
}

/* Ensure section within the hero component has a white background */
#hero-component section {
    background-color: #FFFFFF !important;
}

/* Responsive navigation adjustments */
@media (max-width: 1024px) {
    body {
        padding-top: var(--header-height);
    }
}

/* Search overlay responsive design */
@media (max-width: 640px) {
    #search-overlay .w-full {
        margin: 1rem;
    }
}

/* Performance optimizations */
#main-header,
#search-overlay {
    contain: layout style paint;
}

/* Fix for blue colors appearing as white - apply !important to override any competing styles */
.text-blue-500, .text-primary-500, .text-indigo-500, .text-indigo-600 {
    color: var(--primary-500) !important;
}

.bg-blue-500, .bg-primary-500, .bg-indigo-500, .bg-indigo-600 {
    background-color: var(--primary-500) !important;
}

.border-blue-500, .border-primary-500, .border-indigo-500, .border-indigo-600 {
    border-color: var(--primary-500) !important;
}

.from-blue-500, .from-indigo-500, .from-indigo-600 {
    --tw-gradient-from: var(--primary-500) !important;
}

.to-blue-500, .to-indigo-500, .to-indigo-600 {
    --tw-gradient-to: var(--primary-500) !important;
}

/* Ensure buttons with gradients show blue correctly */
.bg-gradient-to-r, .bg-gradient-to-br, .bg-gradient-to-bl {
    background-size: 100% 100% !important;
    background-image: linear-gradient(to right, var(--primary-500), var(--primary-700)) !important;
}

/* Fix blue text in links and buttons */
a, button {
    color: inherit;
}

a:hover {
    color: var(--primary-600);
}

/* Mobile Navigation Styles */

/* Mobile Menu Button Animations */
.mobile-menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
#mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px; /* Header height */
    bottom: 0; /* Extend to bottom of screen */
    background: #ffffff;
    backdrop-filter: none;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 9999; /* Very high z-index to ensure it's above everything */
    overflow-y: auto; /* Allow scrolling if content is too long */
}

#mobile-nav.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Full Screen Overlay */
#mobile-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-nav.show::before {
    opacity: 1;
}

/* Ensure mobile navigation content is properly styled */
#mobile-nav .flex {
    min-height: 100%;
}

#mobile-nav-items {
    padding-top: 1rem;
}

/* Clean Responsive Mobile Navigation - Pure White */
@media (max-width: 768px) {
    #mobile-nav {
        height: calc(100vh - 64px); /* Full viewport height minus header */
        min-height: calc(100vh - 64px);
        width: 100vw; /* Full viewport width */
        left: 0;
        right: 0;
        background: #ffffff;
    }
    
    .mobile-nav-item {
        padding: 1.25rem 1.5rem;
        font-size: 1.0625rem;
        background: #ffffff;
    }
    
    .mobile-nav-item svg {
        width: 1.375rem;
        height: 1.375rem;
    }
    
    #mobile-login-btn {
        padding: 1.125rem 1.5rem;
        font-size: 1.0625rem;
    }
}

/* Clean Minimal Mobile Navigation Items - Pure White Background */
.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 1.125rem 1.5rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #374151;
    background: #ffffff;
    border: 1px solid transparent;
    letter-spacing: -0.01em;
    position: relative;
}

.mobile-nav-item:not(.active) {
    color: #374151;
}

.mobile-nav-item:not(.active):hover {
    background: #f8fafc;
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.mobile-nav-item.active {
    background: rgba(59, 130, 246, 1);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mobile-nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mobile-nav-item:hover svg {
    transform: scale(1.05);
}

.mobile-nav-item.active svg {
    color: white;
}

/* Mobile Navigation Animations */
.mobile-nav-item {
    opacity: 0;
    transform: translateY(-10px);
    animation: mobileNavItemSlideIn 0.3s ease-out forwards;
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }

@keyframes mobileNavItemSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean Mobile Navigation Overlay - Minimal */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 9998; /* Just below mobile nav */
    top: 64px; /* Below header */
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Smooth scrolling when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Enhanced hover effects for mobile navigation */
.mobile-nav-item:hover:not(.active) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
}

/* Focus states for accessibility */
#mobile-menu-btn:focus,
#mobile-search-btn:focus,
#mobile-login-btn:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.mobile-nav-item:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Loading state for mobile menu */
#mobile-nav.loading {
    pointer-events: none;
}

#mobile-nav.loading .mobile-nav-item {
    opacity: 0.5;
}

/* Clean Hamburger Menu Button - No Background/Border */
.hamburger-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: currentColor;
    border-radius: 1.25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-line:nth-child(2) {
    margin: 3.5px 0;
}

/* Clean Mobile Menu Button - No Background/Border */
#mobile-menu-btn {
    position: relative;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e40af;
}

#mobile-menu-btn:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

#mobile-menu-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

#mobile-menu-btn:active {
    transform: translateY(0);
}

/* Clean Mobile Search Button - No Background/Border */
#mobile-search-btn {
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e40af;
}

#mobile-search-btn:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

/* Ensure mobile navigation is above other content */
#mobile-nav {
    z-index: 40;
}

/* Mobile Header Height Consistency */
@media (max-width: 768px) {
    #main-header {
        height: 64px;
    }
    
    #main-header .flex {
        height: 64px;
    }
}

/* Mobile Navigation Container Improvements */
#mobile-nav .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Mobile Navigation Smooth Scrolling */
#mobile-nav-items {
    scroll-behavior: smooth;
}

/* Better mobile navigation visibility */
#mobile-nav {
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Logo responsive adjustments */
@media (max-width: 640px) {
    .logo-container .w-10 {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .logo-container + div h1 {
        font-size: 1.125rem;
    }
    
    .logo-container + div p {
        font-size: 0.625rem;
    }
}

/* Clean Minimal Mobile Login Button */
#mobile-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: white;
    background: #3b82f6;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#mobile-login-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#mobile-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

#mobile-login-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
}

/* Clean Mobile Navigation Container */
#mobile-nav .flex-1 {
    padding: 2rem 1.5rem 2rem;
}

#mobile-nav .border-t {
    border-color: rgba(229, 229, 229, 0.3);
    margin-top: 1rem;
    padding-top: 1.5rem;
}

/* Mobile Navigation Items Container - Clean Spacing */
#mobile-nav-items {
    gap: 0.25rem;
    padding-top: 0.5rem;
}

/* Minimal Animation for Mobile Navigation Items */
.mobile-nav-item {
    opacity: 0;
    transform: translateY(-8px);
    animation: mobileNavItemSlideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes mobileNavItemSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}