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

body {
    font-family: 'Inter', sans-serif; /* Changed font to Inter for modern feel */
    line-height: 1.7; /* Increased line height for readability */
    color: #1a1a1a; /* Darker text for contrast */
    background-color: #ffffff; /* Clean white background */
    padding-top: 70px; /* Space for fixed header */
}

ul, ol {
    padding-left: 30px;
}

img {
    width: 100%;
}

table {
    text-align: left;
}

table th, table td {
    border: 2px solid gray;   
}

table td {
    margin: -2px;
}

.container {
    width: 90%;
    max-width: 1400px; /* Zmieniono maksymalną szerokość kontentu na 1400px */
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding */
}

/* Header */
#site-header {
    background-color: #ffffff; /* White header */
    color: #1a1a1a; /* Dark text */
    padding: 15px 0; /* More padding */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    transition: top 0.3s ease-in-out;
}

#site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Ensure padding in header container */
}

#site-header .logo {
    font-size: 1.2em; /* Slightly smaller logo */
    font-weight: 700;
    letter-spacing: -0.5px; /* Tighten letter spacing */
}

#site-header nav ul {
    list-style: none;
    display: flex;
}

#site-header nav ul li {
    margin-left: 30px; /* More space between links */
}

#site-header nav ul li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative; /* For underline effect */
}

#site-header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #1a1a1a; /* Underline color */
    transition: width 0.3s ease;
}

#site-header nav ul li a:hover::after {
    width: 100%;
}

/* Article Section */
.article-container {
    background-color: #ffffff; /* White background */
    padding: 40px 20px; /* More vertical padding, add horizontal padding */
    margin: 30px auto; /* More margin and center the block */
    border-radius: 0; /* Remove border-radius */
    box-shadow: none; /* Remove box-shadow */
    max-width: 1400px; /* Apply max-width directly to the article container */
    width: 90%; /* Ensure it takes up width on smaller screens */
}

article h1 {
    font-size: 2.8em; /* Larger title */
    margin-top: 15px;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.1;
    font-weight: 700;
}

article h2 {
    font-size: 1.6em;
    margin-top: 30px; /* More space above subheadings */
    margin-bottom: 10px;
    color: #1a1a1a;
    font-weight: 700;
}

article h3 {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 700;
}

article p {
    margin-bottom: 20px; /* More space between paragraphs */
    font-size: 1.1em; /* Slightly larger body text */
    line-height: 1.8; /* Increased line height */
    color: #333; /* Slightly lighter text for body */
}

.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 30px; /* More space below meta */
}

.article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto; /* More margin */
    border-radius: 0; /* Remove border-radius */
    box-shadow: none; /* Remove box-shadow */
}

figure {
    margin: 30px 0; /* More margin */
    text-align: center;
}

figcaption {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px; /* More space above caption */
}

/* Social Share */
.social-share {
    margin-top: 40px; /* More space above social share */
    padding-top: 30px; /* More padding */
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px; /* More space between icons */
}

.social-share span {
    font-weight: 500;
    margin-right: 10px;
    color: #1a1a1a;
}

.social-share a img {
    width: 28px; /* Slightly larger icons */
    height: 28px;
    vertical-align: middle;
    opacity: 0.8; /* Slightly transparent */
    transition: opacity 0.3s ease;
}

.social-share a img:hover {
    opacity: 1; /* Full opacity on hover */
}

/* Footer */
footer {
    background-color: #f8f8f8; /* Light grey footer */
    color: #666;
    text-align: center;
    padding: 30px 0; /* More padding */
    margin-top: 40px; /* More margin */
    font-size: 0.9em;
}

footer p {
    margin-bottom: 8px; /* Less space between footer paragraphs */
}

footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    #site-header {
        padding: 10px 0;
    }

    #site-header .container {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    #site-header .logo {
        font-size: 1.4em;
    }

    #site-header nav ul {
        margin-top: 10px;
        justify-content: center;
    }

    #site-header nav ul li {
        margin: 0 10px;
    }

    .container {
        width: 95%;
        max-width: 1400px; /* Zachowaj max-width również w mniejszych rozdzielczościach */
        padding: 0 15px;
    }

    .article-container {
        padding: 30px 15px; /* Adjust padding for smaller screens */
        margin: 20px auto;
        width: 95%; /* Adjust width for smaller screens */
    }

    article h1 {
        font-size: 2.2em;
    }

    article h2 {
        font-size: 1.4em;
    }

    article h3 {
        font-size: 1.2em;
    }

    article p {
        font-size: 1em;
    }

    .article-meta {
        margin-bottom: 20px;
    }

    .article-image {
        margin: 20px auto;
    }

    figure {
        margin: 20px 0;
    }

    .social-share {
        margin-top: 30px;
        padding-top: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .social-share span {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    #site-header .logo {
        font-size: 1.2em;
    }

    #site-header nav ul li {
        margin: 0 8px;
    }

    article h1 {
        font-size: 1.8em;
    }

    article h2 {
        font-size: 1.3em;
    }

    article h3 {
        font-size: 1.1em;
    }

    article p {
        font-size: 0.95em;
    }

    .social-share a img {
        width: 24px;
        height: 24px;
    }
}
