/* Ads Module Styles */

/* General Ad Container */
.ad-container {
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.ad-container:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Ad Image */
.ad-image {
    width: 100%;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Ad Content */
.ad-content {
    padding: 15px;
}

.ad-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.ad-text {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

/* Ad Attribution */
.ad-attribution {
    background-color: #f8f9fa;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: right;
    border-top: 1px solid #e9ecef;
    font-style: italic;
}

/* Ad Link */
.ad-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ad-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Header Ads */
.header-ad {
    margin-bottom: 20px;
}

.header-ad-image {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}

/* Sidebar Ads */
.sidebar-ad {
    margin-bottom: 25px;
}

.sidebar-ad-image {
    max-height: 300px;
    object-fit: cover;
}

/* Footer Ads */
.footer-ads-container {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
}

.footer-ad {
    margin-bottom: 20px;
}

.footer-ad-image {
    height: 100px;
    object-fit: contain;
    background-color: #ffffff;
}

/* Content Ads */
.content-ad {
    margin: 30px 0;
    text-align: center;
}

.content-ad-image {
    max-height: 250px;
    object-fit: contain;
    margin: 0 auto;
}

/* Ad Placeholder */
.ad-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 10px 0;
    }
    
    .header-ad-image {
        max-height: 80px;
    }
    
    .sidebar-ad-image {
        max-height: 200px;
    }
    
    .footer-ad-image {
        height: 80px;
    }
    
    .content-ad-image {
        max-height: 200px;
    }
    
    .ad-title {
        font-size: 1rem;
    }
    
    .ad-text {
        font-size: 0.85rem;
    }
    
    .ad-attribution {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

/* Ad Types */
.ad-banner {
    /* Styles for banner ads */
}

.ad-sidebar {
    /* Styles for sidebar ads */
}

.ad-popup {
    /* Styles for popup ads */
}

.ad-video {
    /* Styles for video ads */
}

.ad-native {
    /* Styles for native ads */
}

/* Ad Positions */
.ad-position-header {
    /* Styles for header position ads */
}

.ad-position-sidebar {
    /* Styles for sidebar position ads */
}

.ad-position-footer {
    /* Styles for footer position ads */
}

.ad-position-content {
    /* Styles for content position ads */
}