/* === RESET I USTAWIENIA GLOBALNE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    background: #F8F9FA;
    min-height: 100vh;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === NAGŁÓWEK (HEADER) === */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    color: #2C3E50;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498DB;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar-header {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar-header input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-bar-header input:focus {
    outline: none;
    border-color: #3498DB;
    width: 250px;
}

.search-btn-header {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.social-icon {
    color: #0077B5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: #005582;
    transform: translateY(-2px);
}

/* Hamburger menu - domyślnie ukryty */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2C3E50;
    transition: all 0.3s;
}

/* === SEKCJA HERO (GŁÓWNY BANER) === */
.hero {
    background: linear-gradient(rgba(15, 32, 39, 0.85), rgba(32, 58, 67, 0.85)), 
                url('/css/header.png') center/cover no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: #3498DB;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.cta-button:hover {
    background: #2980B9;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.6);
}

.search-bar {
    display: none;
}

.search-btn {
    display: none;
}

/* === GŁÓWNA TREŚĆ I ARTYKUŁY === */
.main-content {
    padding: 4rem 0;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.posts-section {
    width: 100%;
    max-width: 100%;
}

.posts-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #3498DB;
    font-weight: 300;
    text-align: center;
}

/* === GRID LAYOUT DLA ARTYKUŁÓW - 3 KOLUMNY === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto 0;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.post-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(52, 152, 219, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    aspect-ratio: 3/4;
}

.post-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.2);
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-image-wrapper {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #2C3E50;
    line-height: 1.3;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    color: #3498DB;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
    flex-shrink: 0;
}

.post-excerpt {
    color: #6C757D;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-category {
    background-color: #F8F9FA;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #6C757D;
    display: inline-block;
    font-size: 0.8rem;
}

.post-date {
    color: #6C757D;
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* === STOPKA (FOOTER) === */
footer {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #3498DB;
    font-weight: 500;
}

.footer-section p {
    color: #F8F9FA;
}

.footer-section a {
    color: #F8F9FA;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

/* === STYLE DLA PODSTRON STATYCZNYCH === */
.page-content {
    padding: 4rem 0;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
    min-height: 500px;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.1);
}

.content-section h2 {
    color: #3498DB;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section h3 {
    color: #2C3E50;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-size: 1.4rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-section ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.highlight-box {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498DB;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
}

/* === STICKY NAVIGATION === */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* === PAGINACJA === */
.pagination {
    margin: 4rem 0 2rem 0;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: #FFFFFF;
    color: #3498DB;
    text-decoration: none;
    border: 2px solid #3498DB;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: #3498DB;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pagination-link.active {
    background: #3498DB;
    color: #FFFFFF;
    pointer-events: none;
}

/* === BREADCRUMB NAD OBRAZKIEM === */
.breadcrumb-top {
    margin: 1rem 0 1rem 0;
    font-size: 0.9rem;
    color: #6C757D;
}

.breadcrumb-top a {
    color: #3498DB;
    text-decoration: none;
}

.breadcrumb-top a:hover {
    text-decoration: underline;
}

.breadcrumb-top span {
    color: #2C3E50;
    font-weight: 500;
}

/* === ARTICLE LAYOUT BEZ SIDEBAR === */
.article-layout-single {
    padding: 4rem 0;
    background: #FFFFFF;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.article-content-full {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === RELATED ARTICLES POD TREŚCIĄ === */
.related-section {
    max-width: 1200px;
    margin: 5rem auto 2rem;
    padding: 0 2rem;
}

.related-heading {
    font-size: 2rem;
    color: #3498DB;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card-grid {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(52, 152, 219, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-card-grid:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.2);
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #F8F9FA;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card-grid:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #2C3E50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.related-meta {
    font-size: 0.8rem;
    color: #6C757D;
    margin-top: auto;
}

.related-category {
    background-color: #F8F9FA;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-right: 0.5rem;
}

.related-date {
    color: #6C757D;
}

/* === FEATURED IMAGE W ARTYKULE === */
.featured-image {
    width: calc(100% + 40px);
    margin: 0 -20px 3rem -20px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 450px;
    display: block;
    object-fit: cover;
}

/* === READING TIME STYLING === */
.post-reading-time {
    color: #6C757D;
    font-size: 0.8rem;
    display: inline-block;
}

/* === MEDIA QUERIES (RESPONSYWNOŚĆ) === */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    body {
        padding-top: 70px;
    }

    .logo-image {
        height: 50px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Related articles - 2 kolumny na tablet */
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nav-left {
        gap: 2rem;
    }

    .search-bar-header input {
        width: 150px;
    }

    .search-bar-header input:focus {
        width: 180px;
    }

    .article-content-full {
        padding: 0 1.5rem;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .logo-image {
        height: 45px;
    }

    #main-menu {
        position: relative;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    }

    .nav-right {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        gap: 1rem;
    }

    .search-bar-header {
        display: none;
    }

    /* Hero Section - Mobile */
    .hero {
        padding: 3rem 0;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Articles Grid - Mobile */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .post-card {
        aspect-ratio: auto;
    }

    .post-image-wrapper {
        height: 180px;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.1rem;
    }

    /* Related Articles - 1 kolumna na mobile */
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-section {
        margin: 3rem auto 2rem;
        padding: 0 1rem;
    }

    .related-heading {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Content Sections - Mobile */
    .content-section {
        padding: 2rem 1.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    .article-content-full {
        padding: 0 1rem;
    }

    /* Posts Section */
    .posts-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Pagination */
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Featured Image */
    .featured-image {
        width: 100%;
        margin: 0 0 2rem 0;
    }
    
    .featured-image img {
        height: 250px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    footer {
        padding: 3rem 0;
    }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .logo-image {
        height: 40px;
    }

    .post-content {
        padding: 1rem;
    }

    .content-section {
        padding: 1.5rem 1rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}
/* === ARTICLE BODY FORMATTING === */
.article-body {
    line-height: 1.8;
    color: #2C3E50;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #3498DB;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.article-body h3 {
    font-size: 1.4rem;
    color: #2C3E50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

.article-body blockquote {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498DB;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
}

.article-body a {
    color: #3498DB;
    text-decoration: underline;
}

.article-body a:hover {
    color: #2980B9;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

.article-body strong {
    font-weight: 600;
    color: #2C3E50;
}

.article-body em {
    font-style: italic;
}

.article-body code {
    background: #F8F9FA;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Responsive typography */
@media (max-width: 768px) {
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .article-body ul,
    .article-body ol {
        padding-left: 1.5rem;
    }
}
/* Mobile - 768px */
@media (max-width: 768px) {
    /* ... (twoje istniejące reguły) ... */
    
    /* Więcej linii dla tytułów na mobile */
    .post-title {
        -webkit-line-clamp: 3;
        min-height: 4.5rem;
    }
    
    .related-title {
        -webkit-line-clamp: 3;
    }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
    /* ... (twoje istniejące reguły) ... */
    
    /* Jeszcze więcej miejsca dla bardzo małych ekranów */
    .post-title {
        -webkit-line-clamp: 4;
        min-height: auto;
    }
}