/* Source: smart-image.css */
/**
 * Bajroshakti Smart Image Loader
 * Shimmer Wave + Smooth Fade-in
 * Version: 1.0.1
 */

/* ১. শিমার এনিমেশন কন্টেইনার */
.bsnp-ratio-16-9,
.ratio-16-9 {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    position: relative;
    overflow: hidden;
    background-color: var(--surface-color, #EDE9DC);
    background-image: linear-gradient(
        90deg,
        var(--surface-color, #EDE9DC) 0%,
        var(--border-color, #DDD9C8) 50%,
        var(--surface-color, #EDE9DC) 100%
    );
    background-repeat: no-repeat;
    background-size: 200% 100%;
    animation: bsnp_shimmer_wave 1.5s infinite linear;
}

/* ২. শিমার এনিমেশন কীফ্রেম */
@keyframes bsnp_shimmer_wave {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ৩. ডার্ক মোড শিমানিং */
[data-theme="dark"] .bsnp-ratio-16-9,
[data-theme="dark"] .ratio-16-9 {
    background-color: #112240;
    background-image: linear-gradient(
        90deg,
        #112240 0%,
        #1e3a5f 50%,
        #112240 100%
    );
}

/* ৪. লেজি লোড ইমেজ - ফেড-ইন ট্রানজিশন */
.bsnp-lazy-image {
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    transition: opacity 0.6s ease-in-out;
}

.bsnp-lazy-image.is-loaded {
    opacity: 1;
}

/* ৫. লোড সম্পন্ন হলে এনিমেশন বন্ধ */
.bsnp-stop-wave {
    background: none !important;
    animation: none !important;
}


/* Source: audio-news.css */
/* Audio News Styles */
.bsnp-meta-audio { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    margin-left: 10px; 
    padding-left: 10px; 
    border-left: 1px solid var(--border-color); 
}
.bsnp-audio-icon-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--accent-color); 
    font-family: var(--font-body); 
    font-size: 15px; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    padding: 0; 
    outline: none !important; 
}
.bsnp-audio-icon-btn i { 
    font-size: 19px; 
    transition: 0.3s; 
}
.bsnp-audio-visual { 
    display: none; 
    align-items: flex-end; 
    gap: 2px; 
    height: 10px; 
}
.bsnp-audio-visual .bar { 
    width: 2px; 
    background: var(--accent-color); 
    animation: bsnp_wave 1s infinite; 
}
@keyframes bsnp_wave { 
    0%, 100% { height: 3px; } 
    50% { height: 10px; } 
}
.bsnp-audio-visual.playing { 
    display: flex; 
}

/* Strict hide on desktop */
@media (min-width: 992px) {
    .bsnp-meta-audio { display: none !important; }
}

/* Source: instant-view-pro.css */
/**
 * Bajro Quick Reader PRO - Styles
 * Version: 1.0.1
 */

.bsnp-qr-overlay { position: fixed; inset: 0; z-index: 9999999999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.bsnp-qr-overlay.active { display: flex; opacity: 1; }
.bsnp-qr-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bsnp-qr-container { position: relative; width: 100%; max-width: 720px; height: 100dvh; background: var(--bg-color, #fff); display: flex; flex-direction: column; transform: translateY(20px); transition: 0.3s ease; }
.bsnp-qr-overlay.active .bsnp-qr-container { transform: translateY(0); }

/* সোয়াইপ ইন্ডিকেটর */
.bsnp-swipe-hint-wrap { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); z-index: 50; color: #fff; pointer-events: none; transition: 0.5s; opacity: 0; }
.bsnp-swipe-hint-wrap.show { display: flex; opacity: 1; }
.bsnp-swipe-hand { font-size: 50px; animation: bsnp-swipe-anim 1.5s infinite; }
.bsnp-swipe-hint-wrap span { margin-top: 15px; font-family: var(--font-ui); font-size: 18px; font-weight: 700; background: var(--accent-color); padding: 5px 20px; border-radius: 50px; }
@keyframes bsnp-swipe-anim { 0% { transform: translateX(40px); } 50% { transform: translateX(-40px); } 100% { transform: translateX(40px); } }

/* হেডার */
.bsnp-qr-header { padding: 10px 20px; background: var(--surface-color); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; z-index: 20; }
.bsnp-qr-h-side { flex: 1; display: flex; align-items: center; }
.bsnp-qr-h-center { flex: 2; display: flex; justify-content: center; align-items: center; }
.bsnp-qr-h-center img { max-height: 32px; width: auto; }
.text-right { justify-content: flex-end; }
.bsnp-qr-back-btn { background: var(--border-color); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--heading-color); }
.bsnp-qr-close-x { background: none; border: none; font-size: 35px; cursor: pointer; color: var(--heading-color); line-height: 1; }

/* কন্টেন্ট */
.bsnp-qr-scroll-area { flex: 1; overflow-y: auto; padding: 25px 20px 50px; -webkit-overflow-scrolling: touch; }
.bsnp-qr-subtitle { font-family: var(--font-body); font-size: 19px; color: #ff0000; font-weight: 400; margin-bottom: 10px; display: block; }
.bsnp-qr-title { font-family: var(--font-ui); font-size: 34px; line-height: 1.35; color: var(--heading-color); font-weight: 500; margin: 0 0 15px; }
.bsnp-qr-meta-text { font-family: var(--font-body); font-size: 15px; color: #888; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.bsnp-qr-meta-text strong { color: var(--accent-color); font-weight: 600; }
.bsnp-qr-scroll-area img { width: 100% !important; aspect-ratio: 16/9 !important; object-fit: cover !important; border-radius: 10px; margin-bottom: 25px; }
.bsnp-qr-entry { font-family: var(--font-body); font-size: 18px; line-height: 1.9; color: var(--body-color); font-weight: 400; }

/* ফুটার */
.bsnp-qr-footer { padding: 15px 20px; background: var(--surface-color); border-top: 1px solid var(--border-color); flex-shrink: 0; z-index: 20; padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
.bsnp-qr-nav-btns { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.bsnp-nav-pill-btn { flex: 1; background: #fff; border: 1px solid var(--border-color); padding: 12px 10px; border-radius: 50px; font-family: var(--font-ui); font-size: 17px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--heading-color); }
.bsnp-nav-pill-btn:disabled { opacity: 0.4; }
.bsnp-qr-footer-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--border-color); padding-top: 15px; }
.bsnp-qr-share { background: none; border: none; font-size: 16px; font-weight: 700; color: var(--accent-color); cursor: pointer; font-family: var(--font-ui); display: flex; align-items: center; gap: 8px; }
.bsnp-qr-visit { text-decoration: none; color: var(--accent-color); font-weight: 800; font-family: var(--font-ui); font-size: 16px; }

/* শিমার */
.bsnp-qr-shimmer { padding: 30px; }
.bs-sk-line, .bs-sk-img { margin-bottom: 15px; border-radius: 4px; animation: bs_sk_move 1.5s infinite linear; background: linear-gradient(90deg, #f5f5f5 25%, #e9e9e9 50%, #f5f5f5 75%); background-size: 200% 100%; }
.bs-sk-line { height: 18px; width: 100%; }
.bs-sk-line.title { height: 30px; width: 80%; }
.bs-sk-img { height: 200px; width: 100%; }
@keyframes bs_sk_move { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
[data-theme="dark"] .bs-sk-line,
[data-theme="dark"] .bs-sk-img { background: linear-gradient(90deg, #1a2f4e 25%, #1e3a5f 50%, #1a2f4e 75%); background-size: 200% 100%; animation: bs_sk_move 1.5s infinite linear; }

/* ডার্ক মোড */
[data-theme="dark"] .bsnp-qr-container { background: #0D1322; }
[data-theme="dark"] .bsnp-qr-header,
[data-theme="dark"] .bsnp-qr-footer { background: #0A1628; }
[data-theme="dark"] .bsnp-nav-pill-btn { background: #1e3a5f; color: #fff; border-color: #334155; }
[data-theme="dark"] .bsnp-qr-title,
[data-theme="dark"] .bsnp-qr-meta-text,
[data-theme="dark"] .bsnp-qr-entry,
[data-theme="dark"] .bsnp-qr-share,
[data-theme="dark"] .bsnp-qr-visit,
[data-theme="dark"] .bsnp-qr-back-btn,
[data-theme="dark"] .bsnp-qr-close-x { color: var(--heading-color); }
[data-theme="dark"] .bsnp-qr-backdrop { background: rgba(0,0,0,0.95); }

@media (max-width: 480px) {
    .bsnp-qr-title { font-size: 32px; }
    .bsnp-qr-entry { font-size: 18px; }
}


/* Source: mobile-bottom-nav.css */
/**
 * Bajroshakti Mobile Bottom Navigation
 * Version: 1.0.1
 */

/* ===== মেইন বার ===== */
.bsnp-m-nav-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background: #fff; border-top: 1px solid #ddd; z-index: 9999999; display: none; box-shadow: 0 -3px 15px rgba(0,0,0,0.08); }
.bsnp-m-nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 600px; margin: 0 auto; position: relative; padding: 0 4px; }

.bsnp-m-item-group { display: flex; align-items: center; justify-content: space-around; flex: 1; }
.bsnp-m-btn { background: none; border: none; color: #1a1a1a; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; flex: 1; padding: 0; }
.bsnp-m-btn i { font-size: 18px; }
.bsnp-m-btn span { font-size: 10px; font-weight: 400; font-family: var(--font-ui); }

/* ===== ফ্লোটিং গোল বৃত্ত ===== */
.bsnp-m-center-puck { width: 70px; position: relative; display: flex; justify-content: center; flex-shrink: 0; }
.bsnp-m-puck-btn {
    position: absolute;
    top: -50px;
    width: 59px;
    height: 59px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 100;
    transition: 0.2s;
    padding: 0;
}
#puck-fav-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bsnp-m-puck-btn i { font-size: 24px; color: var(--accent-color); }
.bsnp-m-puck-btn.active { background: #fff !important; border-color: #ddd !important; }
.bsnp-m-puck-btn.active #puck-icon-close { color: #1a1a1a; }

/* ===== স্লাইডিং প্যানেল ===== */
.bsnp-m-panel-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 60px; background: rgba(0,0,0,0); z-index: 9999998; display: none; align-items: flex-end; pointer-events: none; transition: background 0.4s; }
.bsnp-m-panel-overlay.show { background: rgba(0,0,0,0.5); pointer-events: all; }

@media (max-width: 991px) {
    .bsnp-m-panel-overlay { display: flex; }
}

.bsnp-m-panel-content { width: 100%; max-height: 75vh; background: #fff; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1); overflow: hidden; display: flex; flex-direction: column; }
.bsnp-m-panel-overlay.show .bsnp-m-panel-content { transform: translateY(0); }
.bsnp-panel-sticky-head { padding: 15px 20px 0; flex-shrink: 0; background: #fff; }
.bsnp-m-panel-inner { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 20px 40px; }
.bsnp-m-handle { width: 40px; height: 4px; background: #eee; border-radius: 10px; margin: 0 auto 15px; }

/* লোগো CSS switch */
.bsnp-panel-logo .bsnp-logo-dark  { display: none; }
.bsnp-panel-logo .bsnp-logo-light { display: block; }
[data-theme="dark"] .bsnp-panel-logo .bsnp-logo-light { display: none !important; }
[data-theme="dark"] .bsnp-panel-logo .bsnp-logo-dark  { display: block !important; }
.bsnp-panel-logo img { max-height: 38px; width: auto; }

.bsnp-panel-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bsnp-panel-dark-trigger { background: #f5f5f5; border: 1px solid #eee; width: 36px; height: 36px; border-radius: 50%; color: #333; cursor: pointer; }
.bsnp-panel-header-line { width: 100%; height: 1px; background: #eee; margin-bottom: 20px; }

/* সার্চ */
.bsnp-panel-search { width: 75%; margin: 0 auto 25px; }
.bsnp-panel-search form { display: flex; background: #f8f8f8; border: 1px solid #ddd; border-radius: 50px; overflow: hidden; height: 40px; }
.bsnp-panel-search input { flex: 1; border: none; background: none; padding: 0 15px; font-size: 15px; font-weight: 400; outline: none; font-family: var(--font-ui); }
.bsnp-panel-search button { background: none; border: none; padding: 0 12px; color: var(--accent-color); cursor: pointer; }

/* মেনু গ্রিড */
.bsnp-m-text-grid { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; border-top: 1px solid #eee; }
.bsnp-m-text-grid li { border-bottom: 1px solid #eee; border-right: 1px solid #eee; }
.bsnp-m-text-grid li:nth-child(3n) { border-right: none; }
.bsnp-m-text-grid li a { display: block; text-align: center; padding: 12px 2px; font-family: var(--font-ui); font-size: 16px; font-weight: 400; color: #333; text-decoration: none; line-height: 1.3; }

/* ===== ডার্ক মোড ===== */
[data-theme="dark"] .bsnp-m-nav-bar,
[data-theme="dark"] .bsnp-m-panel-content,
[data-theme="dark"] .bsnp-m-panel-inner,
[data-theme="dark"] .bsnp-panel-sticky-head { background: #0A1628; border-color: #1e3a5f; }
[data-theme="dark"] .bsnp-m-puck-btn { background: #0D1322; border-color: #1e3a5f; }
[data-theme="dark"] .bsnp-m-puck-btn.active { background: #0D1322 !important; border-color: #1e3a5f !important; }
[data-theme="dark"] .bsnp-m-puck-btn.active #puck-icon-close { color: #fff; }
[data-theme="dark"] .bsnp-m-btn { color: #eee; }
[data-theme="dark"] .bsnp-m-text-grid li a { color: #eee; }
[data-theme="dark"] .bsnp-m-text-grid li,
[data-theme="dark"] .bsnp-m-text-grid,
[data-theme="dark"] .bsnp-panel-header-line { border-color: #1e3a5f; }
[data-theme="dark"] .bsnp-panel-search form { background: #112240; border-color: #1e3a5f; }
[data-theme="dark"] .bsnp-panel-search input { color: #fff; }
[data-theme="dark"] .bsnp-panel-search input::placeholder { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .bsnp-panel-dark-trigger { background: #112240; border-color: #1e3a5f; color: #eee; }
[data-theme="dark"] .bsnp-m-handle { background: #1e3a5f; }
[data-theme="dark"] .bsnp-panel-navigation { color: #eee; }

/* ===== ফুটার ফিক্স ===== */
@media (max-width: 991px) {
    body { padding-bottom: 75px !important; }
    #bsnpBackToTop, .bsnp-back-to-top { bottom: 80px !important; right: 20px !important; z-index: 999999; }
    #onesignal-bell-container { bottom: 80px !important; }
    .bsnp-m-nav-bar { display: block; }
}
body.bs-no-scroll { overflow: hidden !important; }


/* Source: page-spinner.css */
/**
 * Bajroshakti Page Loader Spinner
 * Version: 1.0.1
 */

.bsnp-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(233, 238, 243, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal, 99999);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .bsnp-loader-overlay {
    background: rgba(10, 22, 40, 0.9);
}

.bsnp-loader-overlay.is-active {
    display: flex;
}

.bsnp-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    color: var(--accent-color);
}

.bsnp-ripple div {
    position: absolute;
    border: 4px solid currentColor;
    opacity: 1;
    border-radius: 50%;
    animation: bsnp-ripple-anim 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.bsnp-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes bsnp-ripple-anim {
    0% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 0;
    }
    4.9% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 0;
    }
    5% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 1;
    }
    100% {
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}


/* Source: post-features.css */
/**
 * Bajroshakti Post Features - Frontend CSS
 * Version: 1.0.1
 */

.bsnp-excerpt-box {
    position: relative !important;
    background: transparent !important;
    padding-top: 0 !important;
    padding-left: 16px !important;
    padding-bottom: 14px !important;
    border: none !important;
    box-shadow: none !important;
}

.bsnp-excerpt-box::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 80% !important;
    border-left: 2px solid rgba(0,0,0,0.25) !important;
    border-bottom: 2px solid rgba(0,0,0,0.25) !important;
    border-bottom-left-radius: 18px !important;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 30%, transparent 100%) !important;
    mask-image: linear-gradient(to right, black 0%, black 30%, transparent 100%) !important;
    display: block !important;
    pointer-events: none !important;
}

.bsnp-excerpt-box::after {
    display: none !important;
}


/* ১. সাধারণ মোড (Light Mode) */
.bsnp-points-box li span {
    border: 2px solid #333 !important; /* গোল বৃত্তের রঙ */
    color: #333; /* টিক চিহ্নের রঙ */
    transition: all 0.3s ease;
}

/* ২. ডার্ক মোড বা রিডিং মোডে টিক ও গোল সাদা হবে */
body.dark-mode .bsnp-points-box li span,
body.bsnp-focus-active .bsnp-points-box li span {
    border-color: #ffffff !important; /* গোল বৃত্ত সাদা */
    color: #ffffff !important; /* টিক চিহ্ন সাদা */
}

/* SVG আইকনটি যাতে কালার ইনহেরিট করে */
.bsnp-points-box li span svg {
    fill: currentColor;
}
