/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ustawienia globalne */
html {
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Nagłówek */
header {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

hr {
    border: 0;
    height: 4px;
    background: #ff9a9e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    border-radius: 2px;
}

/* Nawigacja */
nav {
    background: #fad0c4;
    padding: 10px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

nav a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a:hover {
    background: #f5b09c;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 15px;
        margin: 5px 0;
    }
}

/* Kontener główny */
.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* Panel boczny */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    color: #ff9a9e;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.sidebar ul li a:hover {
    background: #f4f4f9;
    transform: translateX(10px);
}

/* Główna treść */
.content {
    font-size: 1rem;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content h2 {
    color: #ff9a9e;
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: center;
    position: relative;
}

.content h3 {
    color: #ff9a9e;
    margin-bottom: 25px;
    font-size: 1.6rem;
    text-align: center;
    position: relative;
}

.content h4 {
    color: #ff9a9e;
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-align: center;
    position: relative;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff9a9e;
    border-radius: 2px;
}

.content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff9a9e;
    border-radius: 2px;
}

.content h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff9a9e;
    border-radius: 2px;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.content ul li {
    padding: 15px 20px;
    margin: 10px 0;
    background-color: #fff;
    border-left: 4px solid #ff9a9e;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.content ul li:hover {
    background-color: #f8e0d9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.content ul li strong {
    color: #ff9a9e;
    font-weight: 600;
}

ul li::first-letter {
    text-transform: uppercase;
}

/* Galeria */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

/* Zdjęcia obrazkowe udające Polaroid */
.gallery img {
    width: 100%;
    border: 8px solid white;
    border-bottom: 25px solid white;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: rotate(calc(var(--rot, 0deg)));
}

.gallery a:nth-child(odd) img, .gallery img:nth-child(odd) { --rot: -3deg; }
.gallery a:nth-child(even) img, .gallery img:nth-child(even) { --rot: 3deg; }

.gallery img:hover, .gallery a:hover img {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Opis galerii */
.gallery figcaption {
    font-size: 1.1rem;
    color: #555;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.gallery figcaption:hover {
    background-color: #f8e0d9;
    color: #333;
}

@media (max-width: 768px) {
    .gallery figcaption {
        font-size: 1rem;
        padding: 10px;
    }
}

/* Stopka */
footer {
    background: #fad0c4;
    color: #333;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
}

/* Animacje dodatkowe */
.cloud {
    position: absolute;
    top: 20px;
    left: -100px;
    width: 100px;
    height: 60px;
    background: rgba(255, 255, 255, 0.856);
    border-radius: 50px;
    animation: moveCloud 20s linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.856);
    border-radius: 50%;
}

.cloud::before {
    width: 50px;
    height: 50px;
    top: -20px;
    left: 10px;
}

.cloud::after {
    width: 40px;
    height: 40px;
    top: -15px;
    right: 10px;
}

@keyframes moveCloud {
    0% {
        left: -100px;
    }
    100% {
        left: 100%;
    }
}

.balloon {
    position: absolute;
    width: 80px;
    height: 100px;
    background: #ff9a9dbd;
    border-radius: 50%;
    animation: floatBalloon 5s ease-in-out infinite;
}

.balloon::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 50px;
    background: #ff9a9dbd;
    top: 100px;
    left: 35px;
}

@keyframes floatBalloon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Narzędzia dostępności */
#accessibility-toolbar {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 7px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#accessibility-toolbar button {
    background: #ff9a9e;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#accessibility-toolbar button:hover {
    background: #fad0c4;
}

#accessibility-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 20px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 10px;
    z-index: 1000;
    flex-direction: column;
    gap: 8px;
}

#accessibility-menu button {
    background: #ff9a9e;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#accessibility-menu button:hover {
    background: #fad0c4;
}

.grayscale {
    filter: grayscale(100%);
}

.high-contrast {
    background: black !important;
    color: black !important;
}

.negative-contrast {
    background: white !important;
    color: black !important;
}

.underline-links a {
    text-decoration: underline !important;
}

/* Przycisk przewijania do góry */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff9a9e;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
    z-index: 1000;
}

#scrollToTopBtn:hover {
    background: #fad0c4;
    transform: scale(1.1);
}

.pdf-container a {
    display: inline-block;
    padding: 15px 15px;
    margin: 10px 0;
    background-color: #ff9a9da4;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pdf-container a:hover {
    background-color: #f5b09c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.pdf-container a i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Responsywność dla linków PDF */
@media (max-width: 768px) {
    .pdf-container a {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
}

/* ===== STYLE SEZONOWE ===== */

/* --- STYL WIOSENNY (marzec-kwiecień) --- */
.season-spring header {
    background: linear-gradient(135deg, #66BB6A, #A5D6A7) !important;
}

.season-spring nav {
    background: #A5D6A7 !important;
}

.season-spring nav a:hover {
    background: #81C784 !important;
}

.season-spring footer {
    background: #A5D6A7 !important;
}

.season-spring hr {
    background: #66BB6A !important;
}

.season-spring .sidebar h3,
.season-spring .content h2,
.season-spring .content h3,
.season-spring .content h4 {
    color: #2E7D32 !important;
}

.season-spring .content h2::after,
.season-spring .content h3::after,
.season-spring .content h4::after {
    background-color: #2E7D32 !important;
}

.season-spring .content ul li {
    border-left-color: #4CAF50 !important;
}

.season-spring .content ul li strong {
    color: #2E7D32 !important;
}

.season-spring .content ul li:hover {
    background-color: #E8F5E9 !important;
}

.season-spring .gallery figcaption:hover {
    background-color: #E8F5E9 !important;
    color: #1b5e20 !important;
}

.season-spring .balloon {
    background: #4CAF50 !important;
}

.season-spring .balloon::before {
    background: #4CAF50 !important;
}

/* Przyciski i elementy interaktywne wiosna */
.season-spring #accessibility-toolbar button,
.season-spring #accessibility-menu button,
.season-spring #scrollToTopBtn,
.season-spring .pdf-container a {
    background: #4CAF50 !important;
}

.season-spring #accessibility-toolbar button:hover,
.season-spring #accessibility-menu button:hover,
.season-spring #scrollToTopBtn:hover,
.season-spring .pdf-container a:hover {
    background: #81C784 !important;
}

/* Różnorodność balonów wiosennych */
.season-spring .balloon:nth-child(6n) { background: #81C784 !important; }
.season-spring .balloon:nth-child(6n+1) { background: #4CAF50 !important; }
.season-spring .balloon:nth-child(6n+2) { background: #2E7D32 !important; }
.season-spring .balloon:nth-child(6n+3) { background: #388E3C !important; }
.season-spring .balloon:nth-child(6n+4) { background: #66BB6A !important; }
.season-spring .balloon:nth-child(6n+5) { background: #A5D6A7 !important; }


/* --- STYL ZIMOWY (grudzień-luty) --- */
.season-winter header {
    background: linear-gradient(135deg, #4FC3F7, #B3E5FC) !important;
}

.season-winter nav {
    background: #B3E5FC !important;
}

.season-winter nav a:hover {
    background: #81D4FA !important;
}

.season-winter footer {
    background: #B3E5FC !important;
}

.season-winter hr {
    background: #29B6F6 !important;
}

.season-winter .sidebar h3,
.season-winter .content h2,
.season-winter .content h3,
.season-winter .content h4 {
    color: #0277BD !important;
}

.season-winter .content h2::after,
.season-winter .content h3::after,
.season-winter .content h4::after {
    background-color: #0288D1 !important;
}

.season-winter .content ul li {
    border-left-color: #29B6F6 !important;
}

.season-winter .content ul li strong {
    color: #0277BD !important;
}

.season-winter .content ul li:hover {
    background-color: #E1F5FE !important;
}

.season-winter .gallery figcaption:hover {
    background-color: #E1F5FE !important;
    color: #01579b !important;
}

/* Przyciski i elementy interaktywne zima */
.season-winter #accessibility-toolbar button,
.season-winter #accessibility-menu button,
.season-winter #scrollToTopBtn,
.season-winter .pdf-container a {
    background: #29B6F6 !important;
}

.season-winter #accessibility-toolbar button:hover,
.season-winter #accessibility-menu button:hover,
.season-winter #scrollToTopBtn:hover,
.season-winter .pdf-container a:hover {
    background: #81D4FA !important;
}


/* --- STYL JESIENNY (październik-listopad) --- */
.season-autumn header {
    background: linear-gradient(135deg, #FFB74D, #FFCC80) !important;
}

.season-autumn nav {
    background: #FFCC80 !important;
}

.season-autumn nav a:hover {
    background: #FFB74D !important;
}

.season-autumn footer {
    background: #FFCC80 !important;
}

.season-autumn hr {
    background: #FF9800 !important;
}

.season-autumn .sidebar h3,
.season-autumn .content h2,
.season-autumn .content h3,
.season-autumn .content h4 {
    color: #E65100 !important;
}

.season-autumn .content h2::after,
.season-autumn .content h3::after,
.season-autumn .content h4::after {
    background-color: #EF6C00 !important;
}

.season-autumn .content ul li {
    border-left-color: #FF9800 !important;
}

.season-autumn .content ul li strong {
    color: #E65100 !important;
}

.season-autumn .content ul li:hover {
    background-color: #FFF3E0 !important;
}

.season-autumn .gallery figcaption:hover {
    background-color: #FFF3E0 !important;
    color: #bf360c !important;
}

/* Przyciski i elementy interaktywne jesień */
.season-autumn #accessibility-toolbar button,
.season-autumn #accessibility-menu button,
.season-autumn #scrollToTopBtn,
.season-autumn .pdf-container a {
    background: #FF9800 !important;
}

.season-autumn #accessibility-toolbar button:hover,
.season-autumn #accessibility-menu button:hover,
.season-autumn #scrollToTopBtn:hover,
.season-autumn .pdf-container a:hover {
    background: #FFB74D !important;
}


/* --- ELEMENTY ANIMOWANE (Liście i Śnieżynki) --- */
.leaf {
    background: transparent !important;
    width: 60px !important;
    height: 60px !important;
    position: absolute !important;
    animation: floatLeaf 8s ease-in-out infinite !important;
    font-size: 30px !important;
    text-align: center !important;
    line-height: 60px !important;
    z-index: 1;
}

.leaf::before { content: '' !important; background: none !important; }
.leaf:nth-child(6n)::before { content: '🍁' !important; }
.leaf:nth-child(6n+1)::before { content: '🍂' !important; }
.leaf:nth-child(6n+2)::before { content: '🍃' !important; }
.leaf:nth-child(6n+3)::before { content: '🌿' !important; }
.leaf:nth-child(6n+4)::before { content: '🍂' !important; }
.leaf:nth-child(6n+5)::before { content: '🍁' !important; }

.snowflake {
    background: transparent !important;
    width: 45px !important;
    height: 45px !important;
    position: absolute !important;
    animation: floatSnow 10s ease-in-out infinite !important;
    font-size: 20px !important;
    text-align: center !important;
    line-height: 45px !important;
    z-index: 1;
}

.snowflake::before {
    content: '❄' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    color: #29B6F6 !important;
}

.snowflake:nth-child(6n)::before { content: '❅' !important; }
.snowflake:nth-child(6n+1)::before { content: '❆' !important; }
.snowflake:nth-child(6n+2)::before { content: '•' !important; color: #81D4FA !important; font-size: 24px !important; }
.snowflake:nth-child(6n+3)::before { content: '❄' !important; color: #E1F5FE !important; }
.snowflake:nth-child(6n+4)::before { content: '❅' !important; color: #B3E5FC !important; }
.snowflake:nth-child(6n+5)::before { content: '❆' !important; }

@keyframes floatLeaf {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-25px) rotate(90deg) scale(1.1); }
    50% { transform: translateY(-15px) rotate(180deg) scale(0.9); }
    75% { transform: translateY(-30px) rotate(270deg) scale(1.05); }
}

@keyframes floatSnow {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.8; }
    25% { transform: translateY(-20px) rotate(90deg) scale(1.1); opacity: 1; }
    50% { transform: translateY(-40px) rotate(180deg) scale(0.9); opacity: 0.7; }
    75% { transform: translateY(-25px) rotate(270deg) scale(1.05); opacity: 0.9; }
}

/* Różnorodność balonów letnich (domyślnych/summer) */
.season-summer .balloon:nth-child(6n) { background: #ff9a9e !important; }
.season-summer .balloon:nth-child(6n+1) { background: #fad0c4 !important; }
.season-summer .balloon:nth-child(6n+2) { background: #f5b09c !important; }
.season-summer .balloon:nth-child(6n+3) { background: #ffb6c1 !important; }
.season-summer .balloon:nth-child(6n+4) { background: #ffcccb !important; }
.season-summer .balloon:nth-child(6n+5) { background: #f8e0d9 !important; }

/* Galeria: zdjęcia jako polaroid */
.gallery:has(figcaption:only-child) {
    display: block;
    text-align: center;
    margin: 30px auto -20px auto;
    position: relative;
    z-index: 10;
}

.content center {
    margin-bottom: 50px;
    perspective: 1000px;
}

.content center video {
    background: white;
    padding: 15px 15px 40px 15px; /* Magia: Padding robi za grubą ramkę Polaroida! */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: rotate(calc(var(--rot-vid, 0deg)));
    
    width: 80% !important; 
    max-width: 650px;
    height: auto !important; 
    box-sizing: border-box;
}

.content center:nth-of-type(odd) video { --rot-vid: -2deg; }
.content center:nth-of-type(even) video { --rot-vid: 2deg; }
.content center video:hover {
    transform: scale(1.03) rotate(0deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    z-index: 11;
    position: relative;
}

@media (max-width: 768px) {
    .content center video {
        width: 95% !important;
        padding: 10px 10px 25px 10px;
    }
}

