/* Ogólne ustawienia */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Nagłówek */
header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #0077ff, #00c3ff);
    color: white;
    padding: 20px 0;
    border-radius: 10px;
}

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

/* Nawigacja */
nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Pasek wyszukiwania */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 10px;
    background: linear-gradient(135deg, #0077ff, #00c3ff);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-bar input[type="text"] {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    width: 70%;
    max-width: 400px;
    margin-right: 10px;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar input[type="text"]::placeholder {
    color: #bbb;
}

.search-bar button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: #0077ff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar button:hover {
    background-color: #0056b3;
    color: white;
}

/* Artykuły */
section#figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

article {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

article h2 {
    color: #0077ff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

article img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

article p {
    font-size: 1rem;
    margin: 10px 0;
}

article button {
    background-color: #0077ff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

article button:hover {
    background-color: #0056b3;
}

/* Media Queries */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    article img {
        max-width: 150px;
    }

    article button {
        font-size: 0.9rem;
    }
}
