/* Custom Ad Styles for Better User Experience */

/* Ad containers */
.ad-container {
    margin: 20px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.ad-container:hover {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}

/* Dark theme support */
[data-theme-style="dark"] .ad-container {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
}

[data-theme-style="dark"] .ad-container:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
}

/* Responsive ad spacing */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
        padding: 8px;
    }
}

/* Sticky sidebar ads positioning */
.sticky-ad {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Native ad styling */
#container-b776892c8848027b0fb3ca2afc4aa5bf {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Banner ad responsiveness */
iframe[src*="aggregationdestructoppression.com"] {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .ad-container {
        margin: 10px -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Ad label for transparency */
.ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-align: center;
}

/* Smooth loading animation */
.ad-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 60px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hide ads on print */
@media print {
    .ad-container,
    [class*="ad-"],
    iframe[src*="aggregationdestructoppression.com"] {
        display: none !important;
    }
}