/**
 * What County Am I In - Custom Styles
 * GitHub-inspired black and white theme
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

/* Map Container */
#map {
    z-index: 1;
    height: 100%;
}

/* Ensure map takes full height on mobile */
@media (max-width: 1023px) {
    #map {
        min-height: 400px !important;
    }
}

/* Smooth Transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Focus States for Accessibility */
input:focus,
button:focus,
a:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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

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

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Custom Button Styles */
button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Leaflet Map Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    border: 2px solid #000;
}

.leaflet-popup-content {
    font-family: inherit;
    color: #000;
}

.leaflet-popup-tip {
    border-top-color: #000;
}

.leaflet-control-zoom a {
    color: #000 !important;
    border: 1px solid #ddd !important;
}

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

/* Print Styles */
@media print {
    header, footer, button, #search-input, #search-button {
        display: none !important;
    }
    
    #map {
        page-break-inside: avoid;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}

/* Animation for location info reveal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.border-custom {
    border: 2px solid #e5e5e5;
}

/* Link Styles */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    opacity: 0.8;
}

/* Selection Color */
::selection {
    background-color: #000;
    color: #fff;
}

::-moz-selection {
    background-color: #000;
    color: #fff;
}

