/* Custom CSS for LocalizarIP.online - Minimalist Design */

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

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

/* Custom hover effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

/* Custom form styles */
.form-input {
    background-color: #1a1a1a;
    border: 1px solid #4a5568;
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid #2a2a2a;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Map container styles */
#map {
    border-radius: 0;
    overflow: hidden;
    background-color: #2a2a2a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    #hostingBanner .hidden {
        display: none !important;
    }
    
    #hostingBanner .flex {
        flex-direction: column;
        gap: 8px;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Error and success states */
.error-state {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1);
}

.success-state {
    border-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Results section animation */
.result-item {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.result-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hosting banner styles */
#hostingBanner {
    position: relative;
    overflow: hidden;
}

#hostingBanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

#hostingBanner:hover::before {
    left: 100%;
}

/* Flag image styles */
.flag-image {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Custom button styles */
.btn-primary {
    background: #007bff;
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: #28a745;
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Prose styles for content */
.prose h2 {
    color: white;
    margin-bottom: 1rem;
}

.prose h3 {
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.prose p {
    color: #cbd5e0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark theme adjustments */
.bg-dark {
    background-color: #1a1a1a;
}

.bg-dark-light {
    background-color: #2a2a2a;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

/* Map specific styles */
.leaflet-popup-content-wrapper {
    background: #2a2a2a;
    color: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.leaflet-popup-tip {
    background: #2a2a2a;
}

.leaflet-control-zoom a {
    background: #2a2a2a !important;
    color: white !important;
    border: 1px solid #4a5568 !important;
}

.leaflet-control-zoom a:hover {
    background: #007bff !important;
    color: white !important;
}

.leaflet-control-attribution {
    background: rgba(42, 42, 42, 0.9) !important;
    color: #cbd5e0 !important;
    border-radius: 4px !important;
}

.leaflet-control-attribution a {
    color: #007bff !important;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
    
    #map {
        height: 250px;
    }
}

/* Print styles */
@media print {
    #hostingBanner,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-dark,
    .bg-dark-light {
        background: white !important;
        color: black !important;
    }
}

