:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f6fa;
    --text-color: #2c3e50;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category {
    margin-bottom: 3rem;
}

.category h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category h2 i {
    margin-right: 0.5rem;
}

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

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #666;
}

.card.hidden {
    display: none;
}

.header-content {
    position: relative;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.official-container {
    text-align: center;
    margin-bottom: 1rem;
}

.search-container {
    position: absolute;
    top: 0;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    max-width: 250px;
    width: auto;
}

#searchInput {
    width: 100%;
    min-width: 250px;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#searchButton {
    background: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#searchButton:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.official-link {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.official-link i {
    margin-right: 0.5rem;
}

.official-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.language-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

#languageToggle {
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

#languageToggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    width: 100%;
    grid-column: 1 / -1;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: white;
    color: #666;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1rem;
    }
    
    .header-content {
        padding: 0;
    }

    .official-container {
        margin-bottom: 1rem;
    }
    
    .search-container {
        position: static;
        width: 100%;
        max-width: none;
    }
}
