/* Ad Container Styles */
.ad-container {
    margin: 15px 0;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
}

.ad-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: sans-serif;
}

.ad-content {
    display: inline-block;
    max-width: 100%;
}

/* Responsive Ads */
.ad-responsive {
    max-width: 100%;
    height: auto;
}

.ad-responsive iframe,
.ad-responsive div {
    max-width: 100%;
    margin: 0 auto;
}

/* Header Banner */
.header-banner {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Sidebar Ad */
.sidebar-ad {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* In-Content Ad */
.in-content-ad {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Mobile Footer Ad */
.mobile-footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px;
    text-align: center;
    border-top: 1px solid #eee;
}

.mobile-footer-ad .ad-label {
    margin-bottom: 4px;
}

/* Vertical Ad */
.vertical-ad {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

/* CPM Ad */
.cpm-ad {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    min-height: 100px;
}

/* Native Ad */
.native-ad {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Hide mobile footer ad on desktop */
@media (min-width: 768px) {
    .mobile-footer-ad {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-banner {
        min-height: 90px;
    }
    
    .sidebar-ad {
        margin-bottom: 15px;
    }
    
    .vertical-ad {
        display: inline-block;
        margin: 10px auto;
    }
}

/* Print styles - hide ads when printing */
@media print {
    .ad-container {
        display: none !important;
    }
}

/* Lazy loading effect */
.ad-container.ad-loading {
    opacity: 0.5;
    background: #f0f0f0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container.ad-loading::before {
    content: "Loading advertisement...";
    font-size: 12px;
    color: #999;
}

/* Sticky sidebar ad */
.sidebar-ad {
    position: sticky;
    top: 100px;
}