/* ========================================
   Sponsor Ads — Lunkerdatabase Style
   ======================================== */

:root {
    --ad-primary: #2c5f7e;
    --ad-accent: #ff6b35;
    --ad-dark: #0d1e2e;
}

.sponsor-ad {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 12px auto;
    width: 100%;
    box-sizing: border-box;
    border-left: 4px solid var(--ad-accent);
}

.sponsor-ad__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ---- Close Button ---- */
.sponsor-ad__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.sponsor-ad__close:hover { background: rgba(0,0,0,0.75); }

/* ---- Home page placements ---- */
.sponsor-ad--home_hero,
.sponsor-ad--home_bottom {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-home-wrap { padding: 0 20px; }

@media (max-width: 768px) {
    .sponsor-home-wrap { padding: 0 12px; }
}

/* ========================================
   BANNER AD — All tiers
   Full-width image with bottom overlay
   ======================================== */

.sponsor-ad__banner {
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ad-dark);
}

/* Background image */
.sponsor-ad__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gradient overlay — dark at bottom */
.sponsor-ad__banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13,30,46,0.95) 0%,
        rgba(13,30,46,0.5) 50%,
        rgba(13,30,46,0.1) 100%
    );
    z-index: 1;
}

/* Left accent line — handled by border-left on .sponsor-ad */

/* Content area */
.sponsor-ad__info {
    position: relative;
    z-index: 3;
    padding: 16px 48px 14px 16px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

/* Logo */
.sponsor-ad__logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 5px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Text block */
.sponsor-ad__text-block {
    flex: 1;
    min-width: 0;
}

.sponsor-ad__presented {
    font-size: 10px;
    color: var(--ad-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.sponsor-ad__brand {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 3px;
}

.sponsor-ad__headline {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px 0;
    line-height: 1.3;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sponsor-ad__desc {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    line-height: 1.5;
}

.sponsor-ad__source {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    display: block;
}

.sponsor-ad__badge {
    color: var(--ad-accent);
    font-weight: 600;
}

/* ---- Leaderboard theme override (light bg) ---- */
.sponsor-ad--leaderboard_top .sponsor-ad__banner,
.sponsor-ad--leaderboard_between .sponsor-ad__banner,
.sponsor-ad--leaderboard_card .sponsor-ad__banner {
    border-radius: 12px;
}