/**
 * Najibul Google AdSense - Electric Performance & Responsive Styling
 * Zero Cumulative Layout Shift (CLS) & Mobile-First Architecture
 */

/* Responsive Ad Container */
.najibul-adsense-slot-wrap {
    box-sizing: border-box;
    margin: 24px auto;
    text-align: center;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.25s ease;
}

.najibul-adsense-slot-wrap:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.najibul-adsense-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.najibul-adsense-label::before,
.najibul-adsense-label::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: rgba(100, 116, 139, 0.3);
}

/* Zero CLS Skeleton Placeholder */
.najibul-adsense-skeleton {
    width: 100%;
    min-height: 90px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: najibulAdShimmer 2s infinite ease-in-out;
    border-radius: 8px;
}

@keyframes najibulAdShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile-First Responsive Breakpoints */
@media screen and (max-width: 768px) {
    .najibul-adsense-slot-wrap {
        margin: 18px auto;
        padding: 8px;
        min-height: 60px;
        max-width: 100%;
        border-radius: 10px;
    }
    
    .najibul-adsense-slot-wrap.in-article-slot {
        margin: 20px 0;
    }
}

@media screen and (max-width: 480px) {
    .najibul-adsense-slot-wrap {
        margin: 16px 0;
        padding: 6px;
        min-height: 50px;
        border-radius: 8px;
    }
}

/* Sticky Mobile Bottom Anchor Ad */
.najibul-mobile-anchor-ad {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    text-align: center;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .najibul-mobile-anchor-ad {
        display: block;
    }
}

.najibul-anchor-close-btn {
    position: absolute;
    top: -24px;
    right: 12px;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 6px 6px 0 0;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.najibul-anchor-close-btn:hover {
    color: #f87171;
    background: #0f172a;
}
