/* Neoxenia Custom Styles */

:root {
    --primary: #0066CC;
    --primary-hover: #0052A3;
    --primary-light: #E7F3FF;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --dark: #212529;
    --light: #F8F9FA;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6C757D;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    transition: all 0.3s ease;
    z-index: 1000;
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    min-height: 600px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
}

.search-widget {
    max-width: 600px;
}

.search-widget input {
    flex: 1;
}

.search-widget input:focus {
    outline: none;
    box-shadow: none;
}

/* Search Autocomplete Dropdown */
.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-autocomplete-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

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

.autocomplete-content {
    padding: 8px;
}

.autocomplete-loading,
.autocomplete-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: #6c757d;
}

.autocomplete-group {
    margin-bottom: 8px;
}

.autocomplete-group:last-child {
    margin-bottom: 0;
}

.autocomplete-group-header {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f8f9fa;
}

.autocomplete-item-left {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.autocomplete-item-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.autocomplete-item-icon {
    font-size: 20px;
    color: #0066CC;
}

.autocomplete-item-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-item-title {
    font-weight: 500;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item-subtitle {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item-arrow {
    flex-shrink: 0;
    color: #dee2e6;
    margin-left: 8px;
    transition: transform 0.15s ease;
}

.autocomplete-item:hover .autocomplete-item-arrow {
    transform: translateX(3px);
    color: #0066CC;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.category-icon {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Step Cards */
.step-card {
    position: relative;
}

.step-icon {
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.05);
}

/* Provider Cards */
.provider-card {
    transition: all 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Trust Cards */
.trust-card {
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

/* Testimonial Cards */
.testimonial-card {
    border-left: 4px solid var(--primary);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background-color: #212529;
}

.footer a {
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--primary) !important;
}

.social-links a {
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .search-widget {
        /* Keep horizontal layout on mobile */
    }

    .search-widget .btn {
        /* Keep button compact */
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.bg-gradient-light {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F8F9FA 100%);
}

.text-primary-hover:hover {
    color: var(--primary) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Quick Stats Banner */
.quick-stats-banner {
    margin-top: -60px;
    position: relative;
    z-index: 100;
}

.stats-banner-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* Pulse Animation for Available Now */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid #28A745;
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.pulse-dot {
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

/* Warm Accent Color */
:root {
    --accent: #FF6B35;
    --accent-hover: #E55A2B;
    --accent-light: #FFF4F0;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.pillar-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.pillar-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1) rotate(5deg);
}

.pillar-icon i {
    font-size: 2rem;
}

.pillar-card h4 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.pillar-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Hero Image - Static (no animation) */
.hero-image img {
    /* Animation removed per user request */
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section transitions for scroll */
section {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* Providers Carousel Styles */
.providers-carousel-wrapper {
    position: relative;
}

/* Mobile Carousel Improvements */
#providersCarouselMobile .provider-card {
    max-width: 320px;
    margin: 0 auto;
}

#providersCarouselMobile .card-img-top {
    height: 180px !important;
    object-fit: cover;
}

#providersCarouselMobile .card-body {
    padding: 1rem;
}

#providersCarouselMobile .card-body h5 {
    font-size: 1rem;
}

#providersCarouselMobile .card-body p {
    font-size: 0.85rem;
}

#providersCarouselMobile .carousel-control-prev,
#providersCarouselMobile .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

#providersCarouselMobile .carousel-control-prev {
    left: 5px;
}

#providersCarouselMobile .carousel-control-next {
    right: 5px;
}

#providersCarouselMobile .carousel-control-prev-icon,
#providersCarouselMobile .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Desktop Carousel - Fix for last slide with fewer items */
#providersCarouselDesktop .carousel-item .row {
    justify-content: center;
}

#providersCarouselDesktop .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Mobile carousel indicators */
#providersCarouselMobile .carousel-indicators {
    margin-bottom: 0;
}

#providersCarouselMobile .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dee2e6;
    border: none;
    margin: 0 4px;
}

#providersCarouselMobile .carousel-indicators button.active {
    background-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    #providersCarouselMobile .provider-card {
        max-width: 280px;
    }

    #providersCarouselMobile .card-img-top {
        height: 160px !important;
    }

    #providersCarouselMobile .card-body {
        padding: 0.875rem;
    }

    #providersCarouselMobile .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #providersCarouselDesktop .card-img-top {
        height: 200px;
    }
}

/* Auth Modals - Centered on Screen */
.auth-modal .modal-dialog {
    max-width: 420px;
    margin: 1.75rem auto;
}

.auth-modal .modal-content {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: none;
}

.auth-modal .modal-header.bg-primary {
    border-radius: 15px 15px 0 0;
    padding: 1.25rem 1.5rem;
}

.auth-modal .modal-body {
    padding: 1.5rem;
}

.modal .modal-header.bg-primary {
    border-radius: 15px 15px 0 0;
}

@media (max-width: 576px) {
    .auth-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Password Strength Indicator */
.password-strength {
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-bar.strength-weak {
    background: #dc3545;
    width: 33%;
}

.password-strength-bar.strength-medium {
    background: #ffc107;
    width: 66%;
}

.password-strength-bar.strength-strong {
    background: #28a745;
    width: 100%;
}

/* Modal Button Loading State */
.btn .btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline;
}

/* Auth Modal Alerts */
#loginAlertContainer .alert,
#signupAlertContainer .alert {
    margin-bottom: 1rem;
}

/* Modal form inputs focus */
.modal .form-control:focus {
    border-color: #0066CC;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}
