/* Custom Styles for GeoSnap AI */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

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

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Upload area styles */
#uploadArea.drag-over {
    border-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

#uploadArea.drag-over .upload-icon {
    transform: scale(1.1);
}

/* Map container */
#map {
    border-radius: 0 0 1rem 1rem;
}

.leaflet-container {
    background: #1e293b !important;
}

.leaflet-control-zoom a {
    background: #1e293b !important;
    color: #fff !important;
    border-color: #334155 !important;
}

.leaflet-control-zoom a:hover {
    background: #334155 !important;
}

.leaflet-popup-content-wrapper {
    background: #1e293b;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-tip {
    background: #1e293b;
}

/* FAQ animations */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content.active {
    max-height: 200px;
}

.faq-arrow.rotated {
    transform: rotate(180deg);
}

/* Pricing toggle */
#billingToggle .toggle-dot {
    transition: transform 0.3s ease;
}

#billingToggle.active .toggle-dot {
    transform: translateX(24px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }
}

/* Marker pulse animation */
.marker-pulse {
    width: 20px;
    height: 20px;
    background: #6366f1;
    border-radius: 50%;
    position: relative;
}

.marker-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #6366f1;
    border-radius: 50%;
    animation: marker-pulse 2s infinite;
    opacity: 0;
}

@keyframes marker-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}
