/* ============================================
   css/push.css
   استایل پاپ‌آپ تنظیمات پوش نوتیفیکیشن
   سایت اخبار استقلال — pinshe.ir
   نسخه: 2.1 — اصلاح ظاهر دکمه چرخ‌دنده
   ============================================ */

/* ────────────────────────────────────
   دکمه چرخ‌دنده — همان استایل بقیه دکمه‌ها
   ──────────────────────────────────── */
.card-action-btn.settings-btn {
    /* هیچ رنگ اختصاصی ندارد — از همان استایل card-action-btn استفاده می‌کند */
    /* رنگ آیکون: سفید مثل بقیه */
    color: inherit;
}

/* ────────────────────────────────────
   پاپ‌آپ تنظیمات پوش — تمام‌صفحه
   ──────────────────────────────────── */
.push-settings-popup {
    position: fixed;
    inset: 0;
    background: #f5f7fa;
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.push-settings-popup.open {
    display: flex;
}

/* ────────────────────────────────────
   هدر پاپ‌آپ
   ──────────────────────────────────── */
.push-popup-header {
    position: sticky;
    top: 0;
    background: #1560bd;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    z-index: 2;
}

.push-popup-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.push-popup-header h3 i {
    font-size: 1.05rem;
}

.push-popup-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.push-popup-close:active {
    background: rgba(255, 255, 255, .3);
}

/* ────────────────────────────────────
   بدنه پاپ‌آپ
   ──────────────────────────────────── */
.push-popup-body {
    flex: 1;
    padding: 16px 14px 30px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* توضیح بالای لیست */
.push-popup-intro {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #e3eefb;
    border-radius: 12px;
    margin-bottom: 14px;
    border-right: 4px solid #1560bd;
}

.push-popup-intro i {
    color: #1560bd;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.push-popup-intro p {
    margin: 0;
    font-size: .8rem;
    color: #1a4a82;
    line-height: 1.5;
}

/* ────────────────────────────────────
   آیتم‌های تنظیمات
   ──────────────────────────────────── */
.push-settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.push-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 4px rgba(21, 96, 189, .04);
    transition: box-shadow .2s;
}

.push-setting-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.push-setting-info > i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1560bd;
    color: #fff;
    font-size: .9rem;
    flex-shrink: 0;
}

.push-setting-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.push-setting-title {
    font-size: .88rem;
    color: #1a2b3d;
    font-weight: 700;
    line-height: 1.3;
}

.push-setting-desc {
    font-size: .74rem;
    color: #7a8a9a;
    line-height: 1.4;
}

/* ────────────────────────────────────
   سوییچ روشن/خاموش
   ──────────────────────────────────── */
.push-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 25px;
    flex-shrink: 0;
    cursor: pointer;
}

.push-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.push-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 25px;
    transition: .25s;
}

.push-switch-slider::before {
    content: "";
    position: absolute;
    height: 19px;
    width: 19px;
    right: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.push-switch input:checked + .push-switch-slider {
    background: #1560bd;
}

.push-switch input:checked + .push-switch-slider::before {
    transform: translateX(-19px);
}

/* ────────────────────────────────────
   موبایل کوچک
   ──────────────────────────────────── */
@media (max-width: 380px) {
    .push-setting-title { font-size: .82rem; }
    .push-setting-desc  { font-size: .7rem; }
    .push-setting-info > i { width: 34px; height: 34px; font-size: .82rem; }
}