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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

.controls {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

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

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

.filter-section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-label {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tag-label:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.tag-label.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tag-filter {
    margin-right: 0.5rem;
    cursor: pointer;
}

.class-filter {
    margin-right: 0.5rem;
    cursor: pointer;
}

.deployment-filter {
    margin-right: 0.5rem;
    cursor: pointer;
}

.results-info {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    font-weight: 500;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.server {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.server:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.server h2 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.server h2 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.server h2 a:hover {
    color: #5a6fd8;
}

.server .description {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.server .meta {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.server .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-results {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    margin-top: 3rem;
    display: none;
}

.no-results.show {
    display: block;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .tag-filters {
        gap: 0.5rem;
    }

    .tag-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Smooth animations */
.server {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.server:nth-child(1) { animation-delay: 0.1s; }
.server:nth-child(2) { animation-delay: 0.2s; }
.server:nth-child(3) { animation-delay: 0.3s; }
.server:nth-child(4) { animation-delay: 0.4s; }
.server:nth-child(5) { animation-delay: 0.5s; }
.server:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    max-width: 1200px;
    margin: 4rem auto; /* centers horizontally */
    padding: 2rem; 
    background: #f9fafb; 
    border-radius: 12px;
}

.form {
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
}

.form-text {
    width: 100%; 
    padding: 0.5rem;
}

.form-button {
    padding: 0.75rem 1.5rem; 
    background-color: #4f46e5; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 1rem;
}

.suggestions{
    color: rgba(255,255,255,0.9); 
    text-decoration: underline;
}

#providerFilters .tag-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-summary {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
}
