/* ============================================================
   LOGIN ADS — تبلیغات صفحه لاگین
   ============================================================ */

/* ===== بنر پایه ===== */
.lads-banner {
    position: fixed;
    z-index: 8000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: ladsFadeIn 0.3s ease-out;
    direction: rtl;
    max-width: calc(100vw - 20px);
    background: #fff;
}

body.dark .lads-banner {
    background: #1e293b;
}

@keyframes ladsFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== موقعیت‌ها ===== */
.lads-banner[data-position="top-center"] {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.lads-banner[data-position="bottom-center"] {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.lads-banner[data-position="top-left"] {
    top: 12px;
    left: 12px;
}

.lads-banner[data-position="top-right"] {
    top: 12px;
    right: 12px;
}

.lads-banner[data-position="bottom-left"] {
    bottom: 12px;
    left: 12px;
}

.lads-banner[data-position="bottom-right"] {
    bottom: 12px;
    right: 12px;
}

/* ===== محتوا ===== */
.lads-banner .lads-link {
    display: block;
    line-height: 0;
    cursor: pointer;
}

.lads-banner .lads-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.25s;
}

.lads-banner:hover .lads-image {
    transform: scale(1.02);
}

/* اندازه‌ی بنرهای افقی */
.lads-banner[data-position="top-center"] .lads-image,
.lads-banner[data-position="bottom-center"] .lads-image {
    width: 300px;
    height: 60px;
}

/* اندازه‌ی بنرهای گوشه‌ای */
.lads-banner[data-position="top-left"] .lads-image,
.lads-banner[data-position="top-right"] .lads-image,
.lads-banner[data-position="bottom-left"] .lads-image,
.lads-banner[data-position="bottom-right"] .lads-image {
    width: 200px;
    height: 200px;
}

/* ===== دکمه‌ی بستن ===== */
.lads-banner .lads-close {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: inherit;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.lads-banner .lads-close:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.15);
}

/* ===== برچسب تبلیغ ===== */
.lads-banner .lads-label {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fbbf24;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 2;
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.lads-video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9600;
    direction: rtl;
    animation: ladsVideoFadeIn 0.25s ease-out;
}

.lads-video-overlay.show {
    display: flex;
}

@keyframes ladsVideoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lads-video-modal {
    width: min(800px, 100%);
    max-height: calc(100vh - 40px);
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    animation: ladsVideoSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes ladsVideoSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lads-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(30, 41, 59, 0.95);
    color: #fff;
    flex-shrink: 0;
    gap: 10px;
}

.lads-video-header .lads-title {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lads-video-header .lads-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
    flex-shrink: 0;
}

.lads-video-header .lads-close-video {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: inherit;
    flex-shrink: 0;
    padding: 0;
}

.lads-video-header .lads-close-video:hover {
    background: rgba(239, 68, 68, 0.5);
}

.lads-video-body {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.lads-video-body iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lads-video-body .lads-video-error {
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
}

/* ===== موبایل ===== */
@media (max-width: 600px) {
    .lads-banner[data-position="top-center"],
    .lads-banner[data-position="bottom-center"] {
        left: 10px;
        right: 10px;
        transform: none;
    }

    .lads-banner[data-position="top-center"] .lads-image,
    .lads-banner[data-position="bottom-center"] .lads-image {
        width: 100%;
        height: auto;
    }

    .lads-banner[data-position="top-left"] .lads-image,
    .lads-banner[data-position="top-right"] .lads-image,
    .lads-banner[data-position="bottom-left"] .lads-image,
    .lads-banner[data-position="bottom-right"] .lads-image {
        width: 100px;
        height: 100px;
    }

    .lads-video-overlay {
        padding: 10px;
    }

    .lads-video-modal {
        max-height: calc(100vh - 20px);
        border-radius: 10px;
    }
}