/**
 * Chateau DSP — Frontend Styles
 *
 * @package Chateau_DSP
 */

/* ---- Container states ---- */

/* Explicitly-placed ads (shortcode / widget / theme helper) — always visible. */
.dsp-ad-container {
    margin: 20px 0;
    text-align: center;
}

/* Auto-injected fallback ads — hidden until the detection script fires. */
.dsp-ad-auto {
    display: none;
    margin: 20px 0;
    text-align: center;
}

.dsp-ad-auto.dsp-ad-active {
    display: block !important;
}

/* ---- NordVPN dynamic creatives (recommendation-box) ---- */
.recommendation-box {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.recommendation-box .promo-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Text fallback (shown when image fails) */
.promo-content {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.promo-text-content { color: #212529; }

.promo-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #212529;
}

.promo-description {
    font-size: 14px;
    margin: 0 0 15px;
    color: #6c757d;
    line-height: 1.5;
}

.promo-cta {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s;
}

.promo-cta:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* ---- HTML / GSAP creatives ---- */
.dsp-creative--html {
    display: block;
    max-width: 100%;
    overflow: hidden;
}

/* ---- Image creatives ---- */
.dsp-creative--image a {
    display: inline-block;
    line-height: 0;
}

.dsp-creative--image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .recommendation-box { margin: 15px 0; }
    .promo-content       { padding: 15px; }
    .promo-title         { font-size: 16px; }
    .promo-description   { font-size: 13px; }
}
