/* NotesNP Ad Styles — Clean, non-intrusive, matches site design */

/* Base ad wrapper */
.nnp-ad,
.nnp-ad-wrapper {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.nnp-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.nnp-ad-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nnp-ad-link:hover {
    opacity: 0.92;
}

/* Subtle "Ad" label — small, muted, non-distracting */
.nnp-ad::after {
    content: 'Sponsored';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 9px;
    line-height: 1;
    color: #94a3b8;
    font-family: -apple-system, system-ui, sans-serif;
    letter-spacing: 0.3px;
    pointer-events: none;
    z-index: 1;
}

/* Zone-specific styles */

/* Header banner — between title and content */
.nnp-ad-wrapper.nnp-ad-before {
    margin: 4px auto 16px;
}

/* In-content ads — natural content break */
.nnp-ad-wrapper.nnp-ad-in-content {
    margin: 24px auto;
    padding: 4px 0;
}

/* Before/after related */
.nnp-ad-wrapper.nnp-ad-before-related {
    margin: 20px auto;
}

/* Sidebar ads */
.nnp-zone-sidebar-top,
.nnp-zone-sidebar-sticky {
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Mobile sticky bottom */
.nnp-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    padding: 8px 12px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.nnp-sticky-close {
    position: absolute;
    top: -10px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    padding: 0;
    transition: background 0.15s;
}

.nnp-sticky-close:hover {
    background: #475569;
}

/* Responsive */
@media (max-width: 767px) {
    .nnp-ad-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .nnp-ad-wrapper > div {
        border-radius: 8px !important;
    }

    .nnp-zone-sidebar-top,
    .nnp-zone-sidebar-sticky {
        display: none; /* Hide sidebar ads on mobile */
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .nnp-ad::after {
        color: #475569;
    }

    .nnp-mobile-sticky {
        background: #1e293b;
        border-top-color: #334155;
    }
}

/* Print — hide all ads */
@media print {
    .nnp-ad,
    .nnp-ad-wrapper,
    .nnp-ad-slot,
    .nnp-mobile-sticky {
        display: none !important;
    }
}
