/**
 * NEW HEADER STYLES - Piasek Potworów
 * Kolory: #24252f (ciemny), #fec722 (złoty), #656565 (tekst)
 * Fonty: Montserrat, Open Sans
 */

/* ===== RESET FOR HEADER ===== */
.header-wrapper *,
.mobile-nav * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #1a1b23;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Open Sans', sans-serif;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-left a:hover {
    color: #fec722;
}

.top-bar-left .separator {
    color: #444;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    color: #888;
    font-size: 14px;
    transition: all 0.3s;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icons a:hover {
    color: #fec722;
    background: rgba(254, 199, 34, 0.1);
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: linear-gradient(135deg, #24252f 0%, #1a1b23 100%);
    padding: 15px 0;
    position: relative;
}

.main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== LOGO & CLUB NAME ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand:hover .logo {
    transform: scale(1.05);
}

.club-name {
    display: flex;
    flex-direction: column;
}

.club-name-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.club-name-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #fec722;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 2px;
}

/* ===== DESKTOP NAVIGATION ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
}

.main-nav > a,
.nav-item > a {
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav > a::after,
.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fec722;
    transition: width 0.3s;
}

.main-nav > a:hover,
.nav-item > a:hover {
    color: #fec722;
}

.main-nav > a:hover::after,
.nav-item:hover > a::after {
    width: 100%;
}

.nav-item > a i {
    font-size: 8px;
    transition: transform 0.3s;
}

.nav-item:hover > a i {
    transform: rotate(180deg);
}

/* ===== DROPDOWN MENU ===== */
.nav-item {
    position: relative;
}

.nav-item .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    border-top: 3px solid #fec722;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: #24252f;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.dropdown a:hover {
    background: #fec722;
    color: #24252f;
    padding-left: 25px;
}

.dropdown a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown a::after {
    display: none;
}

/* ===== HEADER SEARCH ===== */
.header-search {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.header-search form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    overflow: hidden;
}

.header-search .search-field {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #fff;
    font-size: 13px;
    width: 150px;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}

.header-search .search-field::placeholder {
    color: rgba(255,255,255,0.5);
}

.header-search .search-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.header-search .search-btn:hover {
    color: #fec722;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    background: rgba(254, 199, 34, 0.1);
    border: 2px solid #fec722;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #fec722;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: #fec722;
    transition: all 0.3s;
    display: block;
}

.mobile-menu-btn:hover span {
    background: #24252f;
}

.mobile-menu-btn.active {
    background: #fec722;
}

.mobile-menu-btn.active span {
    background: #24252f;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE OVERLAY ===== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9998;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBILE NAVIGATION PANEL ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: #24252f;
    z-index: 9999;
    transition: right 0.4s ease;
    overflow-y: auto;
    font-family: 'Montserrat', sans-serif;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 15px 20px;
    background: #1a1b23;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #fec722;
}

.mobile-nav-header .brand {
    gap: 10px;
}

.mobile-nav-header .logo {
    width: 45px;
    height: 45px;
}

.mobile-nav-header .club-name-main {
    font-size: 14px;
    letter-spacing: 1px;
}

.mobile-nav-header .club-name-sub {
    display: none;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    background: rgba(254, 199, 34, 0.1);
    border: none;
    border-radius: 50%;
    color: #fec722;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-nav-close:hover {
    background: #fec722;
    color: #24252f;
}

/* ===== MOBILE MENU ITEMS ===== */
.mobile-nav-menu {
    padding: 15px 0;
}

.mobile-nav-menu > a,
.mobile-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.mobile-nav-menu > a:hover,
.mobile-dropdown > a:hover {
    background: rgba(254, 199, 34, 0.1);
    color: #fec722;
    padding-left: 30px;
}

.mobile-nav-menu > a i {
    margin-right: 10px;
}

/* ===== MOBILE DROPDOWN ===== */
.mobile-dropdown-content {
    display: none;
    background: rgba(0,0,0,0.2);
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

.mobile-dropdown-content a {
    display: block;
    padding: 12px 25px 12px 40px;
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s;
}

.mobile-dropdown-content a:hover {
    color: #fec722;
    background: rgba(254, 199, 34, 0.05);
    padding-left: 45px;
}

.mobile-dropdown > a i {
    transition: transform 0.3s;
    font-size: 12px;
}

.mobile-dropdown.active > a i {
    transform: rotate(180deg);
}

.mobile-dropdown.active > a {
    color: #fec722;
    background: rgba(254, 199, 34, 0.1);
}

/* ===== MOBILE SOCIAL ===== */
.mobile-nav-social {
    padding: 25px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 20px;
}

.mobile-nav-social a {
    width: 45px;
    height: 45px;
    background: rgba(254, 199, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fec722;
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.mobile-nav-social a:hover {
    background: #fec722;
    color: #24252f;
}

/* ===== STICKY HEADER ===== */
.header-wrapper.sticky .top-bar {
    display: none;
}

.header-wrapper.sticky .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    z-index: 9000;
    animation: slideDown 0.3s ease;
}

.header-wrapper.sticky .logo {
    width: 50px;
    height: 50px;
}

.header-wrapper.sticky .club-name-main {
    font-size: 18px;
}

.header-wrapper.sticky .club-name-sub {
    font-size: 9px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Spacer for sticky header */
.header-wrapper.sticky + .wrapper {
    padding-top: 85px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .main-nav > a,
    .nav-item > a {
        padding: 12px 10px;
        font-size: 11px;
    }
    
    .header-search .search-field {
        width: 120px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 600px) {
    .top-bar-left .hide-mobile {
        display: none;
    }
    
    .top-bar-left .separator {
        display: none;
    }
    
    .top-bar-left a:last-child {
        display: none;
    }

    .club-name-main {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .club-name-sub {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .logo {
        width: 55px;
        height: 55px;
    }

    .mobile-nav {
        width: 100%;
        right: -100%;
    }
    
    .main-header .container {
        padding: 0 15px;
    }
}

/* ===== BODY LOCK WHEN MOBILE MENU OPEN ===== */
body.mobile-menu-open {
    overflow: hidden;
}


/* ===== BRUTAL FIX - DODAJ NA SAM KONIEC CSS ===== */

/* Główna treść strony musi mieć tło i być "nad" footerem */
.wrapper,
body > .wrapper,
#page,
#content,
.site-content,
main,
.jeg_content {
    position: relative !important;
    z-index: 10 !important;
    background: #fff !important;
}

/* Footer musi być fixed na dole */
.footer-reveal-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1 !important;
}

/* WAŻNE: Ustaw ręcznie margin-bottom - dostosuj wartość do wysokości footera */
/* Zmierz wysokość footera i wpisz tutaj (zazwyczaj 500-700px) */
.wrapper {
    margin-bottom: 600px !important;
}

/* Dla różnych rozdzielczości */
@media (max-width: 991px) {
    .wrapper {
        margin-bottom: 750px !important;
    }
}

@media (max-width: 767px) {
    /* Na mobile wyłączamy fixed footer */
    .footer-reveal-wrapper {
        position: relative !important;
    }
    
    .wrapper {
        margin-bottom: 0 !important;
    }
}