/*
Theme Name: Polski Nie Polski Theme
Author: Konrad Janczura
Description: Autorski motyw dla strony Polski Nie Polski
Version: 1.7
*/

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
    overflow-x: hidden;
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    padding-top: 155px !important;
}

.site-wrapper {
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.site-main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px 60px 20px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

.wp-caption-text, figcaption, .gallery-caption, .wp-block-image figcaption, .wp-caption {
    display: none !important;
}

/* NAGŁÓWEK PRZYPIĘTY NA SZTYWNO NA GÓRZE */
.custom-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    width: 100%;
    height: auto !important;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
    z-index: 99999;
    border-bottom: 2px solid #EFECE8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.logo-area {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo-area img {
    max-width: 145px !important;
    height: auto !important;
    display: block !important;
    mix-blend-mode: multiply;
}

.custom-nav {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.nav-row a {
    text-decoration: none !important;
    color: #000000 !important;
    font-family: 'Dekko', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    transition: color 0.3s;
    display: block !important;
}

.nav-row a:hover {
    color: #D32F2F !important;
}

/* PASEK KATEGORII (CHIPSY) */
.adsense-text-menu {
    background-color: #FCFAF7;
    border-top: 1px solid #EFECE8;
    border-bottom: 1px solid #EFECE8;
    padding: 10px 20px;
    margin: 0 0 25px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    width: 100%;
    display: block;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.adsense-text-menu::-webkit-scrollbar {
    display: none;
}

.adsense-text-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
}

.adsense-text-menu li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.adsense-text-menu li a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #EFECE8;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.adsense-text-menu li a:hover {
    color: #D32F2F;
    border-color: #D32F2F;
}

/* WYSZUKIWARKA */
.search-area {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-form-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-field {
    display: none;
    border: 2px solid #D32F2F;
    border-radius: 20px;
    padding: 6px 12px;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    width: 140px;
    font-size: 14px;
    background: #ffffff;
}

.search-icon-img {
    width: 42px;
    height: auto;
    cursor: pointer;
    mix-blend-mode: multiply;
    display: block !important;
    transition: transform 0.2s;
}

.search-icon-img:hover {
    transform: scale(1.05);
}

.hero-slogan {
    text-align: center;
    font-family: 'Dekko', cursive;
    font-size: 32px;
    color: #000000;
    margin: 10px 0 30px 0;
    line-height: 1.3;
}

/* UKŁAD TREŚCI */
.posts-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
}

.post-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #EFECE8;
    box-sizing: border-box;
    width: 100%;
}

.post-thumbnail-wrapper {
    margin: -40px -40px 25px -40px;
    max-height: 450px;
    overflow: hidden;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.post-card h1 {
    font-family: 'Dekko', cursive;
    font-size: 36px;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #222222;
}

.post-card h2 {
    font-family: 'Dekko', cursive;
    font-size: 34px;
    margin: 15px 0;
    line-height: 1.2;
}

.post-card h2 a {
    text-decoration: none;
    color: #222222;
    transition: color 0.3s;
}

.post-card h2 a:hover {
    color: #D32F2F;
}

.category-label {
    font-family: 'Open Sans', sans-serif;
    color: #D32F2F;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.post-content {
    line-height: 1.8;
    color: #444444;
    font-size: 17px;
    margin-bottom: 25px;
    font-family: 'Open Sans', sans-serif;
}

.read-more-btn {
    display: inline-block;
    color: #D32F2F;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #D32F2F;
    padding-bottom: 2px;
    transition: all 0.3s;
    font-size: 15px;
}

.read-more-btn:hover {
    background: #D32F2F;
    color: #ffffff;
    border-radius: 5px;
    padding: 2px 10px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
}

.pagination-wrapper a, .pagination-wrapper span.disabled {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    text-decoration: none;
    color: #333333;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid #EFECE8;
    background: #ffffff;
    box-sizing: border-box;
    min-height: 48px;
}

.back-home-wrapper {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #EFECE8;
    padding-top: 25px;
}

.back-home-btn {
    display: inline-block;
    color: #D32F2F;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}

#autorska-stopka {
    background-color: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    border-top: 3px solid #D32F2F;
    margin-top: auto;
}

#autorska-stopka a {
    color: #FCFAF7;
    text-decoration: none;
    font-weight: bold;
}

@media screen and (max-width: 850px) {
    body {
        padding-top: 105px !important;
    }
    .site-main-container {
        padding: 10px !important;
        width: 100% !important;
    }
    .custom-header {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .logo-area {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    .logo-area img {
        max-width: 110px !important;
    }
    .search-area {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
    }
    .search-icon-img {
        width: 30px !important;
    }
    .search-input-field {
        width: 110px;
    }
    .custom-nav {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
    }
    .nav-row {
        gap: 6px !important;
        justify-content: center !important;
    }
    .nav-row a {
        font-size: 12px !important;
    }
    .adsense-text-menu {
        margin: 0 0 15px 0;
        padding: 8px 12px;
    }
    .adsense-text-menu ul {
        max-width: none;
    }
    .kontakt-container {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .kontakt-column-info {
        padding: 20px !important;
    }
}
