* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #28a745;
}

.hero {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
}

.cookie-banner button {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-banner button:hover {
    background: #218838;
}

.content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f4;
    min-height: 100vh;
    color: #333;
    font-size: 14px;
}

header {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
}

.category-tabs {
    max-width: 600px;
    margin: 1rem auto 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.6rem 1.2rem;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.category-btn.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-btn {
        width: 200px;
        text-align: center;
    }
}

.search-container {
    max-width: 600px;
    margin: 1rem auto;
}


#searchInput {
    width: 100%;
    padding: 0.7rem;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}

.links-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.link-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    animation: fadeInUp 0.6s ease forwards;
}


.link-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.link-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.category-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.category-badge::before {
    content: '🏷️ ';
}


.link-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.link-card a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.link-card a:hover {
    background: #218838;
}

.hidden {
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.footer a {
    color: #28a745;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .search-container {
        padding: 0 1rem;
    }

    .links-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}
