* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    color: #333;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-section {
    background: #fffaf5;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

#addressInput {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#addressInput:focus {
    outline: none;
    border-color: #ff7e5f;
}

#distanceSelect {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    min-width: 120px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff6a88 0%, #ff99ac 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 154, 172, 0.4);
}

.results-section {
    background: #fffaf5;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.results-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
}

.results-container {
    display: grid;
    gap: 20px;
}

.food-item {
    background: #fff7f0;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #ff7e5f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.25);
}

.food-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.food-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.food-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars {
    color: #ffc107;
    font-size: 18px;
}

.rating-score {
    font-weight: 600;
    color: #ff7e5f;
}

.food-cost {
    margin-left: 8px;
    background: #fff3cd;
    color: #b7791f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.food-distance {
    color: #8a5a44;
    font-size: 14px;
}

.food-address {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.food-tag {
    background: #ffe0cc;
    color: #c05a00;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 40px;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #333;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    header h1 {
        font-size: 2rem;
    }
}
