/* GLOBAL CSS - Generowane ze starego complete-style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* =============================================
   UTILITIES
   ============================================= */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   ACCESSIBILITY - SKIP LINK
   ============================================= */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    padding: 1em;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    overflow: visible;
}

/* =============================================
   SCROLL TO TOP
   ============================================= */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* =============================================
   TOP BAR
   ============================================= */

.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--accent);
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a:hover {
    color: var(--accent);
}

.facebook-link {
    background: var(--facebook);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.facebook-link:hover {
    background: var(--facebook);
    color: white !important;
}

/* =============================================
   HEADER
   ============================================= */

.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 25px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(240, 173, 78, 0.4);
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.logo-text h1 span {
    color: var(--accent);
}

.nearby-towns {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nearby-towns .town {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    transition: all 0.3s;
    cursor: pointer;
}

.nearby-towns .town:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.logo-text p {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search.nav-menu li {
    position: relative;
    list-style: none !important;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 300px;
    padding: 14px 45px 14px 20px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    width: 350px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.search-box button:hover {
    background: var(--accent-hover);
    transform: translateY(-50%) scale(1.1);
}

.header-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(240, 173, 78, 0.4);
}

.header-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 173, 78, 0.5);
}

/* =============================================
   NAVIGATION
   ============================================= */

.main-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.nav-compact {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.header-compact {
    padding: 10px 0;
}

.nav-menu {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

.nav-menu>li {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 18px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.main-nav.nav-compact .nav-menu a {
    padding: 12px 18px;
    font-size: 13px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(107, 91, 149, 0.03);
}

.nav-chevron {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.3s;
    opacity: 0.6;
}

.has-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    border-top: 4px solid var(--primary);
    padding: 10px 0;
    overflow: hidden;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 25px !important;
    border-bottom: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    transition: all 0.2s !important;
    background: transparent !important;
}

.dropdown a i {
    width: 20px;
    text-align: center;
    color: var(--primary-light);
}

.dropdown a:hover {
    background: #f8fafc !important;
    color: var(--primary) !important;
    padding-left: 30px !important;
}

.nav-cta-sub {
    margin-top: 5px;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 15px !important;
    color: var(--accent) !important;
    font-weight: 700 !important;
}

.nav-cta-sub:hover {
    color: var(--accent-hover) !important;
}

/* =============================================
   WEATHER WIDGET
/* =============================================
   FOOTER
   ============================================= */

.main-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

/* ========================================
   REKLAMY (AdRenderer) + WPISY SPONSOROWANE
   ======================================== */
.ad-slot {
    margin: 22px auto;
    text-align: center;
    max-width: 100%;
}
.ad-slot__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary, #888);
    margin-bottom: 5px;
    opacity: 0.7;
}
.ad-slot__inner img,
.ad-slot__inner picture { max-width: 100%; height: auto; border-radius: 8px; display: inline-block; }
.ad-slot__inner a { display: inline-block; line-height: 0; }
.ad-slot--leaderboard .ad-slot__inner { max-width: 970px; margin: 0 auto; }
.ad-slot--billboard .ad-slot__inner { max-width: 970px; margin: 0 auto; }
.ad-slot--rectangle .ad-slot__inner { max-width: 336px; margin: 0 auto; }
.ad-slot--halfpage .ad-slot__inner { max-width: 300px; margin: 0 auto; }
.ad-slot--incontent { margin: 28px auto; }
.ad-slot--native .ad-slot__inner { max-width: 100%; }

/* Sekcja wpisów sponsorowanych na stronie głównej */
.sponsored-section {
    margin: 36px 0;
    padding: 28px 0;
    border-top: 1px solid var(--border, #e5e5e5);
}
.sponsored-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}
.sponsored-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text, #1a202c);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sponsored-section__title .sp-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(240,173,78,0.15);
    color: #8a6d3b;
    padding: 3px 10px;
    border-radius: 20px;
}
.sponsored-grid { display: grid; gap: 20px; }
.sponsored-grid--1 { grid-template-columns: 1fr; }
.sponsored-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sponsored-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sponsored-grid--many { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.sp-card {
    display: block;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.sp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.sp-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--primary,#6b5b95), var(--primary-dark,#4a3f6b)); }
.sp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-card__media--noimg { display: flex; align-items: center; justify-content: center; }
.sp-card__media--noimg i { font-size: 40px; color: rgba(255,255,255,.55); }
.sp-card__label {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,.62); color: #fff;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    padding: 4px 9px; border-radius: 6px;
}
.sp-card__body { padding: 16px 18px; }
.sp-card__cat { font-size: 11px; font-weight: 700; color: var(--primary,#6b5b95); text-transform: uppercase; letter-spacing: .5px; }
.sp-card__title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 6px 0 8px; color: var(--text,#1a202c); }
.sp-card__excerpt { font-size: 13px; color: var(--text-secondary,#666); line-height: 1.55; }

/* Wariant 1 wpisu — układ poziomy (szeroki) */
.sponsored-grid--1 .sp-card { display: grid; grid-template-columns: 300px 1fr; }
.sponsored-grid--1 .sp-card__media { aspect-ratio: auto; min-height: 200px; }
.sponsored-grid--1 .sp-card--noimg-layout { grid-template-columns: 1fr; }
.sponsored-grid--1 .sp-card__title { font-size: 22px; }
.sponsored-grid--1 .sp-card__excerpt { font-size: 15px; }

@media (max-width: 768px) {
    .sponsored-grid--2, .sponsored-grid--3 { grid-template-columns: 1fr; }
    .sponsored-grid--1 .sp-card { grid-template-columns: 1fr; }
    .sponsored-grid--1 .sp-card__media { min-height: 180px; }
}

/* Baner w pasku bocznym artykułu — pełna szerokość kolumny (jak widgety) */
.article-sidebar .ad-slot { margin: 0; }
.article-sidebar .ad-slot__inner { max-width: 100% !important; width: 100%; }
.article-sidebar .ad-slot__inner img,
.article-sidebar .ad-slot__inner picture { width: 100%; height: auto; }
