/**
 * Event Sticky Bottom Ad Styles
 * Mobile-first responsive design matching SportsPass London theme
 */

.event-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 180px;
    overflow: hidden;
}

/* Show ad after page load */
.event-sticky-ad.event-sticky-ad--visible {
    transform: translateY(0);
}

/* Hide ad when closed */
.event-sticky-ad.event-sticky-ad--hidden {
    transform: translateY(100%);
    pointer-events: none;
}

/* Ad content wrapper */
.event-sticky-ad__content {
    padding: 12px 15px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Close button */
.event-sticky-ad__close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    z-index: 1;
    padding: 0;
}

.event-sticky-ad__close:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.event-sticky-ad__close:active {
    transform: scale(0.95);
}

.event-sticky-ad__close svg {
    width: 16px;
    height: 16px;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .event-sticky-ad {
        max-height: 220px;
    }

    .event-sticky-ad__content {
        padding: 16px 20px;
        min-height: 100px;
    }

    .event-sticky-ad__close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .event-sticky-ad__close svg {
        width: 18px;
        height: 18px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .event-sticky-ad {
        max-height: 250px;
    }

    .event-sticky-ad__content {
        padding: 20px;
        min-height: 120px;
    }
}

/* Prevent layout shift */
body.event-sticky-ad-active {
    padding-bottom: 0 !important;
}

/* Ensure ad content doesn't overflow */
.event-sticky-ad__content > * {
    max-width: 100%;
    max-height: 100%;
}
