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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Navigation */
nav {
    background: #2c3e50;
    color: white;
    padding: 0.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s;
}

nav .logo-container:hover {
    opacity: 0.9;
}

nav .logo {
    height: 80px;
    width: 80px;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    object-fit: contain;
}

nav h1 {
    font-size: 1.8rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

nav ul a {
    font-size: 1.2rem;
    font-weight: 600;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.3s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero */
.hero {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Search Autocomplete */
.search-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    transition: color 0.3s;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.75rem;
    font-size: 1.1rem;
    font-family: inherit;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: #fff;
}

.search-input:focus ~ .search-icon {
    color: #667eea;
}

.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-height: 340px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.dropdown.open {
    display: block;
    animation: dropdownIn 0.15s ease-out;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

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

.dropdown-item:hover,
.dropdown-item.active {
    background: #f0f4ff;
}

.dropdown-item-name {
    font-weight: 500;
    color: #2c3e50;
}

.dropdown-item-name mark {
    background: rgba(102, 126, 234, 0.2);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.dropdown-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.dropdown-badge.badge-issues {
    background: #ff7675;
    color: white;
}

.dropdown-badge.badge-unknown {
    background: #ffeaa7;
    color: #856404;
}

.dropdown-badge.badge-certified {
    background: #00b894;
    color: white;
}

.dropdown-empty {
    padding: 1.25rem;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
}

.dropdown-count {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    animation: fadeIn 0.3s;
}

.result-card-inner {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card .municipality-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c3e50;
}

.result-card .last-updated {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.status-unknown {
    background: #ffeaa7;
    color: #856404;
}

.status-issues {
    background: #ff7675;
    color: white;
}

.status-certified {
    background: #00b894;
    color: white;
}

.result-card .status-detail {
    margin-top: 0;
    padding: 1rem 2rem 1.5rem;
    font-size: 0.95rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
    line-height: 1.7;
}

.result-clear {
    margin-top: 0.75rem;
    display: inline-block;
    color: #667eea;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
}

.result-clear:hover {
    text-decoration: underline;
}

/* About Page */
.about-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-content h3 {
    color: #667eea;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 2;
}

.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.disclaimer strong {
    color: #856404;
}

/* Merch Page */
.merch-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.merch-content h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.merch-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.merch-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.merch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .result-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
