/* Main App Styles for LocalCannabisStop.com */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d1f0d 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.3), 0 0 30px rgba(0, 255, 0, 0.2);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    color: #88ff88;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.location-search {
    display: flex;
    gap: 10px;
    max-width: 600px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid #00ff00;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
}

.search-input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.3), 0 0 10px rgba(0, 255, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.btn-locate {
    padding: 12px 24px;
    font-size: 1em;
    border: 2px solid #00ff00;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.btn-locate:hover {
    background: linear-gradient(135deg, #00cc00 0%, #00ff00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.6), 0 0 20px rgba(0, 255, 0, 0.4);
}

.radius-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.radius-label {
    color: #00ff00;
    font-weight: 600;
    font-size: 1.1em;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.radius-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-radius {
    padding: 8px 16px;
    font-size: 0.95em;
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    opacity: 0.8;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.5);
}

.btn-radius:hover {
    background: rgba(0, 255, 0, 0.2);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.btn-radius.active {
    background: #00ff00;
    border-color: #00ff00;
    color: #000;
    opacity: 1;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6), 0 0 30px rgba(0, 255, 0, 0.4);
}

.btn {
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.6);
    color: #00ff00;
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.status-message {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
    border: 2px solid transparent;
}

.status-message.visible {
    display: block;
}

.status-message.error {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.status-message.success {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.status-message.loading {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border-color: #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    min-height: 600px;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

.map-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), 0 8px 25px rgba(0,0,0,0.5);
    flex: 1;
    min-height: 400px;
    border: 2px solid #00ff00;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    border: 2px solid #00ff00;
}

.sidebar {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff00;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.sidebar-header h2 {
    font-size: 1.5em;
    color: #000;
    text-shadow: none;
}

.results-list {
    flex: 1;
    overflow-y: auto;
    max-height: 700px;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
}

.placeholder {
    padding: 40px 20px;
    text-align: center;
    color: #888888;
    font-style: italic;
}

.business-card {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.business-card:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.business-card:last-child {
    border-bottom: none;
}

.business-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #00ff00;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.business-address {
    color: #aaaaaa;
    font-size: 0.95em;
    margin-bottom: 8px;
    line-height: 1.5;
}

.business-hours {
    font-size: 0.9em;
    color: #00ff00;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.business-phone {
    font-size: 0.9em;
    color: #00ff00;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.business-phone a {
    color: #00ff00;
    text-decoration: underline;
}

.business-phone a:hover {
    color: #ffffff;
}

.business-distance {
    font-size: 0.9em;
    color: #00ff00;
    font-weight: 500;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.business-type {
    display: inline-block;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    margin-top: 8px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #888888;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #888888;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
}

.leaflet-popup-content {
    margin: 12px;
    color: #e0e0e0;
}

.popover-popup {
    font-size: 0.9em !important;
}

.popup-name {
    font-size: 1.1em !important;
    font-weight: 600;
    margin-bottom: 8px;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.popup-hours {
    font-size: 0.9em;
    color: #00ff00;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.popup-phone {
    font-size: 0.9em;
    color: #00ff00;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.popup-phone a {
    color: #00ff00;
    text-decoration: underline;
}

.popup-distance {
    color: #00ff00;
    font-weight: 500;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        max-height: none;
    }
    
    .location-search {
        flex-direction: column;
    }
    
    .search-input {
        max-width: none;
        width: 100%;
    }
    
    .radius-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .radius-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn-radius {
        flex: 1;
        max-width: 150px;
        text-align: center;
    }
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        max-height: 400px;
        overflow-y: auto;
    }
}

@media (min-width: 969px) {
    .controls {
        margin-bottom: 10px;
    }
    
    .search-controls {
        margin-bottom: 10px;
    }
    
    .radius-controls {
        margin-bottom: 20px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .business-card {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #00ff00;
    }
    
    .business-card {
        border: 2px solid #00ff00;
    }
}

/* Footer Styles */
.site-footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.6);
    color: #888888;
}

.site-footer p {
    margin: 0;
    font-size: 0.95em;
}

.footer-partners {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.partner-text {
    font-size: 0.9em;
    color: #888888;
}

.partner-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
    border-bottom: 2px solid transparent;
}

.partner-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
    border-bottom: 2px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

/* Responsive footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 15px;
    }
    
    .partner-text {
        font-size: 0.85em;
    }
}
