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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header .subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* Setup Section */
.setup-section, .search-section {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.setup-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.form-group input[type="text"]::placeholder {
    color: #888;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #a0a0a0;
}

.form-group small a {
    color: #64b5f6;
}

.form-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
    outline: none;
    -webkit-appearance: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e94560;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: #e94560;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background: #d63050;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.btn-link {
    background: none;
    border: none;
    color: #64b5f6;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Search Section */
.settings-summary {
    text-align: center;
    margin-bottom: 15px;
    color: #a0a0a0;
}

/* Map */
.map-container {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
}

#searchMap {
    height: 200px;
    width: 100%;
    background: #1a1a2e;
}

.leaflet-popup-content-wrapper {
    background: #1a1a2e;
    color: #fff;
    border-radius: 8px;
}

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

.concert-marker {
    font-size: 24px;
    text-align: center;
    line-height: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.9);
    color: #333;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results */
.no-results {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
}

.found-result {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card {
    background: linear-gradient(135deg, #e94560 0%, #d63050 100%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.years-ago {
    text-align: center;
    min-width: 120px;
}

.years-ago span:first-child {
    display: block;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
}

.years-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.concert-details h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.concert-details p {
    opacity: 0.9;
    margin-bottom: 4px;
}

.concert-details .distance {
    margin-top: 10px;
    font-weight: 500;
}

/* Message Box */
.message-box {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.message-box h3 {
    margin-bottom: 15px;
}

.message-box textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: #333;
    resize: vertical;
    margin-bottom: 15px;
    font-family: inherit;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
}

footer a {
    color: #64b5f6;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
    }

    .search-box {
        flex-direction: column;
    }

    .years-ago span:first-child {
        font-size: 3rem;
    }
}

/* Artist Info */
.artist-info {
    text-align: center;
    margin-bottom: 20px;
}

.artist-info h2 {
    font-size: 1.8rem;
}

/* Error message */
.error-message {
    background: rgba(233, 69, 96, 0.2);
    border: 1px solid #e94560;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

/* Autocomplete */
.autocomplete-wrapper {
    position: relative;
    flex: 1;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.autocomplete-list.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f0f0f0;
}

.autocomplete-item .artist-name {
    font-weight: 500;
}

.autocomplete-item .artist-info {
    font-size: 0.85rem;
    color: #666;
}

/* Quick suggestions */
.quick-suggestions {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-suggestions span {
    color: #a0a0a0;
}

.suggestion-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Debug info */
.debug-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #a0a0a0;
    white-space: pre-wrap;
    word-break: break-all;
    display: none;
}

.debug-info.show {
    display: block;
}
