/* marketplace.css - Isolated styling for Affiliate Offers & Carousels */

.mp-wrapper {
    margin-top: 30px;
    border-top: 2px solid #f0f2f5;
    padding-top: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    overflow: hidden; 
}

.mp-carousel-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 15px 5px 35px 5px; 
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

.mp-carousel-container::-webkit-scrollbar {
    height: 8px;
}
.mp-carousel-container::-webkit-scrollbar-track {
    background: transparent;
}
.mp-carousel-container::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 10px;
}

/* The Generic Offer Card Design */
.mp-card {
    min-width: 320px;
    height: 200px;
    border-radius: 16px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    scroll-snap-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.mp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Glassy overlay effect */
.mp-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
}

.mp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.mp-bank-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mp-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #e6c27a, #d4af37);
    border-radius: 5px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
    opacity: 0.9;
}

.mp-card-middle {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.mp-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.mp-perk-title {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 3px;
}

.mp-perk-value {
    font-size: 14px;
    font-weight: bold;
}

.mp-apply-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    backdrop-filter: blur(5px);
    transition: background 0.2s, transform 0.1s;
}

.mp-card:hover .mp-apply-btn {
    background: rgba(255, 255, 255, 0.3);
}

.mp-apply-btn:active {
    transform: scale(0.95);
}

/* Partner Gradients */
.bg-monzo { background: linear-gradient(135deg, #ff4b4b, #ff7e5f); }
.bg-barclays { background: linear-gradient(135deg, #00AEEF, #00395D); }
.bg-amex { background: linear-gradient(135deg, #bdc3c7, #2c3e50); }
.bg-revolut { background: linear-gradient(135deg, #111111, #434343); }
.bg-santander { background: linear-gradient(135deg, #ec0000, #990000); }

/* New Affiliates */
.bg-clearscore { background: linear-gradient(135deg, #111111, #333333); }
.bg-experian { background: linear-gradient(135deg, #00508F, #002C5B); }
.bg-creditkarma { background: linear-gradient(135deg, #00875A, #004D33); }
.bg-octopus { background: linear-gradient(135deg, #E6007E, #8A004B); }
.bg-uswitch { background: linear-gradient(135deg, #E72B3E, #991C28); }
.bg-moneysupermarket { background: linear-gradient(135deg, #0070F0, #003B80); }