/*
Theme Name: Dropshipping Polsce
Theme URI: https://dropshippingwpolsce.pl
Author: Weblish
Author URI: https://weblish.io
Description: Dropshipping Polsce - kompleksowa platforma edukacyjna dla polskich przedsiębiorców e-commerce. Przewodniki, porady i instrukcje krok po kroku dotyczące dropshippingu i strategii biznesu online.
Version: 1774342953
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dropshipping-polsce
Tags: blog, one-column, custom-menu, featured-images, full-width-template, theme-options, translation-ready, dropshipping, e-commerce, education

Dropshipping Polsce - Twoje źródło wiedzy o dropshippingu w Polsce.
*/

/* Custom Logo Fix - Constrain navbar logo size */
.custom-logo {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.navbar_logo-link .custom-logo-link {
    width: auto;
    height: auto;
}

/* =============================================
   Responsive Navbar Fixes
   ============================================= */

/* Ensure navbar content doesn't overflow */
.navbar_content {
    flex-wrap: nowrap;
    min-height: 3.5rem;
}

/* Logo link area: allow shrink but keep readable */
.navbar_logo-link {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
}

.navbar_logo-link .navbar_logo {
    max-height: 50px;
    width: auto;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Hamburger menu button visibility & z-index */
.menu-button.w-nav-button {
    z-index: 100;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile nav overlay – proper stacking and full-width */
@media screen and (max-width: 991px) {
    .nav_mobile.w-nav-menu {
        z-index: 99;
    }

    .navbar_list {
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        width: 100%;
    }

    .brand-name {
        font-size: 1rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar_logo-link .navbar_logo,
    .navbar_logo-link .custom-logo {
        max-height: 40px !important;
        width: auto !important;
        height: auto !important;
        max-width: 40px !important;
    }

    .nav_buttons-wrap {
        flex-shrink: 0;
    }
}

@media screen and (max-width: 767px) {
    .nav_mobile.w-nav-menu {
        inset: 100% 1rem auto;
    }

    .brand-name {
        font-size: 0.9rem !important;
    }

    .navbar_logo-link .navbar_logo,
    .navbar_logo-link .custom-logo {
        max-height: 36px !important;
        max-width: 36px !important;
    }

    .nav-button_component {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media screen and (max-width: 479px) {
    .navbar_content {
        padding-left: 0;
        padding-right: 0;
    }

    .brand-name {
        font-size: 0.8rem !important;
    }

    .navbar_logo-link .navbar_logo,
    .navbar_logo-link .custom-logo {
        max-height: 32px !important;
        max-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .navbar_logo-link {
        gap: 0.35rem;
    }

    .nav-button_component {
        width: 2.25rem;
        height: 2.25rem;
    }

    .nav_mobile.w-nav-menu {
        inset: 100% 0.5rem auto;
    }

    .navbar_list {
        padding: 1rem;
    }

    .login-wrap {
        display: none !important;
    }
}

/* =============================================
   Mobile Nav Overlay & Dropdown Menu
   ============================================= */

.mobile-nav-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.3);
    min-height: 100vh;
}

.mobile-nav-overlay.is-open {
    display: block;
}

.mobile-nav-menu {
    background-color: #fff;
    margin: 0 1rem;
    border-radius: 0.7rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: #f5f0ff;
    color: #8f00ff;
}

.mobile-nav-link.is-active {
    color: #8f00ff;
    font-weight: 600;
}

@media screen and (min-width: 992px) {
    .mobile-nav-overlay {
        display: none !important;
    }
}

@media screen and (max-width: 479px) {
    .mobile-nav-menu {
        margin: 0 0.5rem;
    }

    .mobile-nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Hamburger animation when open */
.menu-button.is-menu-open .nav-button_line.is-first {
    transform: rotate(45deg) translate(4px, 4px);
    transition: transform 0.3s ease;
}

.menu-button.is-menu-open .nav-button_line.is-second {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-button.is-menu-open .nav-button_line.is-third {
    transform: rotate(-45deg) translate(4px, -4px);
    transition: transform 0.3s ease;
}

.nav-button_line {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* =============================================
   Footer Logo & Brand Name – Centered on All Screens
   ============================================= */

.footer-img_wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.footer-img {
    width: auto !important;
    height: auto !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    filter: brightness(0) invert(1);
}

.footer-brand-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    flex-grow: 0;
}

@media screen and (max-width: 767px) {
    .footer-img_wrap {
        gap: 0.5rem !important;
    }

    .footer-img {
        max-width: 40px !important;
        max-height: 40px !important;
    }

    .footer-brand-name {
        font-size: 1rem !important;
    }
}

@media screen and (max-width: 479px) {
    .footer-img_wrap {
        gap: 0.4rem !important;
    }

    .footer-img {
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .footer-brand-name {
        font-size: 0.85rem !important;
    }
}
