/* Google AdSense Integration Styles */

/* General Ad Container Styles */
.ad-container {
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.ad-container::before {
    content: "إعلان";
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 10px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 1;
}

/* Header Ad Styles */
.ad-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    text-align: center;
}

.ad-header::before {
    color: white;
    background: rgba(0, 0, 0, 0.2);
}


/* Products Ad Styles (Horizontal between products) */
.ad-products {
    background: transparent;
    border: none;
    color: inherit;
    text-align: center;
    margin: 30px 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    min-height: auto;
    display: block;
}

/* Simple ad content styling */
.ad-products div,
.ad-products iframe,
.ad-products img {
    max-width: 100%;
    height: auto;
    border: none;
    background: transparent;
}

/* Remove any default styling from ad content */
.ad-products * {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent !important;
}

/* Override any inline styles for products ads */
.ad-products div[style*="background"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
}

/* Clean Google AdSense styling */
.ad-products ins,
.ad-products .adsbygoogle {
    background: transparent !important;
    border: none !important;
}


/* Modal Ad Styles */
.ad-modal {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border: none;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
}

.ad-modal::before {
    color: white;
    background: rgba(0, 0, 0, 0.2);
}

/* Sidebar Ad Styles */
.ad-sidebar {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: 1px solid #d1ecf1;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.ad-sidebar::before {
    color: #0c5460;
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
        padding: 8px;
    }
    
    .ad-products {
        margin: 20px 0;
        padding: 15px;
    }
    
    .ad-container::before {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* AdSense Responsive Units */
.adsbygoogle {
    display: block;
    width: 100%;
    height: auto;
}

/* Hide ads label on small screens */
@media (max-width: 480px) {
    .ad-container::before {
        display: none;
    }
}

/* Animation for ads */
.ad-container {
    opacity: 0;
    animation: fadeInAd 1s ease-in-out forwards;
}

@keyframes fadeInAd {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for interactive ads */
.ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Special styling for different ad formats */
.ad-container.banner {
    min-height: 90px;
}

.ad-container.rectangle {
    min-height: 250px;
    max-width: 300px;
    margin: 20px auto;
}

.ad-container.leaderboard {
    min-height: 90px;
    max-width: 728px;
    margin: 20px auto;
}

.ad-container.skyscraper {
    min-height: 600px;
    max-width: 160px;
    margin: 20px 0;
}

