/* ================================================
   Qadiyah Ads — Frontend Ad Styles
   Non-intrusive, clean ad containers
   ================================================ */

/* ── Base ad container ── */
.qads-ad {
    margin: 0 auto;
    overflow: hidden;
    line-height: 0;
    text-align: center;
}

.qads-ad ins {
    display: block !important;
}

/* ── Banner alignments ── */
.qads-banner {
    margin: 20px auto;
    max-width: 100%;
}

.qads-align-center { text-align: center; }
.qads-align-left   { text-align: left; }
.qads-align-right  { text-align: right; }

/* ── Native ad ── */
.qads-native {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Monetag banner ── */
.qads-monetag-banner {
    margin: 20px auto;
    max-width: 100%;
}

/* ── Section slot (between homepage sections) ── */
.qads-section-slot {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px;
    text-align: center;
    opacity: 0;
    animation: qads-fade-in .6s ease forwards;
}

/* ── Card slot (between case cards in grid) ── */
.qads-card-slot {
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    opacity: 0;
    animation: qads-fade-in .6s ease forwards;
}

/* ── Header slot (after header, top of page) ── */
.qads-header-slot {
    max-width: 900px;
    margin: 12px auto 0;
    padding: 0 16px;
    text-align: center;
    opacity: 0;
    animation: qads-fade-in .6s ease forwards;
}

/* ── Footer slot ── */
.qads-footer-slot {
    max-width: 900px;
    margin: 30px auto 10px;
    padding: 0 16px;
    text-align: center;
    opacity: 0;
    animation: qads-fade-in .6s ease forwards;
}

/* ── Case page slot ── */
.qads-case-slot {
    max-width: 728px;
    margin: 16px auto 24px;
    text-align: center;
    opacity: 0;
    animation: qads-fade-in .6s ease forwards;
}

/* ── Fade in animation ── */
@keyframes qads-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
    .qads-banner,
    .qads-monetag-banner {
        margin: 12px auto;
    }

    .qads-section-slot,
    .qads-footer-slot {
        margin: 16px auto;
        padding: 0 8px;
    }

    .qads-native {
        margin: 16px 0;
    }

    .qads-case-slot {
        margin: 10px auto 16px;
    }
}

/* ── Responsive banner visibility ── */
.qads-desktop-only { display: block; }
.qads-mobile-only  { display: none; }

@media (max-width: 768px) {
    .qads-desktop-only { display: none; }
    .qads-mobile-only  { display: block; }
}

/* ── Sidebar ad ── */
.qads-sidebar-ad {
    display: inline-block;
    line-height: 0;
}

/* ── Smartlink (inline) ── */
.qads-smartlink {
    display: inline-block;
    text-decoration: none;
    transition: opacity .2s;
}
.qads-smartlink:hover { opacity: .85; }

/* ── Smartlink floating button ── */
.qads-smartlink-float {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 9998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255,107,107,.4);
    text-decoration: none;
    animation: qads-float-bounce 2s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
}
.qads-smartlink-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(255,107,107,.5);
}
.qads-smartlink-icon {
    font-size: 24px;
    line-height: 1;
}
@keyframes qads-float-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ── Dark theme support ── */
[data-theme="dark"] .qads-card-slot {
    background: rgba(255,255,255,.03);
}
