:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f4f4f4;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@supports (background-image: url('../images/tlo.webp')) {
    body {
        background-image: url('../images/tlo.webp');
    }
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #3c34a0;
    position: relative;
    overflow-x: hidden;
}
.bg-picture {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.bg-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Przyciemnienie */
    z-index: -1;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}


header nav {
    margin-top: 10px;
}

header nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--secondary-color);
}




.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(46, 204, 113, 0.9));
    color: var(--white);
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2rem;
}




.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
	background: rgba(50, 59, 74, 0.7);
}
.tile {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tile:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.tile-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.tile h3 {
    margin: 0;
    font-size: 1.5rem;
}

.tile, .sub-tile {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.tile:hover, .sub-tile:hover {
    transform: scale(1.05);
}

.sub-tile-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}



footer {
    background: rgba(0, 115, 230, 0.9);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}
h1 {
    font-size: 3rem;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    padding: 20px;
}

    
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 10px 0 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-links li {
        margin: 5px 15px;
    }

    .footer-links a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
    }

    .footer-links a:hover {
        text-decoration: underline;
    }

@media (max-width: 1200px) {
    .sub-tile-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Logowanie */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.error {
    color: red;
    margin-bottom: 10px;
}

/* Panel admina */
.admin-panel {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.logout-btn {
    float: right;
    color: white;
    background: #e74c3c;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

/* Sekcja kontaktowa */
.contact-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Formularz kontaktowy */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
}

.success-message {
    background: #2ecc71;
    color: var(--white);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--secondary-color);
}
/* Powiadomienie o nowych wiadomościach */
.notification {
    background: #e74c3c;
    color: var(--white);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Tabela wiadomości */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
	background: #fff;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: var(--primary-color);
    color: var(--white);
}

table tr.unread {
    background: #f9f9f9;
    font-weight: bold;
}

/* Przyciski */
.view-btn, .back-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.view-btn:hover, .back-btn:hover {
    background: var(--secondary-color);
}

/* Formularz odpowiedzi */
.response-form {
    margin-top: 20px;
}

.response-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 10px;
}
/* Nadpisz istniejące style .subcategories */
.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.subcategory {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.subcategory:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.subcategory-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}
/* Dodaj nowe style */
.admin-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-form .form-group {
    margin-bottom: 15px;
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.admin-form input[type="text"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Styl dla strony Polityki Prywatności */
.privacy-policy-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
    backdrop-filter: blur(10px);
}

.privacy-policy-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 8px rgba(0, 170, 255, 0.6);
}

.privacy-policy-container h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-top: 30px;
}

.privacy-policy-container p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

.privacy-policy-container ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1.2rem;
}

.privacy-policy-container ul li {
    margin-bottom: 10px;
}

.privacy-policy-container a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.privacy-policy-container a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Stylizacja sekcji ostatniej aktualizacji */
.privacy-policy-container .last-update {
    font-style: italic;
    text-align: right;
    font-size: 1rem;
    color: #666;
}
/* Poprawiona nawigacja breadcrumbs */
.breadcrumbs {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.breadcrumbs span {
    font-weight: bold;
    color: #333;
}

/* Opis kategorii */
.category-header {
    text-align: center;
	background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(46, 204, 113, 0.9));
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 2.5rem;
    color: #fff;
}

.category-description {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.5;
}

/* Styl kafelków */
.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tile {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.tile:hover {
    transform: scale(1.05);
}

.tile-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.tile h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #007bff;
}

.tile-description {
    font-size: 1rem;
    color: #444;
    margin-top: 10px;
}

/* Estetyczna sekcja dodatkowa */
.category-extra-content {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 170, 255, 0.2);
}

.category-extra-content h2 {
    color: #007bff;
}

.category-extra-content p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.5;
}
header {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffef00;
}

/* Responsywne menu */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}
.about-section {
    background: rgba(0, 0, 0, 0.7); /* Ciemne półprzezroczyste tło */
    color: white; /* Jasny kolor tekstu */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 40px auto;
    max-width: 900px; /* Ograniczona szerokość */
}

.about-section h2 {
    font-size: 2rem;
    color: #ffcc00; /* Jasny akcentowy kolor */
    text-shadow: 1px 1px 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #f1f1f1; /* Nie czysta biel, lepsza do czytania */
    max-width: 800px;
    margin: 10px auto;
}
.about-section li a {
	    font-size: 1.2rem;
    line-height: 1.6;
    color: #f1f1f1; /* Nie czysta biel, lepsza do czytania */
    max-width: 800px;
    margin: 10px auto;

}

.about-section ul {
	
    font-size: 2rem;
    color: #ffcc00; /* Jasny akcentowy kolor */
    text-shadow: 1px 1px 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}


@media (max-width: 768px) {
    .about-section {
        padding: 20px;
    }

    .about-section h2 {
        font-size: 1.8rem;
    }

    .about-section p {
        font-size: 1rem;
    }
}
.popular-section {
    margin: 40px auto;
    max-width: 900px;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.popular-section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffcc00;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.popular-section ol {
    margin-left: 20px;
}

.popular-section li {
    margin: 5px 0;
}

.popular-section a {
    color: #ffcc00;
    text-decoration: none;
}
.popular-section a:hover {
    text-decoration: underline;
}


/* Sekcja najnowszych komentarzy */
.latest-comments {
    margin: 40px auto;
    max-width: 900px;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}
/* Nagłówek sekcji */
.latest-comments h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);   /* Lub inny kolor akcentu */
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Lista komentarzy */
.latest-comments ol,
.latest-comments ul {
    list-style: none;     /* Możesz włączyć list-style, jeśli wolisz numerowaną listę */
    padding: 0;
    margin: 0;
}

/* Styl pojedynczego komentarza */
.latest-comments li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd; /* Delikatna linia oddzielająca */
}

.latest-comments li:last-child {
    border-bottom: none; /* Usuń linię dla ostatniego elementu */
}
.latest-comments a {
    color: yellow; 
}
.latest-comments a:hover{
    color: yellow; 
}
/* Nazwa użytkownika + data */
.latest-comments li strong {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Opcjonalne stylowanie oceny w formie gwiazdek */
.latest-comments .stars {
    color: #f1c40f;  /* Kolor gwiazdek, np. żółty #f1c40f */
    font-size: 1.2rem;
}

/* Możesz dodać drobne odstępy między gwiazdkami – np. przez letter-spacing */
/* .latest-comments .stars {
    letter-spacing: 2px;
} */
