/* ==========================================================================
   OFFER LIST MODULE - UNIQUE COMPETITOR-INSPIRED AFFILIATE TABLE
   Optimized for Polish iGaming Market | 10 Verified Offers
   ========================================================================== */

.offerlist-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px 15px 35px;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--brand-text, #15201d);
}

.offerlist-wrapper * {
    box-sizing: border-box;
}

.aff-table-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
    font-size: 0.82rem;
    color: var(--brand-muted, #586b66);
}

.aff-table-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.aff-table-updated .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.aff-table-count {
    background: #eefaf8;
    color: #0d7367;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.76rem;
    border: 1px solid #bfe4dd;
}

/* Container */
.aff-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Individual Card */
.aff-row {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.aff-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 115, 103, 0.12);
    border-color: #0d7367;
}

/* First Card Highlight (Top Choice) */
.aff-row.aff-top-choice {
    border: 2px solid #ea580c;
    background: linear-gradient(180deg, #fffbf9 0%, #ffffff 100%);
    box-shadow: 0 6px 22px rgba(234, 88, 12, 0.12);
}

.aff-row.aff-top-choice:hover {
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.2);
    border-color: #c2410c;
}

/* Card Header Badges Bar */
.aff-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px 4px;
    flex-wrap: wrap;
    background: transparent;
}

.aff-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2.5px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aff-badge.badge-top {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #ffedd5;
}

.aff-badge.badge-approved {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}

.aff-badge.badge-hot {
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}

.aff-badge.badge-new {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.aff-badge.badge-vip {
    color: #7e22ce;
    background: #faf5ff;
    border: 1px solid #f3e8ff;
}

/* Card Main Body Grid */
.aff-card-body {
    display: grid;
    grid-template-columns: 38px 125px 1.4fr 1.3fr 110px 145px;
    align-items: center;
    gap: 16px;
    padding: 8px 18px 16px;
}

/* Rank Badge */
.aff-rank-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aff-rank {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.92rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.aff-row.aff-top-choice .aff-rank,
.aff-rank.rank-1 {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.aff-rank.rank-2 {
    background: linear-gradient(135deg, #0d7367 0%, #0a4f47 100%);
    color: #ffffff;
    border: none;
}

.aff-rank.rank-3 {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
}

/* Logo Box */
.aff-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.aff-logo-box {
    width: 125px;
    height: 66px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

.aff-row.aff-top-choice .aff-logo-box {
    border-color: #fdba74;
}

.aff-logo-box:hover {
    border-color: #0d7367;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.aff-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Bonus Column */
.aff-bonus-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.aff-casino-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
    display: block;
    line-height: 1.25;
}

.aff-bonus-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.aff-bonus-amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ea580c;
    line-height: 1.3;
}

.aff-bonus-pct {
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #c2410c;
}

/* Features & Payments Column */
.aff-features-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-width: 0;
}

.aff-features-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.aff-feature-item {
    font-size: 0.81rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.35;
    font-weight: 500;
}

.aff-feature-item .check {
    color: #10b981;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.aff-payments-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 5px;
}

.aff-pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 6px;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #475569;
    text-transform: uppercase;
    white-space: nowrap;
}

.aff-pay-badge.blik {
    color: #000000;
    border-color: #cbd5e1;
    background: #ffffff;
}

.aff-pay-badge.p24 {
    color: #b91c1c;
    border-color: #fecdd3;
    background: #fff1f2;
}

.aff-pay-badge.visa {
    color: #1e3a8a;
    font-style: italic;
}

.aff-pay-badge.mc {
    color: #dc2626;
}

.aff-pay-badge.mifinity {
    color: #0284c7;
}

.aff-pay-badge.crypto {
    color: #d97706;
    background: #fffbeb;
    border-color: #fde68a;
}

.aff-pay-badge.revolut {
    color: #0075ff;
}

.aff-pay-badge.skrill {
    color: #831843;
}

.aff-pay-badge.neteller {
    color: #65a30d;
}

.aff-pay-badge.psf {
    color: #0284c7;
}

/* Score Column */
.aff-score-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aff-score-num {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.aff-stars {
    color: #f59e0b;
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin: 3px 0 2px;
}

.aff-score-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* CTA Column */
.aff-cta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.aff-btn {
    background: linear-gradient(135deg, #0d7367 0%, #0a4f47 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(13, 115, 103, 0.25);
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.aff-btn:hover {
    background: linear-gradient(135deg, #0f8678 0%, #0d7367 100%);
    box-shadow: 0 5px 16px rgba(13, 115, 103, 0.35);
    transform: translateY(-1px);
}

.aff-row.aff-top-choice .aff-btn {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}

.aff-row.aff-top-choice .aff-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 5px 16px rgba(234, 88, 12, 0.45);
}

.aff-review-link {
    font-size: 0.72rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.aff-review-link:hover {
    color: #0d7367;
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE LAYOUT FOR TABLE
   ========================================================================== */

@media (max-width: 960px) {
    .aff-card-body {
        grid-template-columns: 32px 115px 1.3fr 1.2fr 135px;
        gap: 12px;
    }
    .aff-score-wrap {
        display: none;
    }
    .aff-logo-box {
        width: 115px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .aff-card-badges {
        padding: 10px 14px 4px;
        justify-content: flex-start;
    }

    .aff-card-body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 6px 14px 16px;
    }

    .aff-mobile-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .aff-mobile-logo-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .aff-logo-box {
        width: 110px;
        height: 56px;
        flex-shrink: 0;
    }

    .aff-bonus-col {
        text-align: left;
    }

    .aff-features-col {
        padding: 4px 0;
    }

    .aff-score-wrap {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2px;
    }

    .aff-score-num {
        font-size: 1.15rem;
    }

    .aff-btn {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}
