/* ============================================
   MODERN DESIGN ENHANCEMENTS
   Nowoczesne, interaktywne elementy
   ============================================ */

/* ===== NOWY SYSTEM BUTTONÓW ===== */

/* Primary Button - Gradient + Glow Effect */
.wp-element-button,
.wp-block-button__link,
.btn-primary,
.btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

/* Animated shine effect */
.wp-element-button::before,
.wp-block-button__link::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.wp-element-button:hover::before,
.wp-block-button__link:hover::before,
.btn:hover::before {
    left: 100%;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.btn-primary:hover,
.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.wp-element-button:active,
.wp-block-button__link:active,
.btn:active {
    transform: translateY(0) !important;
    box-shadow: 
        0 2px 10px rgba(59, 130, 246, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary Button - Glass Morphism */
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
.btn-outline {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    color: #3b82f6 !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.btn-outline:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    color: #2563eb !important;
}

/* On dark backgrounds */
.wp-block-cover .is-style-outline .wp-block-button__link,
.hero-section .btn-outline {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.wp-block-cover .is-style-outline .wp-block-button__link:hover,
.hero-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
        0 8px 30px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ===== CARDS - Neumorphic Style ===== */
/* Karty z białym tłem - zaokrąglone rogi + gradient border */
.wp-block-group.has-white-background-color {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 20px 60px -15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.wp-block-group.has-white-background-color:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 30px 80px -20px rgba(59, 130, 246, 0.15);
}

/* Animated gradient border on hover - tylko na kartach z białym tłem */
.wp-block-group.has-white-background-color::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.wp-block-group.has-white-background-color:hover::before {
    opacity: 1;
}

/* Kolumny - tylko hover effect, bez nadpisywania styles */
.wp-block-columns .wp-block-column {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-columns .wp-block-column:hover {
    transform: translateY(-8px);
}

/* ===== TYPOGRAPHY IMPROVEMENTS ===== */
/* Wyłączone gradienty na h1-h6 - powodowały czarny tekst na banerze */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Białe teksty na banerze cover */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover .wp-block-heading {
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.wp-block-cover p {
    color: white !important;
}

/* Large numbers - Gradient effect */
.wp-block-heading.has-secondary-color {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== HERO SECTION ===== */
.wp-block-cover {
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.wp-block-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(139, 92, 246, 0.2) 50%, 
        rgba(236, 72, 153, 0.3) 100%);
    opacity: 0.6;
    mix-blend-mode: overlay;
    animation: gradient-shift 10s ease infinite;
    background-size: 200% 200%;
    pointer-events: none;
}

/* Floating particles effect */
.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* ===== LINKS - Interactive Underline ===== */
.wp-block-post-content a:not(.wp-block-button__link),
.entry-content a:not(.wp-block-button__link),
article a:not(.wp-block-button__link) {
    color: #3b82f6;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}

.wp-block-post-content a:not(.wp-block-button__link)::after,
.entry-content a:not(.wp-block-button__link)::after,
article a:not(.wp-block-button__link)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-post-content a:not(.wp-block-button__link):hover::after,
.entry-content a:not(.wp-block-button__link):hover::after,
article a:not(.wp-block-button__link):hover::after {
    width: 100%;
}

/* ===== LISTS - Modern Bullets ===== */
.wp-block-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.wp-block-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    list-style: none !important;
}

.wp-block-list li::marker {
    display: none !important;
    content: '' !important;
}

.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
    transform: rotate(45deg);
}

/* ===== IMAGES - Parallax Effect ===== */
.wp-block-image img,
.wp-block-cover__image-background {
    transition: transform 0.3s ease-out;
}

.wp-block-image:hover img {
    transform: scale(1.05);
}

/* ===== SECTIONS - Smooth Scroll Reveal ===== */
.wp-block-group {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MICRO-INTERACTIONS ===== */

/* Pulse effect on specific elements */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.wp-block-button:hover {
    animation: pulse 0.6s ease-in-out;
}

/* ===== GLASSMORPHISM BACKGROUNDS ===== */
.wp-block-group.has-background-light-background-color {
    background: rgba(249, 250, 251, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===== SHADOWS - Layered & Dynamic ===== */
.wp-block-cover,
.wp-block-group.alignfull {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 40px -10px rgba(0, 0, 0, 0.1),
        0 20px 60px -15px rgba(59, 130, 246, 0.1);
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== WOOCOMMERCE PRODUCTS ===== */
/* Kafelki produktów - nowoczesny design */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wp-block-woocommerce-product-new .wc-block-grid__product,
.wp-block-woocommerce-handpicked-products .wc-block-grid__product,
.wc-block-grid__product {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 20px 60px -15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.wp-block-woocommerce-product-new .wc-block-grid__product:hover,
.wp-block-woocommerce-handpicked-products .wc-block-grid__product:hover,
.wc-block-grid__product:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 30px 80px -20px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Zdjęcie produktu - zaokrąglone + efekt */
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.wc-block-grid__product-image img,
.wc-block-grid__product img {
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: auto;
}

.woocommerce ul.products li.product:hover img,
.woocommerce-page ul.products li.product:hover img,
.wc-block-grid__product:hover img {
    transform: scale(1.05);
}

/* Tytuł produktu */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.wc-block-grid__product-title,
.wc-block-grid__product .wc-block-components-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 16px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product:hover h2,
.woocommerce ul.products li.product:hover h3,
.wc-block-grid__product:hover .wc-block-grid__product-title,
.wc-block-grid__product:hover .wc-block-components-product-name {
    color: #3b82f6;
}

/* Cena produktu */
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price,
.wc-block-components-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .price del,
.wc-block-grid__product-price del,
.wc-block-components-product-price del {
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 400;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins,
.wc-block-grid__product-price ins,
.wc-block-components-product-price ins {
    text-decoration: none;
    color: #10b981;
}

/* Przycisk "Dodaj do koszyka" */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.wc-block-grid__product .wp-block-button__link,
.wc-block-components-product-button .wp-block-button__link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    width: 100%;
    text-align: center;
    display: block !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.wc-block-grid__product .wp-block-button__link:hover,
.wc-block-components-product-button .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

/* Badge "Sale" */
.woocommerce span.onsale,
.wc-block-grid__product-onsale {
    background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 6px 12px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

/* Rating gwiazdek */
.woocommerce .star-rating,
.wc-block-components-product-rating__stars {
    color: #fbbf24 !important;
}

/* Padding wewnątrz kafelka */
.woocommerce ul.products li.product a,
.wc-block-grid__product a {
    padding: 0 !important;
}

.woocommerce ul.products li.product,
.wc-block-grid__product {
    padding: 16px !important;
}

.woocommerce ul.products li.product a img,
.wc-block-grid__product a img {
    margin-bottom: 0 !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .wp-element-button,
    .wp-block-button__link,
    .btn {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }
}

/* ===== DARK SECTIONS FIX ===== */
/* Ciemne tło (#0f172a) - tekst biały, kolumny przezroczyste */
.wp-block-group[style*="#0f172a"],
.wp-block-group[style*="0f172a"] {
    color: white !important;
}

.wp-block-group[style*="#0f172a"] .wp-block-heading,
.wp-block-group[style*="0f172a"] .wp-block-heading,
.wp-block-group[style*="#0f172a"] h1,
.wp-block-group[style*="#0f172a"] h2,
.wp-block-group[style*="#0f172a"] h3,
.wp-block-group[style*="0f172a"] h1,
.wp-block-group[style*="0f172a"] h2,
.wp-block-group[style*="0f172a"] h3 {
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.wp-block-group[style*="#0f172a"] p,
.wp-block-group[style*="0f172a"] p {
    color: white !important;
}

/* Kolumny w ciemnej sekcji - przezroczyste tło */
.wp-block-group[style*="#0f172a"] .wp-block-column,
.wp-block-group[style*="0f172a"] .wp-block-column {
    background: transparent !important;
}

/* Footer na ciemnym tle */
footer[style*="#0f172a"],
footer[style*="0f172a"],
.site-footer[style*="#0f172a"],
.site-footer[style*="0f172a"] {
    color: white !important;
}

footer[style*="#0f172a"] .wp-block-column,
footer[style*="0f172a"] .wp-block-column,
.site-footer[style*="#0f172a"] .wp-block-column,
.site-footer[style*="0f172a"] .wp-block-column {
    background: transparent !important;
    color: white !important;
}

footer[style*="#0f172a"] p,
footer[style*="0f172a"] p,
footer[style*="#0f172a"] h1,
footer[style*="#0f172a"] h2,
footer[style*="#0f172a"] h3,
footer[style*="0f172a"] h1,
footer[style*="0f172a"] h2,
footer[style*="0f172a"] h3 {
    color: white !important;
}
