/* -------------------------------------------------------------------- */
/*  PODSTAWA STRONY                                                     */
/* -------------------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Georgia', serif;
    color: #333;
}

body {
    background-color: #fdf6e3;
    text-align: center;
}

/* -------------------------------------------------------------------- */
/*  NAGŁÓWEK                                                            */
/* -------------------------------------------------------------------- */
.page-title {
    margin: 40px 0 20px;
    font-size: 3.5em;
    font-weight: normal;
    color: #555;
}

/* -------------------------------------------------------------------- */
/*  CYTAT I KONTROLKI                                                   */
/* -------------------------------------------------------------------- */
.overlay {
    padding: 20px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-box {
    background: rgba(0, 0, 0, .02);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.05);
    max-width: 700px;
    width: 100%;
    margin-top: 20px;
    transition: all .3s ease;
}

.quote-box.animate { animation: fadeSlideIn .6s ease forwards; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

blockquote {
    font-size: 2.2em;
    line-height: 1.5;
    margin: 0 0 10px;
    color: #222;
}
footer {
    font-size: 1em;
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

button {
    margin-top: 20px;
    background: #333;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color .2s;
}
button:hover {
    background: #555;
}

/* Usunięto .toggle-panel-button */

.bottom-controls {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 700px;
    width: 100%;
}

.search-form, .category-form {
    margin: 5px 0;
    display: flex;
    gap: 10px;
}

.search-form input,
.category-form select {
    padding: 12px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-form button {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    margin-top: 0; /* Reset margin */
}

/* -------------------------------------------------------------------- */
/*  MEDIA QUERIES                                                       */
/* -------------------------------------------------------------------- */

@media (max-width: 600px) {
    body       { font-size: 16px; line-height: 1.4; }
    .page-title { font-size: 2.5em; margin-top: 20px; }
    blockquote { font-size: 1.4em; }
    footer     { font-size: .95em; }
    .quote-box { padding: 20px; margin-top: 14px; }
    button     { padding: 16px 26px; font-size: 1.1em; }
    .overlay { padding: 10px; }

    .bottom-controls {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }
    .search-form, .category-form {
        flex-direction: column;
        width: 100%;
    }
    .search-form input, .category-form select, .search-form button {
        width: 100%;
    }
}
