/* ==========================================================================
   Affiliate Offerlist Module Stylesheet - InwestowanieOdPodstaw.pl
   Fully responsive, zero-conflict styling for casino ranking cards
   ========================================================================== */

.offerlist-wrapper {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    box-sizing: border-box;
    width: 100%;
    color: #1e293b;
}

.offerlist-wrapper h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* ===== AFFILIATE OFFER TABLE ===== */
.aff-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.aff-row {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    position: relative;
    color: #1a1a1a;
    box-sizing: border-box;
    width: 100%;
}

.aff-row:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.15);
    border-color: #10b981;
    transform: translateY(-2px);
}

/* Left Column: Logo & Star Rating */
.aff-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 135px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.aff-logo-box {
    background: #ffffff;
    border-radius: 10px;
    width: 135px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.aff-logo-box:hover {
    transform: scale(1.03);
    border-color: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.18);
    text-decoration: none !important;
}

.aff-logo-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    display: block;
}

.aff-rating {
    background: #1e293b;
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.05em;
    box-sizing: border-box;
}

.aff-rating span {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Badge Column (Ribbon & Gift) */
.aff-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    width: 95px;
    box-sizing: border-box;
}

.aff-ribbon {
    width: 100%;
    height: 24px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.aff-gift-icon {
    width: 100%;
    padding: 3px 6px;
    border-radius: 5px;
    border: 1px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
    flex-shrink: 0;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Bonus Column */
.aff-bonus-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 140px;
    box-sizing: border-box;
}

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

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

/* Features Column */
.aff-features-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1.2;
    min-width: 160px;
    box-sizing: border-box;
}

.aff-feature-item {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

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

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

.aff-pay-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

.aff-pay-badge.visa { color: #1a1f71; }
.aff-pay-badge.mc { color: #eb001b; }
.aff-pay-badge.mifinity { color: #007bc1; }
.aff-pay-badge.psf { color: #0099e5; }
.aff-pay-badge.crypto { color: #d97706; }
.aff-pay-badge.revolut { color: #0075ff; }
.aff-pay-badge.skrill { color: #811e4d; }
.aff-pay-badge.neteller { color: #8dc63f; }

/* CTA Column */
.aff-cta-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.aff-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid #10b981;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
}

.aff-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
    text-decoration: none !important;
}

/* Responsive Mobile Layout (Stack cleanly without breaking page width) */
@media (max-width: 992px) {
    .offerlist-wrapper {
        padding: 18px 12px;
    }
    .offerlist-wrapper h2 {
        font-size: 1.35rem;
        margin-bottom: 16px;
    }
    .aff-table {
        gap: 12px;
    }
    .aff-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .aff-left {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .aff-logo-box {
        width: 120px;
        height: 50px;
    }
    .aff-badge-col {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }
    .aff-ribbon, .aff-gift-icon {
        width: auto;
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    .aff-bonus-col {
        width: 100%;
    }
    .aff-bonus-amount {
        font-size: 1.02rem;
    }
    .aff-features-col {
        width: 100%;
    }
    .aff-feature-item {
        font-size: 0.8rem;
    }
    .aff-cta-col {
        width: 100%;
        margin-top: 2px;
    }
    .aff-btn {
        width: 100%;
        text-align: center;
        padding: 11px 16px;
        font-size: 0.85rem;
    }
}
