/**
 * Google AdSense Styles
 * AdSense-friendly styling for optimal ad display
 * 
 * @package Skillify_Calculators
 */

/* ============================================
   ADSENSE WRAPPER
   ============================================ */

.skillify-adsense-wrapper {
    margin: 20px 0;
    text-align: center;
    clear: both;
    overflow: hidden;
}

.skillify-adsense-wrapper ins {
    display: block;
    margin: 0 auto;
}

/* ============================================
   SPECIFIC AD PLACEMENTS
   ============================================ */

/* After Header */
.adsense-after-header {
    margin: 20px auto;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Before/After Content */
.adsense-before-content,
.adsense-after-content {
    margin: 30px auto;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

/* Sidebar Ads */
.adsense-sidebar-top,
.adsense-sidebar-bottom {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Between Calculators */
.adsense-between-calculators {
    grid-column: 1 / -1;
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
}

/* Footer Ad */
.adsense-footer {
    margin: 20px auto;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   RESPONSIVE ADSENSE
   ============================================ */

@media (max-width: 768px) {
    .skillify-adsense-wrapper {
        margin: 15px 0;
    }
    
    .adsense-before-content,
    .adsense-after-content {
        margin: 20px auto;
        padding: 15px;
    }
    
    .adsense-between-calculators {
        margin: 30px 0;
        padding: 20px;
    }
    
    .adsense-sidebar-top,
    .adsense-sidebar-bottom {
        margin: 15px 0;
        padding: 10px;
    }
}

/* ============================================
   ADSENSE AUTO ADS COMPATIBILITY
   ============================================ */

/* Ensure proper spacing for auto ads */
body {
    padding-top: 0 !important;
}

/* Prevent layout shift */
.skillify-adsense-wrapper ins {
    min-height: 100px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .skillify-adsense-wrapper {
        display: none !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skillify-adsense-wrapper {
    position: relative;
}

/* Screen reader text for ad labels (optional) */
.skillify-adsense-wrapper::before {
    content: 'Advertisement';
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


