/*
Theme Name: niumic3_0
Author: dskorak
Description: Motyw newsowy z rolką (100vh mobile / 80vh desktop), AJAX, poziomym menu i AdSense.
Version: 3.1
*/

/* --- 1. RESET I BAZA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. NAGŁÓWEK --- */
.site-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    /* Zmienione na center, żeby logo było na środku, skoro menu zniknęło z góry */
    align-items: center;
    padding: 0 20px;
}

.site-logo a {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* --- 3. ROLKA (SWIPER) --- */
.hero-slider {
    width: 100%;
    height: 80vh;
    background: #000;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
}

.slide-content h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    max-width: 900px;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.slide-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- PASEK KATEGORII POD ROLKĄ --- */
.category-bar {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.category-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    /* Pozwala na poziome przewijanie menu na małych ekranach */
    white-space: nowrap;
    -ms-overflow-style: none;
    /* Ukrywa brzydki pasek przewijania */
    scrollbar-width: none;
}

.category-bar-container::-webkit-scrollbar {
    display: none;
    /* Ukrywa pasek przewijania w Chrome/Safari */
}

.category-nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.category-nav-list li a {
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.category-nav-list li a:hover {
    color: #000;
    text-decoration: underline;
}

/* --- 4. GRID POSTÓW (Dla starszych wpisów) --- */
.content-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 5px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.post-card {
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumb {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.post-thumb img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: 0.5s;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Przycisk Load More */
#load-more-container {
    text-align: center;
    margin-top: 50px;
}

.btn-load-more {
    padding: 15px 50px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-load-more:hover {
    background: #333;
}

/* --- PAGINACJA W KATEGORIACH --- */
.pagination-container {
    margin-top: 60px;
    text-align: center;
}

.pagination-container .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-container .page-numbers {
    display: inline-block;
    padding: 10px 20px;
    background: #f4f4f4;
    color: #1a1a1a;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
}

.pagination-container .page-numbers:hover {
    background: #e0e0e0;
}

.pagination-container .page-numbers.current {
    background: #000;
    color: #fff;
}

/* --- 5. SINGLE POST --- */
.article-single {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.post-thumbnail-single {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.entry-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #222;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Social Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.share-buttons span {
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
    margin-right: 10px;
}

.share-buttons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    font-size: 20px;
    transition: 0.3s;
}

.share-buttons a:hover {
    transform: translateY(-3px);
}

.share-fb {
    background: #1877F2;
}

.share-x {
    background: #000;
}

.share-wa {
    background: #25D366;
}

.share-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #bc1888);
}

/* Mini Rolka (Pod postem) */
.mini-rolka-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #000;
}

.mini-rolka-header {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mini-card h4 {
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 700;
}

.mini-card img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Reklama */
.ad-box {
    margin: 40px 0;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* --- 6. STOPKA --- */
.site-footer {
    background: #000;
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-email {
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid #fff;
    display: inline-block;
    margin-top: 10px;
}

/* --- 7. RESPONSYWNOŚĆ (MOBILE) --- */
@media (max-width: 768px) {

    .hero-slider {
        height: 100vh;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-thumb img {
        height: 250px;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }

    .article-single {
        margin-top: 100px;
    }
}

/* --- 8. RESPONSYWNE WIDEO (YOUTUBE, VIMEO) --- */
.entry-content iframe,
.entry-content object,
.entry-content embed {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- 9. INTEGRACJA X (TWITTER) --- */
.twitter-tweet {
    margin: 30px auto !important;
    width: 100% !important;
    max-width: 550px !important;
    border-radius: 12px;
    clear: both;
}

.twitter-tweet-rendered {
    margin: 30px auto !important;
}

/* --- STRZAŁKI SWIPERA (DESKTOP) --- */
.swiper-button-next,
.swiper-button-prev {
    color: rgba(255, 255, 255, 0.5) !important;
    /* Półprzezroczysty biały */
    transition: 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #fff !important;
    /* Czysty biały po najechaniu */
    transform: scale(1.1);
}

/* Ukrywamy strzałki na telefonach (bo tam nawiguje się palcem) */
@media (max-width: 768px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}