/* Reset i font */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    /* Bardzo delikatny gradient */
    background: linear-gradient(270deg, #ffffff, #fdfdfd, #fafafa, #ffffff);
    background-size: 800% 800%;
    
    animation: softGradient 40s ease infinite;
}

/* Płynna animacja gradientu */
@keyframes softGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Nagłówek */
header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

header img {
    height: 4rem;
}

nav a, a.btn {
    color: #333;
    text-decoration: none;
    margin-left: 1.25rem;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover, a.btn:hover {
    color: #4CAF50;
}

a.no-margin {
    margin-left: 0rem;
}

/* Główna treść */
main {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    flex: 1; /* zajmuje całą pozostałą przestrzeń */
}

.blog-list h1 {
    text-align: center;
    margin-bottom: 30px;
}

.post {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.post h2 {
    margin-top: 0;
}

.post h2 a {
    text-decoration: none;
    color: #333;
}

.post h2 a:hover {
    color: #4CAF50;
}

.post .date {
    font-size: 0.9em;
    color: #777;
}

/* Stopka */
footer {
    background: #5ab2c0;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    border-top: 1px solid #ddd;
    margin-top: 2rem;
}

footer a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Section */
section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section p, section ul {
    font-size: 16px;
    line-height: 1.6;
}

section ul {
    list-style: disc;
    padding-left: 20px;
}

a.button {
    display: inline-block;
    background: linear-gradient(135deg, #4ca1af, #c4e0e5);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: box-shadow 0.3s, transform 0.3s;
}

a.button:hover {
    box-shadow: 0 8px 20px rgba(76, 161, 175, 0.4);
    transform: translateY(-4px);
}

/* Nagłówki */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4ca1af, #c4e0e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out;
}