/* Reset és alapok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

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

/* Fejléc */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f3b5c;
    transition: color 0.2s;
}

.logo a:hover {
    color: #1e6f9f;
}

.logo i {
    font-size: 2rem;
    color: #2c7da0;
}

.site-title h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.site-title p {
    color: #475569;
    font-size: 0.9rem;
}

/* Keresőmező */
.search-bar {
    margin: 2rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 48px;
    padding: 0.6rem 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.search-bar:focus-within {
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44,125,160,0.1);
}

.search-bar i {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

#filterInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    font-family: inherit;
    color: #0f172a;
}

#filterInput::placeholder {
    color: #94a3b8;
}

/* Kártya rács */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin: 1.5rem 0 3rem;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
    border-color: #d9e2ef;
}

.card-icon {
    font-size: 2.8rem;
    color: #2c7da0;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    word-break: break-word;
    color: #0f172a;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: #f1f5f9;
    border-radius: 40px;
    color: #1e6f9f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.card-link i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.card-link:hover {
    background-color: #e2e8f0;
    color: #0f3b5c;
}

.card-link:hover i {
    transform: translateX(4px);
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 2rem;
}

/* Lábléc */
footer {
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 1.8rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #475569;
    margin-top: 2rem;
}

/* Reszponzív */
@media (max-width: 680px) {
    .container {
        padding: 0 1rem;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .site-title h1 {
        font-size: 1.4rem;
    }
    .grid {
        gap: 1.2rem;
    }
    .card {
        padding: 1.2rem;
    }
}
