/* Google Ads CSS Styles */

/* Ad Container Base Styles */
.google-ad-container {
    position: relative;
    margin: 20px auto;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* Header Ad Styles */
#header-ad-slot {
    width: 728px;
    height: 90px;
    margin: 15px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
}

/* Sidebar Ad Styles */
#sidebar-ad-slot {
    width: 300px;
    height: 250px;
    margin: 15px auto;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 12px;
}

/* Content Ad Styles */
#content-ad-slot {
    width: 728px;
    height: 90px;
    margin: 30px auto;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 12px;
}

/* Footer Ad Styles */
#footer-ad-slot {
    width: 728px;
    height: 90px;
    margin: 20px auto;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border: none;
    border-radius: 12px;
}

/* Mobile Ad Styles */
#mobile-ad-slot {
    width: 320px;
    height: 50px;
    margin: 15px auto;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border: none;
    border-radius: 8px;
}

/* Ad Placeholder Content */
.google-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

.google-ad-container::after {
    content: 'Advertisement';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #header-ad-slot,
    #content-ad-slot,
    #footer-ad-slot {
        width: 100%;
        max-width: 728px;
        height: 90px;
    }
    
    #sidebar-ad-slot {
        width: 100%;
        max-width: 300px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .google-ad-container {
        margin: 15px auto;
    }
    
    #header-ad-slot,
    #content-ad-slot,
    #footer-ad-slot {
        width: 100%;
        max-width: 320px;
        height: 50px;
        border-radius: 8px;
    }
    
    #sidebar-ad-slot {
        width: 100%;
        max-width: 300px;
        height: 250px;
    }
    
    #mobile-ad-slot {
        width: 100%;
        max-width: 320px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .google-ad-container {
        margin: 10px auto;
    }
    
    #header-ad-slot,
    #content-ad-slot,
    #footer-ad-slot,
    #mobile-ad-slot {
        width: 100%;
        max-width: 300px;
        height: 50px;
    }
    
    #sidebar-ad-slot {
        width: 100%;
        max-width: 250px;
        height: 200px;
    }
}

/* Loading Animation */
.google-ad-container.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Ad Block Detection */
.google-ad-container.ad-blocked {
    background: #ff6b6b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.google-ad-container.ad-blocked::before {
    content: 'Please disable ad blocker to support our site';
    background: none;
    color: white;
    text-align: center;
    padding: 20px;
}

.google-ad-container.ad-blocked::after {
    display: none;
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .google-ad-container {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .google-ad-container::before {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
    }
}

/* Print Styles */
@media print {
    .google-ad-container {
        display: none !important;
    }
} 