/* أنماطُ partials/content_gate — نُقلت 2026-08-20 (CLAUDE.md قاعدة 1).
   ⚖ تُحمَّل عبر @once+@push('style-override') — والدفعُ من جسم التخطيط
      مُثبَتُ الوصول: اختُبر على partials/footer فظهرت الوصلةُ داخلَ <head>. */


/* ===== X.com-style Content Gate ===== */
.fnv-gate-wrap {
    position: relative;
    margin-top: -200px;
    z-index: 50;
    background: transparent;
}
.fnv-gate-blur-top {
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--fnv-surface) 95%, transparent) 70%, var(--fnv-surface) 100%);
    pointer-events: none;
}
.fnv-gate-panel {
    background: var(--fnv-surface);
    border-top: 1px solid var(--fnv-border);
    border-bottom: 1px solid var(--fnv-border);
    display: flex;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: none;
}
.fnv-gate-preview {
    flex: 1;
    padding: 36px 32px;
    background:var(--fnv-surface); border-block-start:4px solid var(--fnv-ink);
    color:var(--fnv-ink);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.fnv-gate-site-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family:"Readex Pro", sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    color:var(--fnv-ink-2);
}
.fnv-gate-article-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    padding: 16px 18px;
}
.fnv-gate-card-tag {
    display: inline-block;
    background: var(--fnv-ink);
    color: var(--fnv-surface);
    font-family: 'Readex Pro', sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    padding: 3px 8px;
    margin-bottom: 10px;
}
.fnv-gate-card-title {
    font-family: 'Readex Pro', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color:var(--fnv-ink);
    line-height: 1.4;
    margin-bottom: 8px;
}
.fnv-gate-card-meta {
    font-family:"Readex Pro", sans-serif;
    font-size: .8125rem;
    color:var(--fnv-ink-2);
}
.fnv-gate-progress-wrap { margin-top: auto; }
.fnv-gate-prog-track {
    height: 3px;
    background:var(--fnv-grid);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 8px;
}
.fnv-gate-prog-fill {
    height: 100%;
    background: var(--fnv-ink);
    border-radius: 0;
    transition: width .5s ease;
}
.fnv-gate-prog-label {
    font-family: 'Readex Pro', sans-serif;
    font-size: .8125rem;
    color:var(--fnv-ink-3);
}

/* Form side */
.fnv-gate-form-area {
    flex: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
.fnv-gate-eyebrow {
    font-family: 'Readex Pro', sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--fnv-ink);
    margin-bottom: 10px;
}
.fnv-gate-heading {
    font-family: 'Readex Pro', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--fnv-ink);
    line-height: 1.25;
    margin: 0 0 12px;
}
.fnv-gate-sub {
    font-family: 'Readex Pro', sans-serif;
    font-size: .9rem;
    color: var(--fnv-ink-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}
.fnv-gate-input {
    width: 100%;
    border: 1.5px solid var(--fnv-border);
    border-radius: 0;
    padding: 13px 16px;
    font-family: 'Readex Pro', sans-serif;
    font-size: .95rem;
    text-align: right;
    direction: rtl;
    margin-bottom: 10px;
    background: var(--fnv-surface-2);
    box-sizing: border-box;
    transition: border-color .2s;
}
.fnv-gate-input:focus {
    outline: none;
    border-color: var(--fnv-ink);
    background: var(--fnv-surface);
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.fnv-gate-cta-btn {
    width: 100%;
    background: var(--fnv-ink);
    color: var(--fnv-surface);
    border: none;
    border-radius: 0;
    padding: 14px;
    font-family: 'Readex Pro', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s, transform .1s;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.fnv-gate-cta-btn:hover { background: var(--fnv-dark-bg); transform: translateY(-1px); }
.fnv-gate-cta-outline {
    background: transparent !important;
    color: var(--fnv-ink) !important;
    border: 1.5px solid var(--fnv-border) !important;
}
.fnv-gate-cta-outline:hover { background: var(--fnv-surface-2) !important; transform: none !important; }
.fnv-gate-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--fnv-ink-3);
    font-family:"Readex Pro", sans-serif;
    font-size: .8125rem;
}
.fnv-gate-divider::before,.fnv-gate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fnv-border);
}
.fnv-gate-login-link {
    display: block;
    text-align: center;
    color: var(--fnv-ink);
    font-family: 'Readex Pro', sans-serif;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    padding: 13px;
    border: 1.5px solid var(--fnv-border);
    border-radius: 0;
    margin-bottom: 16px;
    transition: border-color .2s, background .2s;
}
.fnv-gate-login-link:hover { border-color: var(--fnv-ink); background: var(--fnv-n-50); }
.fnv-gate-fine {
    font-family: 'Readex Pro', sans-serif;
    font-size: .8125rem;
    color: var(--fnv-ink-3);
    text-align: center;
    margin: 0;
}

/* Gated article blur */
.chap-body.fnv-gated { max-height: 380px; overflow: hidden; position: relative; }
.chap-body.fnv-gated::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--fnv-surface));
    pointer-events: none;
}

@media (max-width: 768px) {
    .fnv-gate-panel { flex-direction: column; }
    .fnv-gate-preview { padding: 24px 20px; }
    .fnv-gate-form-area { padding: 24px 20px; }
    .fnv-gate-heading { font-size: 1.35rem; }
}
