/* ===================================================== */
/*                 تنظیمات کلی صفحه                       */
/* ===================================================== */

*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    min-height:100%;
    background:var(--jn-bg-0);
    color:var(--jn-text-1);
    font-family:'Vazirmatn',sans-serif;
    line-height:1.8;
}

::-webkit-scrollbar{
    width:6px;
}

::-webkit-scrollbar-thumb{
    background:rgba(var(--jn-cyan-rgb),.25);
    border-radius:6px;
}

.news-app{
    position:relative;
    max-width:900px;
    width:100%;
    margin:0 auto;
    padding:0 24px 60px;
    flex:1;
    overflow-y:auto;
    min-height:0;
}


/* ===================================================== */
/*                     عنوان صفحه                         */
/* ===================================================== */

.news-hero{
    text-align:center;
    padding:14px 6px 26px;
}

.news-hero h1{
    margin:0 0 12px;
    font-size:22px;
    font-weight:800;
}

.news-hero p{
    margin:0 auto;
    max-width:560px;
    color:var(--jn-text-3);
    font-size:13px;
}


/* ===================================================== */
/*                نوارِ سیگنالِ کلیِ اخبار                   */
/* ===================================================== */

.news-signal-banner{
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:14px;
    padding:16px 18px;
    margin-bottom:22px;
}

.news-signal-icon{
    font-size:26px;
    flex:none;
}

.news-signal-text{
    flex:1;
    min-width:0;
}

.news-signal-title{
    font-weight:800;
    font-size:14px;
    margin-bottom:3px;
}

.news-signal-sub{
    color:var(--jn-text-2);
    font-size:12.5px;
    line-height:1.7;
}


/* ===================================================== */
/*                 گروه‌هایِ خبری هر دسته                   */
/* ===================================================== */

.news-placeholder{
    text-align:center;
    color:var(--jn-text-3);
    font-size:13px;
    padding:40px 0;
}

.news-group{
    background:var(--jn-bg-1);
    border:1px solid rgba(var(--jn-overlay-rgb),.08);
    border-radius:14px;
    overflow:hidden;
    margin-bottom:18px;
}

:root[data-theme="light"] .news-group{
    background:rgba(240,244,251,.62);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
    border-color:rgba(255,255,255,.7);
}

.news-group-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    border-bottom:1px solid rgba(var(--jn-overlay-rgb),.08);
}

.news-group-name{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:800;
}

.news-group-dot{
    width:8px;
    height:8px;
    border-radius:50%;
}

.news-group-badge{
    font-size:11px;
    font-weight:700;
    padding:4px 11px;
    border-radius:20px;
}

.news-article{
    padding:14px 18px;
    border-bottom:1px solid rgba(var(--jn-overlay-rgb),.05);
}

.news-article:last-child{
    border-bottom:none;
}

a.news-article{
    display:block;
    text-decoration:none;
    color:inherit;
    transition:background .15s;
}

a.news-article.has-link:hover{
    background:rgba(var(--jn-cyan-rgb),.05);
    cursor:pointer;
}

a.news-article.has-link:hover .news-article-title{
    color:var(--jn-cyan-text);
}

a.news-article.has-link .news-article-title::after{
    content:" ↗";
    font-size:11px;
    color:var(--jn-text-3);
}

.news-article-title{
    color:var(--jn-text-1);
    font-size:13.5px;
    font-weight:700;
    margin-bottom:5px;
}

.news-article-summary{
    color:var(--jn-text-3);
    font-size:12.5px;
    line-height:1.7;
}


/* ===================================================== */
/*              قفلِ اشتراک (مثلِ کارتِ خبرِ داشبورد)          */
/* ===================================================== */

.news-app.locked .news-signal-banner,
.news-app.locked .news-groups{
    filter:blur(6px);
    pointer-events:none;
    user-select:none;
}

.dash-lock-overlay{
    position:fixed;
    inset:0;
    top:80px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    background:linear-gradient(180deg, rgba(var(--jn-bg-0-rgb),.35), rgba(var(--jn-bg-0-rgb),.92) 45%);
    padding:22px;
    text-align:center;
    z-index:5;
}

.dash-lock-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(var(--jn-cyan-rgb),.12);
    border:1px solid rgba(var(--jn-cyan-rgb),.4);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:19px;
    box-shadow:0 0 18px rgba(var(--jn-cyan-rgb),.25);
}

.dash-lock-title{
    font-size:14px;
    font-weight:700;
    color:var(--jn-text-1);
    line-height:1.6;
}

.dash-lock-sub{
    font-size:12px;
    color:var(--jn-text-3);
    max-width:280px;
    line-height:1.9;
}

.dash-lock-btn{
    margin-top:4px;
    padding:8px 20px;
    border-radius:10px;
    background:linear-gradient(90deg,var(--jn-cyan),var(--jn-purple));
    color:var(--jn-ink);
    font-weight:800;
    font-size:12px;
    text-decoration:none;
    display:inline-block;
    transition:.2s;
}

.dash-lock-btn:hover{
    filter:brightness(1.1);
    transform:translateY(-1px);
}
