/* 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;
}

