﻿.slotmaster-ad-container {
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
}

.slotmaster-ad-container > * {
    max-width: 100%;
}

.slotmaster-ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 5px;
}

.slotmaster-centered-ads {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.slotmaster-sticky-ad {
    position: fixed;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    text-align: center;
}

.slotmaster-sticky-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
}

.slotmaster-sticky-top {
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
}

.slotmaster-sticky-sidebar-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.slotmaster-sticky-sidebar-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.slotmaster-sticky-floating-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px;
    max-width: 400px;
}

.slotmaster-sticky-slide-in {
    position: fixed;
    bottom: 20px;
    right: -100%;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px 0 0 8px;
    padding: 15px;
    max-width: 350px;
    transition: right 0.5s ease;
}

.slotmaster-animation-slide .slotmaster-sticky-slide-in {
    right: 0;
}

.slotmaster-sticky-corner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px;
    max-width: 250px;
}

.slotmaster-sticky-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    color: #666;
    z-index: 1;
}

.slotmaster-sticky-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Animations */
.slotmaster-animation-fade {
    animation: slotmasterFadeIn 0.5s ease;
}

.slotmaster-animation-slide {
    animation: slotmasterSlideIn 0.5s ease;
}

.slotmaster-animation-zoom {
    animation: slotmasterZoomIn 0.3s ease;
}

@keyframes slotmasterFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slotmasterSlideIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slotmasterZoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Popup */
.slotmaster-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slotmaster-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.slotmaster-popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1;
}

.slotmaster-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    color: #666;
    z-index: 2;
}

/* Ad blocker message */
.slotmaster-adblocker-message {
    padding: 20px;
    background: #fff8e5;
    border: 1px solid #f0dca0;
    border-radius: 4px;
    text-align: center;
    margin: 10px 0;
}

.slotmaster-adblocker-message p {
    margin: 0;
    font-size: 14px;
    color: #8a6d3b;
}

/* Video ads */
.slotmaster-video-ad {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.slotmaster-video-ad iframe,
.slotmaster-video-ad video {
    width: 100%;
    height: auto;
}

.slotmaster-video-youtube,
.slotmaster-video-vimeo {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.slotmaster-video-youtube iframe,
.slotmaster-video-vimeo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gutenberg blocks */
.slotmaster-gutenberg-ad,
.slotmaster-gutenberg-ad-group,
.slotmaster-gutenberg-banner {
    margin: 20px 0;
    text-align: center;
}

/* Elementor */
.slotmaster-elementor-banner {
    text-align: center;
}

.slotmaster-elementor-banner img {
    height: auto;
}

/* Lazy load */
.slotmaster-lazy-ad {
    min-height: 1px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .slotmaster-sticky-ad {
        padding: 5px;
    }
    .slotmaster-popup-content {
        padding: 15px;
        max-width: 95%;
    }
}
