/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

body {
    font-family: 'Georgia', serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #4144ab;
    color: #fff;
    padding: 20px 0;
    position: relative;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

header h1 {
    text-align: center;
    font-size: 2.5em;
    display: flex;
    align-items: center;
}

header h1 img {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 5px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e0e0f8;
}

/* Main */
main {
    padding: 20px;
    text-align: center;
}

h2 {
    color: #002864;
    margin-bottom: 20px;
    font-size: 2em;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

/* Siatka ogłoszeń */
.ogloszenia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ogloszenie-card {
    background-color: #fff;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ogloszenie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.ogloszenie-card h3 {
    color: #002864;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.ogloszenie-card p {
    font-size: 1em;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
}

.ogloszenie-card small {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.ogloszenie-card .ogloszenie-img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.czytaj-wiecej {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4144ab;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.czytaj-wiecej:hover {
    background-color: #002864;
}

/* Szczegóły ogłoszenia */
.ogloszenie-details {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.ogloszenie-details h2 {
    font-size: 1.8em;
    color: #002864;
    margin-bottom: 20px;
    text-align: left;
}

.ogloszenie-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ogloszenie-img img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.ogloszenie-text {
    flex: 1;
}

.ogloszenie-text p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
}

.ogloszenie-text ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.ogloszenie-text ol li {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

.ogloszenie-text small {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
}

/* Sekcja intencji */
.intencje-section {
    max-width: 800px;
    margin: 0 auto 40px;
}

.intencje-section h2 {
    font-size: 1.8em;
    color: #002864;
    margin-bottom: 20px;
    text-align: center;
}

/* Archiwum intencji */
#archiwum.intencje-section {
    margin-bottom: 40px;
}

.intencje-box {
    background-color: #fff;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.intencje-box p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
}

.intencje-box ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.intencje-box ol li {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

.intencje-box small {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    text-align: right;
}

/* Intencje tygodniowe */
#tydzien .intencja-card {
    background-color: #fff;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#tydzien .intencja-card h3 {
    font-size: 1.5em;
    color: #002864;
    margin-bottom: 15px;
    border-bottom: 2px solid #d0d8e8;
    padding-bottom: 5px;
}

#tydzien .intencja-item,
#archiwum .intencja-item {
    margin-bottom: 15px;
    padding: 10px;
    border-left: 3px solid #4144ab;
}

#tydzien .intencja-item p,
#archiwum .intencja-item p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

#tydzien .intencja-item ol,
#archiwum .intencja-item ol {
    margin-bottom: 10px;
    padding-left: 20px;
}

#tydzien .intencja-item ol li,
#archiwum .intencja-item ol li {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

#tydzien .intencja-item small,
#archiwum .intencja-item small {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

/* Galeria */
.galeria-kategorie,
.galeria-zdjecia {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.galeria-kategorie a.kategoria-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background-color: #f5f5f5;
    border: 2px solid #4144ab;
    border-radius: 8px;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.galeria-kategorie a.kategoria-button:hover {
    background-color: #e0e0f8;
    transform: scale(1.05);
}

.galeria-kategorie a.kategoria-button img.kategoria-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.galeria-kategorie a.kategoria-button span {
    display: block;
    font-size: 1em;
    color: #002864;
}

.galeria-zdjecia a {
    display: block;
    width: 200px;
    height: 150px;
    border-radius: 5px;
    overflow: hidden;
}

.galeria-zdjecia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #4144ab;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.galeria-zdjecia img:hover {
    transform: scale(1.05);
}

/* Ogłoszenia (starsze style) */
.ogloszenie {
    background-color: #e0e0f8;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    text-align: left;
}

.ogloszenia-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ogloszenie-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.ogloszenie h3 {
    color: #002864;
    margin-bottom: 10px;
}

.ogloszenie p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.ogloszenie small {
    color: #666;
    font-size: 0.9em;
}

.ogloszenie a {
    color: #4144ab;
    text-decoration: none;
    font-weight: bold;
}

.ogloszenie a:hover {
    text-decoration: underline;
}

.ogloszenie-box {
    max-width: 600px;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f5f5f5;
}

.ogloszenie-box h3 {
    color: #002864;
    margin-bottom: 10px;
}

.ogloszenie-box p {
    font-size: 16px;
    line-height: 1.6;
}

.ogloszenie-box small {
    display: block;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.zobacz-wiecej {
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    background-color: #4144ab;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
}

.zobacz-wiecej:hover {
    background-color: #333;
}

#dzisiaj {
    margin-bottom: 30px;
}

#tydzien .intencja {
    background-color: #ffffff;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    text-align: left;
}

#tydzien .intencja h3 {
    color: #002864;
    margin-bottom: 10px;
}

#tydzien .intencja p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

#tydzien .intencja small {
    color: #666;
    font-size: 0.9em;
}

a {
    text-decoration: none;
    color: #002864;
}

a:hover {
    text-decoration: underline;
}

/* Lightbox */
#lightbox {
    z-index: 10000;
}

/* Kontener informacji */
.informacje-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    line-height: 1.6;
}

.informacje-container h2 {
    font-size: 2em;
    color: #002864;
    margin-bottom: 20px;
}

.informacje-container p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

.intencje-dzisiaj {
    text-align: center;
    margin-top: 30px;
}

.intencje-dzisiaj h2 {
    color: #002864;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.intencje-box {
    background-color: #f1f4ff;
    border: 1px solid #d0d8e8;
    padding: 15px;
    margin: 0 auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.intencje-box p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.intencje-box small {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.intencje-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4144ab;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.intencje-link:hover {
    background-color: #333;
}

/* Link do panelu admina w stopce */
.admin-link {
    color: #4144ab;
    font-weight: bold;
    text-decoration: none;
}

.admin-link:hover {
    color: #002864;
    text-decoration: underline;
}

/* Kontener logowania */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background.jpg') no-repeat center center;
    background-size: cover;
    padding: 20px;
}

.login-container h2 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 20px;
}

.login-container .error {
    color: #ff4d4d;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 1em;
}

.login-container form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

.login-container label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.login-container input:focus {
    border-color: #4144ab;
    outline: none;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #4144ab;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #002864;
}

.login-container .back-link {
    display: inline-block;
    margin-top: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.login-container .back-link:hover {
    color: #e0e0f8;
    text-decoration: underline;
}

/* Układ główny dla strony głównej */
.main-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content {
    flex: 2;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#wazne-ogloszenie h2 {
    font-size: 1.6em;
    color: #002864;
    margin-bottom: 15px;
    text-align: center;
}

.wazne-box {
    background-color: #e0e0f8;
    border: 1px solid #d0d8e8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.wazne-box h3 {
    font-size: 1.4em;
    color: #002864;
    margin-bottom: 10px;
}

.wazne-box p {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.wazne-box small {
    font-size: 0.9em;
    color: #666;
}

.wazne-box .ogloszenie-img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Hero section dla strony głównej (obraz większy) */
.hero {
    text-align: center;
    margin-bottom: 20px;
}

.hero img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: scale(1.05);
}

/* Responsywność */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
        padding: 10px 0;
    }

    header h1 img {
        width: 40px;
        height: 40px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .ogloszenie-box, .intencja {
        max-width: 90%;
        margin: 10px auto;
        padding: 15px;
    }

    .ogloszenie-img {
        max-width: 100%;
    }

    .intencja h3 {
        font-size: 1.2em;
    }

    .intencja p {
        font-size: 1em;
    }

    .zobacz-wiecej {
        width: 90%;
        margin: 20px auto;
    }

    .main-container {
        flex-direction: column;
    }

    .content, .sidebar {
        flex: 1;
        width: 100%;
    }

    .sidebar {
        margin-top: 20px;
    }

    .ogloszenie-content {
        flex-direction: column;
        align-items: center;
    }

    .ogloszenie-img img {
        max-width: 100%;
    }

    .ogloszenie-details h2 {
        text-align: center;
    }

    .intencje-section {
        margin: 0 auto 30px;
    }

    .galeria-kategorie a.kategoria-button,
    .galeria-zdjecia a {
        width: 150px;
        height: 150px;
    }

    .galeria-kategorie a.kategoria-button img.kategoria-img {
        height: 90px;
    }

    .galeria-kategorie a.kategoria-button span {
        font-size: 0.9em;
    }

    .hero img {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .galeria-kategorie a.kategoria-button,
    .galeria-zdjecia a {
        width: 120px;
        height: 120px;
    }

    .galeria-kategorie a.kategoria-button img.kategoria-img {
        height: 70px;
    }

    .galeria-kategorie a.kategoria-button span {
        font-size: 0.8em;
    }

    .informacje-container p {
        font-size: 1em;
    }

    .intencje-box {
        padding: 10px;
    }

    .intencje-link {
        padding: 8px 16px;
    }

    .wazne-box h3 {
        font-size: 1.2em;
    }

    .wazne-box p {
        font-size: 0.9em;
    }

    .ogloszenie-card h3 {
        font-size: 1.2em;
    }

    .ogloszenie-card p {
        font-size: 0.9em;
    }

    .ogloszenie-details {
        padding: 20px;
    }

    .ogloszenie-text p, .ogloszenie-text ol li {
        font-size: 1em;
    }

    .intencje-box p, .intencje-box ol li {
        font-size: 1em;
    }

    #tydzien .intencja-card h3 {
        font-size: 1.3em;
    }

    #tydzien .intencja-item p,
    #archiwum .intencja-item p,
    #tydzien .intencja-item ol li,
    #archiwum .intencja-item ol li {
        font-size: 1em;
    }

    .login-container form {
        padding: 20px;
        max-width: 300px;
    }

    .login-container h2 {
        font-size: 1.5em;
    }

    .hero img {
        width: 250px;
        height: 250px;
    }
}

/* Baner cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
}

.cookie-banner p {
    margin: 0;
    line-height: 1.4;
}

.cookie-banner .cookie-link {
    color: #00f;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.cookie-banner .cookie-link:hover {
    color: #e0e0f8;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 5px;
}

.cookie-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-accept {
    background-color: #28a745;
    color: #fff;
}

.cookie-accept:hover {
    background-color: #218838;
}

.cookie-reject {
    background-color: #dc3545;
    color: #fff;
}

.cookie-reject:hover {
    background-color: #c82333;
}

/* Animacje dla banera */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}