@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Reset & Container Defaults */
.offerlist-wrapper {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
    color: #1e293b;
}

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

/* ===== AFFILIATE OFFER TABLE ===== */
.aff-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0 30px;
    width: 100%;
}

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

.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;
}

.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;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

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

.aff-rating {
    background: #333333;
    color: #ffb400;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.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: 5px;
    flex-shrink: 0;
    width: 90px;
}

.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;
}

.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;
}

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

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

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

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

.aff-feature-item {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.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: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.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;
}

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

.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);
}

/* Responsive Mobile Layout */
@media (max-width: 992px) {
    .aff-row {
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
    }
    .aff-left {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    .aff-logo-box {
        width: 140px;
        height: 60px;
    }
    .aff-badge-col {
        display: none;
    }
    .aff-bonus-col, .aff-features-col {
        width: 48%;
        min-width: 140px;
    }
    .aff-cta-col {
        width: 100%;
        margin-top: 4px;
    }
    .aff-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

@media (max-width: 540px) {
    .aff-bonus-col, .aff-features-col {
        width: 100%;
    }
}
