/* === Заглушка «Рекламное место свободно» — премиум-дизайн.
   Подключается автоматически из render-ad.php когда выводится EMBED. */

.ad-placeholder.ad-embed { padding: 0; }

.ad-empty-slot {
    --aes-accent: #f97316;
    --aes-tint:   #fff5eb;
    /* Reset для случая когда тег <button> (unstyle) */
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 280px;
    height: 100%;
    padding: 36px 26px;
    background: linear-gradient(135deg, var(--aes-tint) 0%, #ffffff 55%, var(--aes-tint) 100%);
    border: 1px dashed rgba(249, 115, 22, 0.25);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.32s cubic-bezier(.2,.7,.3,1.15),
                box-shadow 0.32s ease,
                border-color 0.32s ease;
    cursor: pointer;
}

/* Декоративные круги в углах */
.ad-empty-slot::before,
.ad-empty-slot::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ad-empty-slot::before {
    top: -70px; right: -70px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 65%);
}
.ad-empty-slot::after {
    bottom: -50px; left: -50px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.10), transparent 70%);
}

/* Контент над декором */
.ad-empty-slot > * { position: relative; z-index: 1; }

/* Большая иконка-звезда */
.ad-empty-slot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aes-accent), color-mix(in srgb, var(--aes-accent) 60%, white));
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--aes-accent) 30%, transparent),
                inset 0 -4px 10px rgba(0,0,0,0.10);
    margin-bottom: 4px;
    animation: aesIconPulse 3s ease-in-out infinite;
}
@keyframes aesIconPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

/* Eyebrow */
.ad-empty-slot-eyebrow {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--aes-accent);
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

/* Title */
.ad-empty-slot-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #111;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

/* Описание */
.ad-empty-slot-desc {
    font-size: 0.84rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 4px 0 12px;
    max-width: 260px;
}

/* CTA-пилюля */
.ad-empty-slot-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--aes-accent);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ad-empty-slot-cta::after {
    content: "→";
    font-weight: 900;
    transition: transform 0.3s ease;
}

/* Hover */
.ad-empty-slot:hover {
    transform: translateY(-4px);
    border-color: var(--aes-accent);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.16);
}
.ad-empty-slot:hover .ad-empty-slot-cta {
    background: var(--aes-accent);
    color: #fff;
    transform: translateY(-1px);
}
.ad-empty-slot:hover .ad-empty-slot-cta::after {
    transform: translateX(4px);
}

/* Промо-баннер большой — заглушка тот же светлый стиль, просто крупнее */
.promo-banner > .ad-empty-slot {
    min-height: 280px;
    padding: 50px 60px;
    border-radius: 24px;
    /* фон/бордер/текст наследуются от базового .ad-empty-slot — единый стиль */
}
.promo-banner > .ad-empty-slot .ad-empty-slot-icon { width: 84px; height: 84px; font-size: 2.4rem; }
.promo-banner > .ad-empty-slot .ad-empty-slot-title { font-size: 2rem; }
.promo-banner > .ad-empty-slot .ad-empty-slot-desc  { font-size: 0.96rem; max-width: 420px; }
.promo-banner > .ad-empty-slot::before  { width: 280px; height: 280px; }

/* Reduce-motion */
@media (prefers-reduced-motion: reduce) {
    .ad-empty-slot,
    .ad-empty-slot-icon,
    .ad-empty-slot-cta,
    .ad-empty-slot-cta::after { animation: none; transition: none; }
}

/* === Режим «Только баннер» (IMAGE_ONLY в ИБ26): одна обложка + плашка «Реклама».
   Снимаем фиксированные пропорции обложки, чтобы креатив любого формата (в т.ч. вертикальный 240×400)
   выводился целиком, без обрезки. Бордер-радиус и тень наследуются от .ad-placeholder раздела. === */
.ad-placeholder.ad-placeholder--image-only { display: block; padding: 0; border-radius: 20px; overflow: hidden; line-height: 0; }
/* На планшете/мобиле сайдбар становится во всю ширину — не раздуваем креатив, держим ≤420px по центру */
.ad-placeholder.ad-placeholder--image-only { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
.ad-placeholder.ad-placeholder--image-only .ad-cover { aspect-ratio: auto; height: auto; position: relative; }
.ad-placeholder.ad-placeholder--image-only .ad-img { width: 100%; height: auto; display: block; object-fit: contain; }
/* Плашка «Реклама» поверх картинки — дефолт для разделов, где .ad-badge-small не стилизован */
.ad-placeholder.ad-placeholder--image-only .ad-badge-small {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    background: rgba(255, 252, 246, 0.92); color: #7a500e;
    padding: 5px 11px; border-radius: 999px;
    font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
