/* CWP Menu Styles */
.cwp-menu {
    position: fixed;
    top: 32px; /* Margines dla paska admin WordPressa */
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dla urządzeń mobilnych - pasek admin może być większy */
@media (max-width: 782px) {
    .cwp-menu {
        top: 46px;
    }
}

/* Dla użytkowników niezalogowanych - bez marginesu */
.logged-out .cwp-menu {
    top: 0;
}

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

/* Logo Styles */
.cwp-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cwp-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.cwp-logo-link:hover {
    opacity: 0.8;
}

.cwp-logo-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.cwp-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    letter-spacing: -0.5px;
}

/* Navigation Styles */
.cwp-menu-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cwp-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.cwp-menu-item {
    position: relative;
}

.cwp-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.cwp-menu-link:hover {
    color: #4279f1;
}

.cwp-dropdown-arrow {
    font-size: 10px;
    color: #666666;
    transition: transform 0.3s ease;
}

.cwp-menu-item:hover .cwp-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.cwp-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
}

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

.cwp-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cwp-dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
}

/* CTA Button */
.cwp-menu-cta {
    margin-left: 20px;
}

.cwp-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    /* Posiwata pod gradientem */
    box-shadow: 0 4px 20px 0 rgba(127, 49, 255, 0.25), 0 2px 8px 0 rgba(66, 121, 241, 0.18) !important;
}

.cwp-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px 0 rgba(127, 49, 255, 0.32), 0 4px 16px 0 rgba(66, 121, 241, 0.22) !important;
    color: #ffffff;
}

.cwp-cta-arrow {
    font-size: 16px;
    font-weight: bold;

}

/* Mobile Toggle */
.cwp-mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.cwp-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1128px) {
    .cwp-menu-container {
        padding: 0 15px;
        height: 60px;
        position: relative;
        justify-content: flex-start;
    }
    
    .cwp-menu-nav {
        display: none;
    }
    
    .cwp-menu-cta {
        display: none !important;
    }
    
    .cwp-mobile-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .cwp-logo-text {
        font-size: 18px;
    }
    
    .cwp-logo-image {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .cwp-menu-container {
        padding: 0 10px;
    }
    
    .cwp-logo-text {
        font-size: 16px;
    }
    
    .cwp-logo-image {
        width: 36px;
        height: 36px;
    }
    
    .cwp-mobile-toggle {
        right: 10px;
    }
}

/* Mobile Menu Overlay */
.cwp-menu.mobile-open .cwp-menu-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
}

.cwp-menu.mobile-open .cwp-menu-list {
    flex-direction: column;
    gap: 20px;
}

.cwp-menu.mobile-open .cwp-menu-cta {
    display: none !important;
}

.cwp-menu.mobile-open .cwp-cta-button {
    width: 100%;
    justify-content: center;
}

/* Animation for mobile toggle */
.cwp-menu.mobile-open .cwp-mobile-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cwp-menu.mobile-open .cwp-mobile-toggle span:nth-child(2) {
    opacity: 0;
}

.cwp-menu.mobile-open .cwp-mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Scroll effect */
.cwp-menu.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo hover effect */
.cwp-menu-logo.hover .cwp-logo-image {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Loading state for CTA button */
.cwp-cta-button.loading {
    opacity: 0.7;
    pointer-events: none;
}
