/* Google AdSense Styles */

/* Sidebar Ads (Left & Right) */
.sidebar-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 100;
}

.left-ad {
    left: 10px;
}

.right-ad {
    right: 10px;
}

/* Ad Containers */
.ad-container {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    border: 1px dashed #1877f2;
}

/* Top Banner Ad */
.ad-top {
    max-width: 728px;
    margin: 20px auto;
    min-height: 90px;
}

/* Rectangle Ad */
.ad-rectangle {
    max-width: 336px;
    margin: 20px auto;
    min-height: 280px;
}

/* In-Content Ad */
.ad-content {
    max-width: 600px;
    margin: 30px auto;
    min-height: 250px;
}

/* Ad Placeholder (for testing) */
.ad-placeholder {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 12px;
    border: 2px dashed #ddd;
}

/* AdSense Responsive */
.adsbygoogle {
    display: block;
}

/* Mobile Responsive Ads */
@media (max-width: 1200px) {
    .sidebar-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-top {
        max-width: 320px;
        min-height: 50px;
    }
    
    .ad-rectangle {
        max-width: 300px;
        min-height: 250px;
    }
    
    .ad-content {
        max-width: 300px;
        min-height: 250px;
    }
    
    .ad-container {
        margin: 15px 0;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .ad-top {
        max-width: 280px;
        min-height: 50px;
    }
    
    .ad-rectangle,
    .ad-content {
        max-width: 280px;
        min-height: 200px;
    }
}

/* Ad Hover Effects */
.ad-container:hover {
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Sticky Ad Banner */
.sticky-ad {
    position: sticky;
    top: 10px;
    z-index: 999;
}

/* Bottom Ad */
.bottom-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-ad .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* Ad Loading Animation */
.ad-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(24, 119, 242, 0.3);
    border-radius: 50%;
    border-top-color: #1877f2;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Auto Ad Styling */
.auto-ad {
    margin: 20px auto;
    text-align: center;
}

/* Native Ad Styling */
.native-ad {
    background: #f8f9ff;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.native-ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}