/* ============================================================
   FOOTER V2 — Yaqinly Premium + SEO
   Classes: .yaq-footer-v2 (+ yqf-* prefix for all new elements)
   ============================================================ */

/* ── Ribbon ── */
.yqf-ribbon {
    background: linear-gradient(90deg, #8b6a3f 0%, #c49a4e 50%, #8b6a3f 100%);
    background-size: 200% 100%;
    animation: yqfRibbonShift 8s linear infinite;
    padding: 9px 0;
    text-align: center;
}
@keyframes yqfRibbonShift { to { background-position: 200% 0; } }
.yqf-ribbon-inner {
    display: flex; gap: 16px; align-items: center; justify-content: center;
    flex-wrap: wrap;
    max-width: 1180px; margin: 0 auto; padding: 0 16px;
}
.yqf-stat { font-size: 0.78rem; color: rgba(255,255,255,0.95); letter-spacing: 0.05em; }
.yqf-stat strong { color: #fff; font-weight: 800; }
.yqf-sep { color: rgba(255,255,255,0.5); }
.yqf-free { font-weight: 700; color: #fff; }

/* ── Wrapper ── */
.yaq-footer-v2 {
    position: relative;
    margin-top: auto;
    overflow: hidden;
}
.yaq-footer-v2::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(212,165,116,0.07) 0%, transparent 60%),
                radial-gradient(ellipse at 10% 100%, rgba(139,106,63,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.yqf-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px 24px 28px;
}

/* ── Main grid ── */
.yqf-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 40px 28px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(139,106,63,0.14);
}
[data-theme="dark"] .yqf-grid { border-color: rgba(196,154,78,0.18); }

/* ── Brand ── */
.yqf-brand { display: flex; flex-direction: column; gap: 10px; }
.yqf-logo {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--gold, #8b6a3f);
    transition: opacity .25s;
}
.yqf-logo:hover { opacity: .82; }
.yqf-logo-icon { font-size: 1.1rem; color: var(--gold, #8b6a3f); }
.yqf-logo-text {
    font-family: 'Amiri', 'Noto Naskh Arabic', serif;
    font-size: 1.9rem; color: var(--gold-light, #c49a4e); line-height: 1;
}
.yqf-basmala {
    font-family: 'Amiri', serif;
    font-size: 0.95rem;
    color: rgba(139,106,63,0.6);
    margin: 0;
    letter-spacing: 0.01em;
}
[data-theme="dark"] .yqf-basmala { color: rgba(196,154,78,0.55); }
.yqf-desc {
    font-size: 0.84rem; line-height: 1.6;
    color: var(--text-secondary, #6b7280);
    max-width: 300px; margin: 0;
}

/* Trust badges */
.yqf-badges {
    display: flex; flex-wrap: wrap; gap: 7px;
    margin-top: 4px;
}
.yqf-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    border: 1px solid rgba(139,106,63,0.25);
    background: rgba(139,106,63,0.06);
    color: #8b6a3f;
}
[data-theme="dark"] .yqf-badge { background: rgba(196,154,78,0.1); border-color: rgba(196,154,78,0.25); color: #c49a4e; }

/* Noor badge */
.yqf-noor-badge {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 6px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--gold, #8b6a3f);
}
.yqf-noor-badge em { font-style: italic; opacity: 0.85; }
.yqf-noor-icon {
    color: var(--gold, #c49a4e);
    animation: yqfSpin 10s linear infinite;
    display: inline-block;
}
@keyframes yqfSpin { to { transform: rotate(360deg); } }

/* ── Columns ── */
.yqf-col { display: flex; flex-direction: column; }
.yqf-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.yqf-col-head {
    font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--gold, #8b6a3f);
    margin: 0 0 14px;
    display: flex; align-items: center; gap: 6px;
}
.yqf-col-head::after {
    content: "";
    flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(139,106,63,0.3), transparent);
}
[data-theme="dark"] .yqf-col-head { color: #c49a4e; }
.yqf-link {
    display: flex; align-items: baseline; gap: 6px;
    padding: 5px 0; font-size: 0.83rem;
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease, padding-left .2s ease;
    position: relative;
}
.yqf-link::before {
    content: "→";
    position: absolute; left: -14px;
    opacity: 0; font-size: 0.7rem;
    color: var(--gold, #8b6a3f);
    transition: opacity .2s, transform .2s;
    transform: translateX(-4px);
}
.yqf-link:hover {
    color: var(--gold-light, #c49a4e);
    padding-left: 16px;
}
.yqf-link:hover::before { opacity: 1; transform: translateX(0); }
[data-theme="dark"] .yqf-link { color: #d4b88a; }
[data-theme="dark"] .yqf-link:hover { color: #fce6b4; }
.yqf-link-ar {
    font-family: 'Amiri', serif;
    font-size: 0.78rem;
    opacity: 0.65;
    transition: opacity .2s;
}
.yqf-link:hover .yqf-link-ar { opacity: 0.9; }

/* ── Topics / Tags ── */
.yqf-topics {
    padding: 28px 0 22px;
    border-bottom: 1px solid rgba(139,106,63,0.1);
}
[data-theme="dark"] .yqf-topics { border-color: rgba(196,154,78,0.15); }
.yqf-topics-head {
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--gold, #8b6a3f);
    margin: 0 0 14px;
    display: inline-flex; align-items: center; gap: 8px;
}
.yqf-topics-spark {
    color: var(--gold, #8b6a3f);
    animation: yqfSpin 12s linear infinite;
    display: inline-block;
}
[data-theme="dark"] .yqf-topics-head { color: #c49a4e; }
.yqf-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.yqf-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.76rem; font-weight: 600;
    background: rgba(139,106,63,0.07);
    border: 1px solid rgba(139,106,63,0.18);
    color: #7a5c30;
    text-decoration: none;
    transition: background .25s, border-color .25s, transform .25s, color .25s;
}
.yqf-tag:hover {
    background: rgba(139,106,63,0.18);
    border-color: rgba(139,106,63,0.5);
    color: #4a3a20;
    transform: translateY(-2px);
}
[data-theme="dark"] .yqf-tag {
    background: rgba(196,154,78,0.08);
    border-color: rgba(196,154,78,0.2);
    color: #c49a4e;
}
[data-theme="dark"] .yqf-tag:hover {
    background: rgba(196,154,78,0.2);
    color: #fce6b4;
}

/* ── Languages ── */
.yqf-langs {
    padding: 20px 0 24px;
    border-bottom: 1px solid rgba(139,106,63,0.1);
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
[data-theme="dark"] .yqf-langs { border-color: rgba(196,154,78,0.15); }
.yqf-langs-head {
    font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--gold, #8b6a3f); white-space: nowrap; margin: 0;
    flex-shrink: 0;
}
[data-theme="dark"] .yqf-langs-head { color: #c49a4e; }
.yqf-lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
.yqf-lang-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 600;
    border: 1px solid rgba(139,106,63,0.2);
    color: #7a5c30;
    background: rgba(139,106,63,0.05);
    text-decoration: none;
    transition: all .25s;
}
.yqf-lang-pill:hover {
    background: rgba(139,106,63,0.14);
    border-color: rgba(139,106,63,0.45);
    transform: translateY(-2px);
}
.yqf-lang-active {
    background: linear-gradient(135deg, rgba(212,165,116,0.22), rgba(139,106,63,0.12));
    border-color: rgba(139,106,63,0.45);
    color: #4a3a20;
    font-weight: 700;
}
[data-theme="dark"] .yqf-lang-pill { color: #c49a4e; border-color: rgba(196,154,78,0.22); background: rgba(196,154,78,0.06); }
[data-theme="dark"] .yqf-lang-pill:hover { background: rgba(196,154,78,0.18); border-color: rgba(196,154,78,0.5); color: #fce6b4; }
[data-theme="dark"] .yqf-lang-active { background: rgba(196,154,78,0.2); border-color: rgba(196,154,78,0.5); color: #fce6b4; }
.yqf-lang-flag { font-size: 1.1rem; }

/* ── Bottom bar ── */
.yqf-bottom {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 12px;
    padding-top: 20px;
    font-size: 0.73rem;
    color: var(--text-muted, #9ca3af);
}
.yqf-address { font-style: normal; }
.yqf-copy { color: var(--text-muted, #9ca3af); }
.yqf-bottom-links { display: flex; align-items: center; gap: 8px; }
.yqf-meta-link {
    color: var(--text-muted, #9ca3af);
    text-decoration: none;
    transition: color .2s;
}
.yqf-meta-link:hover { color: var(--gold, #8b6a3f); }
[data-theme="dark"] .yqf-meta-link:hover { color: #c49a4e; }
.yqf-meta-sep { opacity: 0.4; }
.yqf-made { color: var(--text-muted, #9ca3af); font-style: italic; margin: 0; }
[data-theme="dark"] .yqf-copy,
[data-theme="dark"] .yqf-made { color: #a08060; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .yqf-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
    .yqf-grid { grid-template-columns: 1fr 1fr 1fr; }
    .yqf-brand { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
    .yqf-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
    .yqf-ribbon-inner { gap: 10px; }
    .yqf-langs { flex-direction: column; align-items: flex-start; gap: 12px; }
    .yqf-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 380px) {
    .yqf-grid { grid-template-columns: 1fr; }
}

/* ── Footer background — global (was footer-override.css only) ── */
body[data-theme="light"] .yaq-footer {
    background: linear-gradient(180deg, #efe3cc 0%, #e7d7bb 100%) !important;
    border-top: 1px solid rgba(148, 112, 53, 0.12) !important;
    box-shadow: 0 -4px 16px rgba(80, 57, 22, 0.04) !important;
}

body[data-theme="dark"] .yaq-footer {
    background: rgba(11, 14, 24, 0.96) !important;
    border-top: 1px solid rgba(42, 48, 85, 0.5) !important;
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.32) !important;
}
ENDCSS
echo "done"

/* Footer background — global */
body[data-theme="light"] .yaq-footer {
    background: linear-gradient(180deg, #efe3cc 0%, #e7d7bb 100%) !important;
    border-top: 1px solid rgba(148,112,53,0.12) !important;
    box-shadow: 0 -4px 16px rgba(80,57,22,0.04) !important;
}
body[data-theme="dark"] .yaq-footer {
    background: rgba(11,14,24,0.96) !important;
    border-top: 1px solid rgba(42,48,85,0.5) !important;
    box-shadow: 0 -8px 26px rgba(0,0,0,0.32) !important;
}

/* Language code badge (replaces flag emoji) */
.yqf-lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(139,106,63,0.14);
    color: #7a5c30;
}
[data-theme="dark"] .yqf-lang-code {
    background: rgba(196,154,78,0.15);
    color: #c49a4e;
}
.yqf-lang-active .yqf-lang-code {
    background: rgba(139,106,63,0.3);
    color: #4a3a20;
}
[data-theme="dark"] .yqf-lang-active .yqf-lang-code {
    background: rgba(196,154,78,0.3);
    color: #fce6b4;
}
EOF
echo "ok"

/* Language code badge */
.yqf-lang-code { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:20px; padding:0 5px; border-radius:5px; font-size:0.66rem; font-weight:800; letter-spacing:0.06em; background:rgba(139,106,63,0.14); color:#7a5c30; }
[data-theme="dark"] .yqf-lang-code { background:rgba(196,154,78,0.15); color:#c49a4e; }
.yqf-lang-active .yqf-lang-code { background:rgba(139,106,63,0.3); color:#4a3a20; }
[data-theme="dark"] .yqf-lang-active .yqf-lang-code { background:rgba(196,154,78,0.3); color:#fce6b4; }
