/*
Theme Name: أبو مسلم
Theme URI: https://abumuslim.daralhdeth.com
Author: أبو مسلم
Description: قالب عربي لموقع التطبيقات والشروحات والفيديوهات والمدونة.
Version: 1.9.10
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: abumuslim
*/

:root {
    --ink: #17211c;
    --muted: #657269;
    --paper: #fbfaf5;
    --surface: #ffffff;
    --green: #0d5a45;
    --green-2: #0a4636;
    --gold: #c69b4a;
    --line: #e7e4d8;
    --shadow: 0 18px 55px rgba(22, 42, 32, .09);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
    line-height: 1.8;
    direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 245, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(13, 90, 69, .09);
}
.announcement { background: var(--green-2); color: white; border-bottom: 1px solid rgba(255,255,255,.1); }
.announcement-inner { min-height: 48px; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.announcement-inner > strong { flex: 0 0 auto; color: #ffe3a6; }
.announcement-items { position: relative; height: 48px; overflow: hidden; white-space: nowrap; flex: 1 1 auto; min-width: 100px; direction: ltr; }
.announcement-track { position: absolute; top: 50%; left: 0; display: inline-flex; align-items: center; gap: 28px; width: max-content; will-change: transform; animation: announcement-flow var(--announcement-duration, 30s) linear infinite; }
.announcement-item { display: inline-flex; align-items: center; gap: 9px; direction: rtl; font-weight: 600; transition: color .2s ease; }
.announcement-item:hover { color: #ffe3a6; }
.announcement-thumb { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #ffe3a6; }
.announcement-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; padding: 2px; }
.announcement-more { flex: 0 0 auto; font-weight: 800; }
@keyframes announcement-flow {
    from { transform: translate3d(calc(var(--announcement-track-width, 900px) * -1), -50%, 0); }
    to { transform: translate3d(var(--announcement-window-width, 700px), -50%, 0); }
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--green-2); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--green); color: white; font-size: 22px; box-shadow: 0 8px 20px rgba(13, 90, 69, .22); }
.brand-logo { width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center; overflow: visible; }
.brand-logo .custom-logo { width: 76px; height: 76px; display: block; object-fit: contain; transform: scale(1.08); }
.brand-name { font-size: 22px; line-height: 1.35; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; margin-top: 2px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.nav a { color: #405047; }
.nav a:hover { color: var(--green); }
.header-button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; padding: 11px 18px; background: var(--green); color: white !important; font-weight: 800; border: 1px solid var(--green); transition: .2s ease; }
.header-button:hover, .button:hover { transform: translateY(-2px); background: var(--green-2); }
.menu-toggle { display: none; width: 46px; height: 46px; flex: 0 0 46px; padding: 11px; border: 1px solid #d7e4de; border-radius: 13px; background: #edf5f1; color: var(--green); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 2px; background: currentColor; transition: .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.button.secondary { background: transparent; color: var(--green) !important; }
.hero { position: relative; overflow: hidden; padding: 76px 0 62px; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(198,155,74,.18), transparent 68%); left: -190px; top: -240px; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green); background: #eaf4ef; border: 1px solid #d7e9e1; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.25; letter-spacing: -1.5px; margin: 18px 0; }
.hero h1 span { color: var(--green); }
.hero p { max-width: 680px; color: var(--muted); font-size: 19px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel { position: relative; background: var(--green-2); color: white; padding: 34px; border-radius: 34px; box-shadow: var(--shadow); overflow: hidden; }
.hero-panel::after { content: ""; position: absolute; width: 88%; height: 88%; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); background: url("assets/abumuslim-icon.png") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .065; pointer-events: none; }
.hero-panel h2 { position: relative; z-index: 1; margin: 0 0 20px; font-size: 24px; }
.quick-list { display: grid; gap: 12px; position: relative; z-index: 1; }
.quick-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.11); border-radius: 16px; padding: 14px 16px; }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(198,155,74,.22); color: #ffe3a6; }
.section { padding: 60px 0; }
.section.alt { background: #f2f1e9; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 28px; }
.section-title { margin: 0; font-size: clamp(29px, 4vw, 43px); line-height: 1.3; }
.section-title small { display: block; color: var(--gold); font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; }
.section-head p { margin: 0; max-width: 520px; color: var(--muted); }
.carousel { min-width: 0; }
.cards { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-inline: contain; padding: 4px 2px 18px; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 30px rgba(27, 51, 39, .04); transition: .2s ease; display: flex; flex-direction: column; }
.coming-card { position: relative; overflow: hidden; }
.status-badge { position: absolute; z-index: 2; top: 34px; right: 34px; padding: 6px 12px; border-radius: 999px; background: #fff6dc; border: 1px solid #ead49a; color: #785713; font-size: 12px; font-weight: 800; box-shadow: 0 6px 18px rgba(72,53,15,.12); }
.coming-chip { background: #fff6dc; color: #785713; }
.radio-card .card-media { min-height: 190px; }
.radio-card .card-media img { width: 170px; height: 170px; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d6d1be; }
.card-media { min-height: 158px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #dfeee7, #f5e8c7); display: grid; place-items: center; margin-bottom: 18px; color: var(--green); font-size: 48px; }
.card-media img { width: 100%; height: 190px; object-fit: cover; }
.app-card-media img { object-fit: contain; padding: 14px; }
.card h3 { margin: 0 0 7px; font-size: 21px; line-height: 1.5; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #eef4f0; color: var(--green); }
.card-link { color: var(--green); font-weight: 800; margin-top: auto; }
.empty { flex: 0 0 100%; text-align: center; padding: 25px; border: 1px dashed #c9c5b7; border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.45); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; color: var(--muted); }
.carousel-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0 0 4px; border: 1px solid #d7e4de; border-radius: 50%; background: var(--surface); color: var(--green); font: 800 28px/1 Arial, sans-serif; cursor: pointer; box-shadow: 0 5px 16px rgba(22,42,32,.07); }
.carousel-button:hover { color: white; background: var(--green); }
.carousel-button:disabled { opacity: .45; cursor: default; box-shadow: none; }
.carousel-progress { min-width: 48px; text-align: center; color: var(--green); font-weight: 800; font-size: 13px; }
.carousel-hint { font-size: 13px; }
.content-area { padding: 70px 0; }
.article { max-width: 860px; margin: auto; background: white; border: 1px solid var(--line); border-radius: 28px; padding: clamp(25px, 6vw, 58px); box-shadow: var(--shadow); }
.app-icon-media { width: min(280px, 72vw); aspect-ratio: 1; margin: 0 auto 28px; padding: 12px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, #edf5f1, #fff8e8); box-shadow: 0 12px 32px rgba(22, 42, 32, .08); }
.app-icon-media img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 20px; }
.article h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.3; margin-top: 0; }
.article-content { font-size: 18px; }
.article-content h2 { margin: 34px 0 10px; color: var(--green-2); font-size: 27px; }
.article-content a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.article-content li { margin-bottom: 7px; }
.page-contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.page-contact-link { display: flex; min-width: 0; flex-direction: column; padding: 20px; border: 1px solid #d7e4de; border-radius: 18px; background: #edf5f1; text-decoration: none !important; transition: transform .2s ease, border-color .2s ease; }
.page-contact-link:hover { transform: translateY(-3px); border-color: var(--green); }
.page-contact-link strong { color: var(--green-2); font-size: 19px; }
.page-contact-link span { color: var(--muted); font-size: 14px; }
.contact-note { padding: 15px 18px; border-radius: 14px; background: #fff7df; }
.download-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin: 30px 0; padding: 22px; background: #edf5f1; border-radius: 18px; }
.coming-box { background: #fff7df; border: 1px solid #ecd9a1; }
.disabled-button { opacity: .72; cursor: default; pointer-events: none; }
.screenshots-section { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.screenshots-section h2 { font-size: 28px; margin: 0 0 20px; }
.screenshots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.screenshots-grid a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #f6f5ef; }
.screenshots-grid img { width: 100%; height: 320px; object-fit: contain; display: block; }
.radio-single { text-align: center; }
.radio-single-logo { width: min(340px, 100%); margin: 0 auto 22px; padding: 18px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg, #edf5f1, #fff8e8); }
.radio-single-logo img { width: 100%; height: 280px; display: block; object-fit: contain; }
.radio-single h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.radio-single-actions { margin: 0 0 24px; }
.radio-single .article-content { color: var(--muted); }
.post-list { display: grid; gap: 16px; }
.post-row { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.post-row h2 { margin: 0 0 6px; }
.contact-section { padding: 62px 0; background: linear-gradient(180deg, #f2f1e9 0%, #fbfaf5 100%); }
.contact-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 38px; padding: clamp(28px, 5vw, 52px); border-radius: 30px; background: var(--green-2); color: white; box-shadow: var(--shadow); }
.contact-panel::after { content: ""; position: absolute; width: 270px; height: 270px; inset-inline-start: -75px; bottom: -120px; border-radius: 50%; background: rgba(255,255,255,.055); pointer-events: none; }
.contact-intro, .contact-links { position: relative; z-index: 1; }
.contact-kicker { display: inline-block; margin-bottom: 8px; color: #ffe3a6; font-size: 13px; font-weight: 800; }
.contact-intro h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.35; }
.contact-intro p { margin: 0; color: #c6d9cf; font-size: 16px; }
.contact-links { display: grid; gap: 12px; }
.contact-link { min-width: 0; display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(255,255,255,.075); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.contact-link:hover { transform: translateX(-4px); background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); }
.contact-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: white; }
.contact-icon svg { width: 27px; height: 27px; display: block; fill: currentColor; }
.contact-link.facebook .contact-icon { color: #1877f2; }
.contact-link.whatsapp .contact-icon { color: #16a766; }
.contact-link.telegram .contact-icon { color: #229ed9; }
.contact-link strong, .contact-link small { display: block; }
.contact-link strong { font-size: 17px; line-height: 1.45; }
.contact-link small { color: #bfd2c8; font-size: 13px; line-height: 1.5; }
.contact-arrow { color: #ffe3a6; font-size: 20px; font-weight: 800; }
.site-footer { background: #10241c; color: #dce9e2; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-content: start; justify-content: end; font-size: 16px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; color: #9db2a7; font-size: 14px; }

@media (max-width: 900px) {
    .header-inner { position: relative; }
    .header-button { display: none; }
    .menu-toggle { display: block; }
    .nav { display: none; position: absolute; top: calc(100% + 1px); inset-inline: 0; padding: 12px; background: rgba(251, 250, 245, .98); border: 1px solid var(--line); border-radius: 0 0 18px 18px; box-shadow: 0 18px 35px rgba(22, 42, 32, .12); }
    .nav.is-open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .nav a { padding: 11px 12px; border-radius: 10px; background: #edf5f1; text-align: center; font-size: 16px; }
    .hero { padding-top: 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

@media (max-width: 620px) {
    .wrap { width: min(100% - 24px, 1180px); }
    .header-inner { min-height: 82px; gap: 10px; }
    .brand { gap: 8px; min-width: 0; }
    .brand-logo, .brand-logo .custom-logo { width: 64px; height: 64px; }
    .brand-logo { flex-basis: 64px; }
    .brand-name { font-size: 20px; line-height: 1.3; white-space: nowrap; }
    .brand small { display: none; }
    .menu-toggle { width: 44px; height: 44px; flex-basis: 44px; }
    .hero { padding: 40px 0 44px; }
    .hero h1 { letter-spacing: -1px; }
    .hero p, .section-head p { font-size: 16px; }
    .hero-panel { padding: 24px; border-radius: 24px; }
    .section { padding: 44px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: 10px; }
    .cards { gap: 14px; margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
    .card { flex-basis: 86%; padding: 18px; border-radius: 20px; }
    .card-media { min-height: 145px; margin-bottom: 14px; }
    .card-media img { height: 168px; }
    .radio-card .card-media { min-height: 165px; }
    .radio-card .card-media img { width: 145px; height: 145px; }
    .card h3 { font-size: 19px; }
    .carousel-controls { justify-content: flex-start; }
    .carousel-hint { margin-inline-end: auto; }
    .announcement-inner { padding-block: 7px; align-items: center; flex-wrap: wrap; gap: 3px 12px; }
    .announcement-items { order: 3; width: 100%; flex: 0 0 100%; height: 44px; }
    .announcement-track { gap: 22px; }
    .announcement-thumb { width: 32px; height: 32px; flex-basis: 32px; }
    .announcement-more { margin-inline-start: auto; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .page-contact-links { grid-template-columns: 1fr; }
    .screenshots-grid img { height: auto; max-height: 520px; }
    .contact-section { padding: 44px 0; }
    .contact-panel { grid-template-columns: 1fr; gap: 24px; padding: 25px 20px; border-radius: 24px; }
    .contact-link { grid-template-columns: 44px 1fr 20px; padding: 11px 12px; }
    .contact-icon { width: 44px; height: 44px; border-radius: 12px; }
    .contact-icon svg { width: 25px; height: 25px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { justify-content: start; gap: 16px 20px; font-size: 16px; }
}
