body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5em;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.header-links {
    margin-top: 20px;
}

.header-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 0 auto;
}

#search-btn .material-icons {
    font-size: 28px;
}

.search-container {
    display: flex;
    margin-bottom: 40px;
}

#search-bar {
    flex-grow: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: box-shadow 0.3s;
}

#search-bar:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.4);
    border-color: #3498db;
}

#search-btn {
    padding: 0 20px;
    border: 1px solid #3498db;
    background-color: #3498db;
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background-color: #2980b9;
}

#search-btn .material-icons {
    font-size: 28px;
}

.location-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

#city-filter {
    flex-grow: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

#city-filter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.4);
    border-color: #3498db;
}

#detect-location-btn {
    padding: 12px 20px;
    border: 1px solid #7f8c8d;
    background-color: transparent;
    color: #2c3e50;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s, border-color 0.3s;
}

#detect-location-btn:hover {
    background-color: #ecf0f1;
    border-color: #2c3e50;
}

#detect-location-btn .material-icons {
    font-size: 22px;
}

.categories-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card .material-icons {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.category-card span {
    font-size: 1.1em;
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: #2980b9;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9em;
}

footer a:hover {
    text-decoration: underline;
}