/* Smart Ad System Styles */

/* Common Ad Slot Styling */
.ad-slot-container {
    display: block;
    clear: both;
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
}

.ad-label {
    display: none;
    /* Hidden by default */
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

.ad-slot-container.ad-loaded .ad-label {
    display: block;
    /* Show only when loaded */
}


/* List Ads (Between Posts) */

/* List Ads (Between Posts) */
.list-ad,
.header-ad,
.section-ad,
.footer-section-ad,
.native-ad {
    margin: 40px auto;
    /* No default padding/border to ensure height is 0 if empty */
}

.list-ad.ad-loaded,
.header-ad.ad-loaded,
.section-ad.ad-loaded,
.footer-section-ad.ad-loaded,
.native-ad.ad-loaded {
    padding: 10px;
    background: #f8f9fa;
    border: 1px dashed #e0e0e0;
}



/* Sticky Footer Ad */
.sticky-footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    min-height: 60px;
    /* Adjust based on ad height */
    transition: transform 0.3s ease-in-out;
}

.sticky-footer-ad.closed {
    transform: translateY(100%);
}

.sticky-ad-close {
    position: absolute;
    top: -25px;
    right: 10px;
    background: #333;
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sticky-ad-close:hover {
    background: #000;
}

/* Sidebar Ad (if applicable) */
.sidebar-ad-sticky {
    position: sticky;
    top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sticky-footer-ad {
        padding: 5px 0;
    }
}