/**
 * Ads Styles
 * 
 * Frontend styles for ad placements.
 * Only loaded when at least one ad is enabled.
 *
 * @package BoxedTheme
 */

/* ===== AD WRAPPER - BASE ===== */
.boxedtheme-ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* ===== AD CONTAINER ===== */
.boxedtheme-ad-container {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Ensure images and iframes within ads are responsive */
.boxedtheme-ad-container img,
.boxedtheme-ad-container iframe {
    max-width: 100%;
    height: auto;
}

/* ===== FULL WIDTH ADS (Above/Below Header, Above Footer) ===== */
.boxedtheme-ad--full-width {
    margin: 15px 0;
}

.boxedtheme-ad--full-width .boxedtheme-ad-container {
    max-width: var(--total-width, 1060px);
}

/* ===== CONTENT WIDTH ADS (Below Featured Image) ===== */
.boxedtheme-ad--content-width {
    padding: 20px 0;
    width: 100%;
}

.boxedtheme-ad--content-width .boxedtheme-ad-container {
    max-width: 100%;
}

/* ===== LOCATION-SPECIFIC STYLES ===== */

/* Above Header */
.boxedtheme-ad--above-header {
    /* Minimal spacing above header */
}

/* Below Header */
.boxedtheme-ad--below-header {
    /* Spacing below the header/nav */
}

/* Below Featured Image */
.boxedtheme-ad--below-featured {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Above Footer */
.boxedtheme-ad--above-footer {
    /* Spacing above footer */
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1100px) {
    .boxedtheme-ad--full-width {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .boxedtheme-ad--full-width {
        padding: 10px 15px;
    }
    
    .boxedtheme-ad--content-width {
        padding: 15px 0;
    }
    
    .boxedtheme-ad--below-featured {
        margin-top: 8px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .boxedtheme-ad--full-width {
        padding: 8px 10px;
    }
    
    .boxedtheme-ad--content-width {
        padding: 10px 0;
    }
}
