/* ==========================================================================
   UMOWY W IT — Premium Footer CSS
   Plik: umowywit-footer.css
   Wgraj na serwer i dodaj w functions.php:
   wp_enqueue_style('umowywit-footer', get_template_directory_uri() . '/umowywit-footer.css');
   LUB wklej zawartość do: Appearance → Customize → Additional CSS
   ========================================================================== */


/* ==========================================================================
   1. SALIENT OVERRIDES
   Neutralizuje domyślne style #footer-outer z motywu Salient
   ========================================================================== */

#footer-outer {
    background: #3452ff !important;
    padding: 0 !important;
    border-top: none !important;
    width: calc(100% + var(--scroll-bar-w, 15px)) !important;
    margin-right: calc(-1 * var(--scroll-bar-w, 15px)) !important;
}

#footer-widgets,
#copyright {
    display: none !important;
}


/* ==========================================================================
   2. DARK WRAPPER
   ========================================================================== */

.pf-dark {
    background-color: #3452ff;
    background:
        linear-gradient(rgba(0, 0, 12, 0.48), rgba(0, 0, 12, 0.48)),
        radial-gradient(circle at 75% 15%, #4a65ff 0%, #3452ff 55%, #2038cc 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtelna siatka w tle */
.pf-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}


/* ==========================================================================
   3. SEO CHUNK
   ========================================================================== */

.pf-seo-chunk {
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    padding: 20px 30px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
    position: relative;
    z-index: 1;
}

.pf-seo-chunk p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.7);
}

.pf-seo-chunk strong {
    color: #ffffff;
    font-weight: 700;
}

.pf-seo-chunk a {
    color: #7fa8ff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(127, 168, 255, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.pf-seo-chunk a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}


/* ==========================================================================
   4. CLUSTERS — SIATKA KOLUMN NAV
   ========================================================================== */

.pf-clusters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* Modifier dla 5 kolumn (umowywit.pl) */
.pf-clusters--5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.pf-cluster {
    display: flex;
    flex-direction: column;
}

/* Tytuł kolumny */
.pf-cluster__title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pf-cluster__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pf-cluster__title a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Lista linków */
.pf-cluster__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-cluster__list li {
    margin: 0 !important;
    padding: 0 !important;
}

.pf-cluster__list a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1.4;
}

.pf-cluster__list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Hub kolumna (Przydatne linki) */
.pf-cluster--hub {
    display: flex;
    flex-direction: column;
}

.pf-cluster--hub .pf-cluster__title {
    color: rgba(255, 255, 255, 0.5);
}

.pf-kirp-badge {
    margin-top: auto;
    padding-top: 32px;
}

.pf-kirp-badge__img {
    display: block;
    width: 100%;
    max-width: 160px;
    height: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.pf-kirp-badge__img:hover {
    opacity: 1;
}

.pf-hub-link a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    background: rgba(61, 110, 245, 0.15);
    border: 1px solid rgba(61, 110, 245, 0.35);
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-flex !important;
    transition: background 0.25s ease, border-color 0.25s ease !important;
    transform: none !important;
}

.pf-hub-link a::before {
    display: none !important;
}

.pf-hub-link a:hover {
    background: rgba(61, 110, 245, 0.3) !important;
    border-color: rgba(61, 110, 245, 0.7) !important;
    transform: none !important;
}


/* ==========================================================================
   5. BOTTOM BAR — logo + blogi + social
   ========================================================================== */

.pf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.pf-logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease;
    max-height: 44px;
    width: auto;
}

.pf-bottom__logo a:hover .pf-logo-img {
    opacity: 1;
}

.pf-logo-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pf-bottom__blogs {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.pf-bottom__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
    white-space: nowrap;
}

.pf-bottom__menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pf-bottom__menu a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pf-bottom__menu a:hover {
    color: #ffffff;
}

.page-footer__social {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.page-footer__social a i {
    line-height: 0;
    display: block;
}

.page-footer__social a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    transform: translateY(-2px);
}


/* ==========================================================================
   6. LEGAL / COPYRIGHT BAR
   ========================================================================== */

.pf-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.pf-legal__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pf-legal__links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

.pf-legal__links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.pf-legal__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
    font-weight: 500;
}


/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 1400px) {
    .pf-clusters--5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) {
    .pf-clusters {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
    .pf-clusters--5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .pf-clusters--5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .pf-dark {
        padding: 48px 0 36px;
    }

    .pf-seo-chunk {
        padding: 16px 20px;
        margin-bottom: 40px;
    }

    .pf-seo-chunk p {
        font-size: 0.875rem;
    }

    .pf-clusters,
    .pf-clusters--5 {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .pf-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .pf-bottom__blogs {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pf-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pf-clusters,
    .pf-clusters--5 {
        grid-template-columns: 1fr;
    }
}
