/*
 * Plik: /assets/css/shortcode-trusted-partners.css
 * Opis: Style dla shortcode [trusted_partners]
 * Wersja: 2.0.0
 */

.trusted-partners {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 14px;
    margin: 0 0 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.trusted-partners__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.trusted-partners__title-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trusted-partners__all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8b5cf6 !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.2;
}

.trusted-partners__all-link:hover {
    color: #7c3aed !important;
}

.trusted-partners__all-link-arrow {
    font-size: 16px;
    line-height: 1;
    transform: translateY(-1px);
}

.trusted-partners__list {
    display: grid;
    gap: 10px;
}

/* =========================
   SIDEBAR
   ========================= */

.trusted-partners--sidebar .trusted-partners__list {
    grid-template-columns: 1fr;
}

.trusted-partners__sidebar-card {
    background: #f8fafc;
    border: 1px solid #e7edf3;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.trusted-partners__sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    border-color: #d7e0ea;
    background: #ffffff;
}

.trusted-partners__sidebar-card-inner {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
    padding: 12px;
}

.trusted-partners__sidebar-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trusted-partners__sidebar-logo-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    overflow: hidden;
    flex-shrink: 0;
}

.trusted-partners__sidebar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.trusted-partners__sidebar-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #64748b;
}

.trusted-partners__sidebar-content {
    min-width: 0;
}

.trusted-partners__sidebar-title {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
}

.trusted-partners__sidebar-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.trusted-partners__sidebar-title a:hover {
    color: #8b5cf6 !important;
}

.trusted-partners__sidebar-desc {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trusted-partners__sidebar-arrow-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trusted-partners__sidebar-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8 !important;
    text-decoration: none !important;
    width: 16px;
    height: 16px;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.18s ease, color 0.18s ease;
}

.trusted-partners__sidebar-card:hover .trusted-partners__sidebar-arrow {
    color: #8b5cf6 !important;
    transform: translateX(2px);
}

/* =========================
   GRID
   ========================= */

.trusted-partners--grid .trusted-partners__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.trusted-partners__grid-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.trusted-partners__grid-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 20px 16px;
    background: #ffffff;
}

.trusted-partners__grid-logo-link {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none !important;
}

.trusted-partners__grid-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.trusted-partners__grid-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 24px;
    font-weight: 800;
}

.trusted-partners__grid-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9aa0a6;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.trusted-partners__grid-badge::before {
    content: "⬢";
    font-size: 12px;
    line-height: 1;
    color: #b0b5bb;
}

.trusted-partners__grid-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 20px;
    background: #f5f5f5;
    flex-grow: 1;
}

.trusted-partners__grid-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    color: #2f3640;
}

.trusted-partners__grid-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.trusted-partners__grid-title a:hover {
    color: #8b5cf6 !important;
}

.trusted-partners__grid-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #5f6368;
}

.trusted-partners__grid-footer {
    padding: 0 20px 20px;
    background: #f5f5f5;
}

.trusted-partners__grid-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #8b5cf6;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.trusted-partners__grid-button:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* =========================
   RWD
   ========================= */

@media (max-width: 1200px) {
    .trusted-partners--grid .trusted-partners__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .trusted-partners--grid .trusted-partners__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .trusted-partners {
        padding: 12px;
    }

    .trusted-partners__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .trusted-partners--grid .trusted-partners__list {
        grid-template-columns: 1fr;
    }

    .trusted-partners__sidebar-card-inner {
        grid-template-columns: 48px minmax(0, 1fr) 16px;
        gap: 10px;
        padding: 11px;
    }

    .trusted-partners__sidebar-logo-link {
        width: 40px;
        height: 40px;
    }

    .trusted-partners__sidebar-title {
        font-size: 12.5px;
    }

    .trusted-partners__sidebar-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .trusted-partners__grid-top,
    .trusted-partners__grid-body,
    .trusted-partners__grid-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}