/*
Theme Name: News Express
Theme URI: https://twojastrona.pl/news-express
Author: Janusz Borkowski
Author URI: https://nevv.pl
Description: Profesjonalny motyw WordPressa do publikacji newsów.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-express
*/


/* --- Reset --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #000000;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

/* --- Animacja fade-in sekcji --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    font-size: 0.9em;
    margin: 10px 0 20px 0;
    color: #666;
}

.breadcrumbs a {
    text-decoration: none;
    color: #1a237e;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 5px;
    color: #999;
}

/* --- Nagłówek strony --- */
header {
    background: #ffffff;
    text-align: center;
}

header img {
    width: 100%;
    height: auto;
}

/* --- Main container --- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
/* --- Kategorie --- */
.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a237e;
}

/* --- Layout kategorii --- */
.category-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: flex-start;
}

/* --- Lewa kolumna --- */
.left-column {
    width: 66.66%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.left-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.left-item img {
    width: 100%;
    height: auto;
    display: block;
    min-width: 150px;
    min-height: 150px;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.left-item:hover img {
    transform: scale(1.05);
}

.left-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 5px 10px;
    box-sizing: border-box;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* --- Prawa kolumna --- */
.right-column {
    width: 33.33%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-item {
    background: #f9f9f9;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.right-grid {
    display: grid;
    grid-template-columns: 50px auto;
    gap: 10px;
    align-items: center;
    min-height: 60px;
}

.right-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.right-item:hover .right-thumb img {
    transform: scale(1.1);
}

.right-title {
    color: #000;
    font-size: 15px;
    word-break: break-word;
}

/* --- Hover efekt na tle wpisu --- */
.right-item:hover {
    background: #e0e0e0;
}

/* --- Klawisz na dole sekcji --- */
.category-footer {
    margin-top: auto;
    text-align: center;
}

.see-all {
    background: #1a237e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.see-all:hover {
    background: #3949ab;
}

/* --- Responsywność --- */
@media (max-width: 1024px) {
    .category-content {
        flex-wrap: wrap;
    }

    .left-column, .right-column {
        width: 100%;
    }

    .right-grid {
        grid-template-columns: 40px 1fr;
    }

    .right-thumb img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .left-column {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-title {
        font-size: 16px;
        padding: 8px 10px;
        background: rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 600px) {
    .right-grid {
        grid-template-columns: 30px 1fr;
    }

    .right-thumb img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .main-container, .content-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* --- Single Post --- */

.responsive-img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    margin: 0; 
}

.single-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: #1a237e;
    text-align: left;
}

.single-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.single-thumbnail {
    text-align: left;
    margin-bottom: 30px;
}

.single-thumbnail img {
    max-width: 50%; /* <- NAJWAŻNIEJSZE!!! */
    height: auto;
    width: auto;
    border-radius: 8px;
}

.single-content {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.single-content img {
    max-width: 100%;
    height: auto;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .single-title {
        font-size: 28px;
        text-align: left;
}
}

/* --- Responsywność dla mobile --- */
@media (max-width: 768px) {
    .single-top {
        flex-direction: column;
    }
    .single-right img {
        width: 100%;
        max-width: 100%;
    }
    .single-title {
        font-size: 26px;
    }
}

/* --- Social Share Nowy Styl --- */
.social-share {
    margin-top: 40px;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a237e;
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.social-icon:hover {
    transform: scale(1.15);
    background: #3949ab;
}


/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 10px; /* zamiast 30px */
    background: #3949ab;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.3s;
}

#scrollToTop:hover {
    background: #5c6bc0;
    transform: scale(1.1);
}

/* Dynamic header scroll effect */
header.scrolled {
    padding: 10px 0;
    background: rgba(26, 35, 126, 0.95);
    transition: background 0.3s, padding 0.3s;
}


/* --- Usuwanie ograniczeń szerokości motywu --- */
.site, #page, #content, .site-content, .site-main, .container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top: 5px solid #1a237e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* Archive article ogólna ramka */
.archive-article {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.archive-grid {
    display: flex !important; /* wymuszamy flexa */
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
}

.archive-thumb {
    width: 150px;
    flex-shrink: 0;
}

.archive-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.archive-text {
    flex: 1 1 0;
    min-width: 0;
}

.archive-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a237e;
}

.archive-text h2 a {
    text-decoration: none;
    color: inherit;
}

.archive-text h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.archive-excerpt {
    font-size: 16px;
    color: #555;
}

/* Responsywność */
@media (max-width: 768px) {
    .archive-grid {
        flex-direction: column;
    }

    .archive-thumb {
        width: 100%;
    }
}

/* --- PREMIUM Przyciski --- */
.see-all, .social-icon, #scrollToTop {
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.see-all:hover {
    background: #5c6bc0;
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.3);
    transform: translateY(-2px);
}

/* --- PREMIUM Ikonki social --- */
.social-icon {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.social-icon:hover {
    background: linear-gradient(135deg, #3949ab 0%, #5c6bc0 100%);
    transform: scale(1.2);
}

/* --- PREMIUM Efekt hover na miniaturach --- */
.archive-thumb img, .left-item img, .right-thumb img {
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.archive-thumb:hover img, .left-item:hover img, .right-thumb:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- PREMIUM Efekt na artykułach --- */
.archive-article:hover, .right-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}





/* --- Mobile poprawki --- */

}

.header-logo {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
}



/* formularz kontaktowy */

.contact-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.contact-form input[type="submit"] {
    background: #1a237e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.contact-form input[type="submit"]:hover {
    background: #3949ab;
}

.contact-captcha {
    margin-bottom: 20px;
    background: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
}

.contact-captcha label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.contact-captcha input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Ogólne style dla formularzy */
form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

form input[type="text"],
form input[type="email"],
form input[type="url"],
form textarea,
form select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

form textarea {
    min-height: 120px;
}

/* Styl przycisku */
form input[type="submit"], form button[type="submit"] {
    background-color: #1a237e;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

form input[type="submit"]:hover, form button[type="submit"]:hover {
    background-color: #3949ab;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-captcha label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.contact-form input[type="submit"] {
    background: #1a237e;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form input[type="submit"]:hover {
    background: #3949ab;
}

/* --- FULL FIX Search Form --- */


.search-form input[type="submit"]:hover {
    background: #3949ab;
}


.comment-list {
    background: #fff;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.comment-list h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.comment-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.comment-list li:last-child {
    border-bottom: none;
}

/* --- Ukrycie informacji dla używkownika ale widczne dla google--- */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
}


/* -- Obsuga paginacji w Archiwe.php */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #f1f1f1;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: #1a237e;
    color: white;
    font-weight: bold;
}

.pagination .page-numbers:hover {
    background: #3949ab;
    color: white;
}


