/* ============================================================
   WINMEDAL — FOOTER CSS v2.1 (Updated)
   ============================================================ */

.wm-footer-v2 {
    background-color: #0a0a0a;
    background-image: radial-gradient(circle at 90% 100%, rgba(170, 25, 35, 0.45) 0%, rgba(10, 10, 10, 1) 55%);
    color: var(--wm-gray-300, #cccccc);
    font-family: var(--wm-font-body, 'DM Sans', 'Inter', sans-serif);
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wm-footer-grid-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to top, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom center;
    pointer-events: none;
    z-index: -1;
}

/* =====================
   GRID (4 Kolumny)
   ===================== */
.wm-ft-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap: 40px;
}

.wm-ft-heading {
    font-size: 12px;
    color: var(--wm-gray-500, #7a7a7a);
    margin-bottom: 25px;
    font-family: monospace, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =====================
   KOLUMNA 1: BRAND
   ===================== */
.wm-ft-logo {
    max-width: 110px;
    height: auto;
    margin-bottom: 22px;
    display: block;
}

/* Google Badge — własny komponent */
.wm-google-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.wm-google-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    color: inherit;
}

.wm-gb-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wm-gb-glogo {
    flex-shrink: 0;
}

.wm-gb-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.1px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.wm-gb-stars {
    display: flex;
    gap: 2px;
}

.wm-gb-stars i {
    color: #FBBC05;
    font-size: 11px;
}

.wm-gb-bottom {
    font-size: 12px;
    color: var(--wm-gray-500, #7a7a7a);
    line-height: 1.4;
}

.wm-gb-bottom strong {
    color: #ffffff;
    font-weight: 600;
}

.wm-ft-desc {
    font-size: 13px;
    color: var(--wm-gray-500, #7a7a7a);
    line-height: 1.6;
    margin: 0;
}

/* =====================
   LINKI
   ===================== */
.wm-ft-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wm-ft-links li {
    margin-bottom: 14px;
}
.wm-ft-links a {
    color: #e5e5e5;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.wm-ft-links a:hover {
    color: var(--wm-red, #D42B35);
}
.wm-ft-contact-list a {
    line-height: 1.5;
    display: inline-block;
}

/* =====================
   SOCIAL MEDIA — DOPRACOWANE
   ===================== */
.wm-ft-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    align-items: center;
}

/* Social icons — reset wszystkiego z do_action */
.wm-ft-social ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
.wm-ft-social li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.wm-ft-social a,
.wm-ft-social > a,
.wm-ft-social li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    /* Wyłącz jakiekolwiek inne tło ustawione przez motyw */
    box-shadow: none !important;
}

/* Hover — tylko zmiana koloru, bez czerwonego kółka na czerwonym tle */
.wm-ft-social a:hover,
.wm-ft-social > a:hover,
.wm-ft-social li a:hover {
    background: var(--wm-red, #D42B35) !important;
    border-color: var(--wm-red, #D42B35) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(212, 43, 53, 0.35) !important;
}

.wm-ft-social a i,
.wm-ft-social a svg,
.wm-ft-social li a i,
.wm-ft-social li a svg {
    display: block !important;
    width: auto !important;
    height: auto !important;
    font-size: 14px !important;
    line-height: 1 !important;
    pointer-events: none !important;
    /* Upewnij się że ikona nie ma własnego tła */
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
}

/* =====================
   BLOG
   ===================== */
.wm-ft-blog-item {
    margin-bottom: 20px;
}
.wm-ft-blog-item time {
    display: block;
    font-size: 11px;
    color: var(--wm-gray-500, #7a7a7a);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.wm-ft-blog-item a {
    color: #e5e5e5;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}
.wm-ft-blog-item a:hover {
    color: var(--wm-red);
}

/* =====================
   DIVIDER
   ===================== */
.wm-ft-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 50px 0;
}

/* =====================
   NEWSLETTER
   ===================== */
.wm-ft-newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.wm-ft-nl-text h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}
.wm-ft-nl-text p {
    color: var(--wm-gray-500, #7a7a7a);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

.wm-ft-nl-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}
.wm-ft-nl-row:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
}

.wm-ft-nl-row input[type="email"],
.wm-ft-nl-select select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.wm-ft-nl-row input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
}
.wm-ft-nl-row input[type="email"]::placeholder {
    color: rgba(255,255,255,0.3);
}

.wm-ft-nl-select {
    position: relative;
    width: 90px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
    margin-right: 10px;
}
.wm-ft-nl-select select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding: 10px 20px 10px 0;
}
.wm-ft-nl-select select option {
    background-color: #111;
    color: #fff;
}
.wm-ft-nl-select i {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    pointer-events: none;
}

.wm-ft-nl-row button {
    background: var(--wm-red, #D42B35);
    color: #ffffff;
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.wm-ft-nl-row button:hover {
    background: #b8222a;
    transform: translateY(-1px);
}

/* Checkbox */
.wm-ft-nl-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.wm-ft-nl-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.wm-ft-nl-check input[type="checkbox"]:checked {
    background: #ffffff;
    border-color: #ffffff;
}
.wm-ft-nl-check input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 10px;
}
.wm-ft-nl-check label {
    font-size: 12px;
    color: var(--wm-gray-500, #7a7a7a);
    line-height: 1.5;
    cursor: pointer;
}

/* =====================
   BOTTOM COPYRIGHT
   ===================== */
.wm-ft-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--wm-gray-500, #7a7a7a);
}

.wm-ft-copy a {
    color: #e5e5e5;
    text-decoration: none;
}

.wm-ft-legal {
    display: flex;
    gap: 30px;
}
.wm-ft-legal a {
    color: var(--wm-gray-500, #7a7a7a);
    text-decoration: none;
    transition: color 0.2s;
}
.wm-ft-legal a:hover {
    color: #ffffff;
}

/* Mobile brand block — domyślnie ukryty */
.wm-ft-brand-mobile {
    display: none;
}


.wm-accordion-icon {
    display: none;
    transition: transform 0.3s ease;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

/* Na desktopie zawartość zawsze widoczna */
@media (min-width: 769px) {
    .wm-accordion-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .wm-ft-heading.wm-accordion-trigger {
        cursor: default;
        pointer-events: none;
    }
}

/* =====================
   RESPONSIVE — TABLET
   ===================== */
@media (max-width: 1100px) {
    .wm-ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px 30px;
    }
    .wm-ft-newsletter {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =====================
   RESPONSIVE — MOBILE (Gucci Accordion Style)
   ===================== */
@media (max-width: 768px) {
    .wm-footer-v2 {
        padding: 50px 0 40px;
    }

    /* Grid — jedna kolumna, brand na końcu */
    .wm-ft-grid {
        grid-template-columns: 1fr;
        gap: 0;
        display: flex;
        flex-direction: column;
    }

    /* Ukryj brand col w gridzie na mobile */
    .wm-ft-col--brand {
        display: none !important;
    }

    /* Pokaż mobilny blok brand pod newsletterem */
    .wm-ft-brand-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 36px 0 28px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0;
    }

    .wm-ft-brand-mobile .wm-ft-logo {
        max-width: 70px !important;
        margin: 0 auto 18px !important;
    }

    .wm-ft-brand-mobile .wm-google-badge {
        width: auto;
        max-width: 260px;
        margin: 0 auto;
    }

    /* Pozostałe kolumny — accordion */
    .wm-ft-col:not(.wm-ft-col--brand) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Trigger — heading staje się klikalny pasek */
    .wm-ft-heading.wm-accordion-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        margin-bottom: 0;
        cursor: pointer;
        user-select: none;
    }

    .wm-accordion-icon {
        display: inline-block;
    }

    /* Content — domyślnie zamknięty */
    .wm-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding-bottom 0.3s ease;
    }

    /* Otwarty accordion */
    .wm-ft-col.is-active .wm-accordion-content {
        padding-bottom: 24px;
        /* max-height ustawiane inline przez JS */
    }

    .wm-ft-col.is-active .wm-accordion-icon {
        transform: rotate(180deg);
    }

    /* Padding po otwarciu dla linków */
    .wm-accordion-content .wm-ft-links,
    .wm-accordion-content .wm-ft-blog {
        padding-top: 4px;
    }

    /* Social icons na mobile */
    .wm-ft-social {
        padding-bottom: 4px;
        margin-top: 16px;
    }

    /* Newsletter na mobile */
    .wm-ft-newsletter {
        margin-bottom: 40px;
    }

    .wm-ft-nl-row {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 8px;
    }

    .wm-ft-nl-row input[type="email"],
    .wm-ft-nl-row button {
        width: 100%;
        margin: 0;
    }

    .wm-ft-nl-row input[type="email"] {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 12px 15px;
    }

    .wm-ft-nl-select {
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin: 0;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
    }
    .wm-ft-nl-select select {
        padding: 12px 30px 12px 15px;
    }

    .wm-ft-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .wm-footer-v2 {
        padding-bottom: 90px;
    }
}