/**
 * DreamNoos Dynamic Ads Styles
 * Styling for custom ads and ad containers
 */

/* Ad Container Base */
[data-ad-position] {
    margin: 1.5rem 0;
    min-height: 100px; /* Prevent layout shift */
}

/* Custom Ad Styles */
.custom-ad {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.custom-ad:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Sponsor Banner */
.custom-ad.sponsor-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.custom-ad.sponsor-banner h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.custom-ad.sponsor-banner .btn {
    background: white;
    color: #667eea;
    border: none;
}

.custom-ad.sponsor-banner .btn:hover {
    background: #f8f9fa;
}

/* Video Promo */
.custom-ad.video-promo {
    background: #000;
    padding: 0;
    overflow: hidden;
}

.custom-ad.video-promo video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

/* Affiliate Link */
.custom-ad.affiliate {
    background: #fff3cd;
    border-color: #ffc107;
}

.custom-ad.affiliate a {
    color: #d63384;
    font-weight: 600;
    text-decoration: none;
}

.custom-ad.affiliate a:hover {
    text-decoration: underline;
}

/* Banner Ad */
.custom-ad.banner {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.custom-ad.banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Google AdSense Container */
.adsense-container {
    text-align: center;
    margin: 1.5rem 0;
}

/* Sidebar Ads */
[data-ad-position="sidebar-top"],
[data-ad-position="sidebar-middle"] {
    margin: 1rem 0;
}

/* Content Ads */
[data-ad-position="content-top"] {
    margin-top: 2rem;
}

[data-ad-position="content-middle"] {
    margin: 3rem 0;
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    padding: 2rem 0;
}

[data-ad-position="content-bottom"] {
    margin-bottom: 2rem;
}

/* Header/Footer Ads */
[data-ad-position="header"],
[data-ad-position="footer"] {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0;
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-ad {
        padding: 1rem;
    }
    
    .custom-ad.sponsor-banner h4 {
        font-size: 1rem;
    }
    
    .custom-ad.video-promo video {
        max-height: 250px;
    }
}

