/*
Theme Name: MoboReview Arabic
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: قالب عربي RTL احترافي لمواقع مراجعات الهواتف والأجهزة، مصمم بواجهة نظيفة مستوحاة من تخطيط مواقع كتالوج الأجهزة الحديثة. يتضمن أقسام أحدث الهواتف، الأجهزة اللوحية، الساعات الذكية، المقارنات، الشركات، الدول، المقالات والفوتر.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: moboreview
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, responsive-layout, blog, news
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --mobo-accent: #42b7ed;
  --mobo-accent-soft: #eaf7ff;
  --mobo-bg: #ffffff;
  --mobo-soft: #f7f7f7;
  --mobo-card: #ffffff;
  --mobo-text: #252525;
  --mobo-muted: #929292;
  --mobo-line: #ededed;
  --mobo-footer: #252525;
  --mobo-footer-deep: #151515;
  --mobo-radius: 14px;
  --mobo-shadow: 0 10px 34px rgba(24, 31, 39, .05);
  --mobo-container: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  background: var(--mobo-bg);
  color: var(--mobo-text);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mobo-accent); }
button, input, textarea, select { font: inherit; }

.mobo-container {
  width: min(calc(100% - 40px), var(--mobo-container));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.mobo-topbar {
  min-height: 44px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  color: #8a8a8a;
  font-size: 13px;
}
.mobo-topbar__inner,
.mobo-mainbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mobo-topbar__inner { min-height: 44px; }
.mobo-topbar__tools,
.mobo-socials,
.mobo-mainnav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobo-topbar__tools { flex-wrap: wrap; gap: 12px 24px; }
.mobo-socials { gap: 12px; }
.mobo-socials a {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 700;
}
.mobo-socials a:hover { color: var(--mobo-accent); }

.mobo-mainbar {
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
}
.mobo-mainbar__inner { min-height: 98px; }
.mobo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.mobo-brand .custom-logo { max-height: 58px; width: auto; }
.mobo-brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #6e72ff, var(--mobo-accent));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.25);
  font-size: 26px;
  font-weight: 900;
}
.mobo-brand__name {
  color: var(--mobo-accent);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.6px;
  direction: ltr;
}
.mobo-mainnav { flex: 1; }
.mobo-mainnav ul { justify-content: center; gap: 38px; }
.mobo-mainnav a {
  color: #555;
  font-size: 16px;
  white-space: nowrap;
}
.mobo-mainnav .current-menu-item > a,
.mobo-mainnav a:hover { color: var(--mobo-accent); }
.mobo-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  justify-content: flex-end;
}
.mobo-search-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #555;
}
.mobo-search-btn:hover { background: #f7f7f7; color: var(--mobo-accent); }
.mobo-app-btn {
  background: var(--mobo-accent-soft);
  color: var(--mobo-accent);
  padding: 11px 24px;
  border-radius: 30px;
  font-size: 15px;
}
.mobo-mobile-toggle { display: none; }

/* ---------- Common section ---------- */
.mobo-section { padding: 24px 0; }
.mobo-section--soft { background: #f8f8f8; }
.mobo-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.mobo-section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.mobo-section__more {
  color: #999;
  font-size: 14px;
}
.mobo-section__more:hover { color: var(--mobo-accent); }

/* ---------- Latest phones ---------- */
.mobo-phones-wrap { padding-top: 14px; }
.mobo-device-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.mobo-device-card { text-align: center; min-width: 0; }
.mobo-device-card__image {
  height: 205px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  overflow: hidden;
}
.mobo-device-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.mobo-device-card:hover .mobo-device-card__image img { transform: translateY(-4px) scale(1.02); }
.mobo-device-card__title {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  direction: ltr;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobo-device-card__brand {
  display: block;
  color: #a0a0a0;
  font-size: 13px;
  margin-top: 3px;
}
.mobo-slider-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 22px;
}
.mobo-slider-dots span {
  width: 10px;
  height: 10px;
  background: #dedede;
  border-radius: 50%;
}
.mobo-slider-dots span.active { width: 24px; border-radius: 20px; background: #555; }

/* ---------- Ad placeholder ---------- */
.mobo-ad {
  margin: 28px auto 10px;
  min-height: 190px;
  border: 1px solid #ececec;
  background: linear-gradient(100deg, #0e5d9d 0 34%, #fff 34% 100%);
  display: grid;
  grid-template-columns: 34% 66%;
  overflow: hidden;
  max-width: 1160px;
}
.mobo-ad__visual {
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.17) 0 2px, transparent 2px 20px),
    #0e5d9d;
}
.mobo-ad__copy {
  padding: 42px 46px;
  direction: ltr;
  text-align: left;
}
.mobo-ad__copy strong { display: block; font-size: 31px; font-weight: 500; color: #101010; }
.mobo-ad__copy span { color: #1d91d0; font-size: 16px; font-weight: 700; }
.mobo-ad__copy small { display: block; margin-top: 38px; color: #555; }

/* ---------- Tablets + Watches ---------- */
.mobo-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mobo-panel {
  background: #fff;
  border-radius: 17px;
  padding: 18px 26px 14px;
}
.mobo-panel__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}
.mobo-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 15px;
}
.mobo-panel .mobo-device-card__image { height: 132px; }
.mobo-panel .mobo-device-card__title { font-size: 16px; }
.mobo-panel__more {
  display: inline-block;
  margin-top: 8px;
  color: #888;
  font-size: 13px;
}

/* ---------- Comparisons ---------- */
.mobo-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mobo-comparison-card {
  background: #f8f8f8;
  border-radius: 12px;
  min-height: 245px;
  padding: 20px 24px 14px;
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  gap: 8px;
}
.mobo-comparison-card__device { text-align: center; min-width: 0; }
.mobo-comparison-card__device img { height: 145px; width: 100%; object-fit: contain; }
.mobo-comparison-card__name {
  direction: ltr;
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobo-comparison-card__brand { display: block; color: #999; font-size: 12px; }
.mobo-vs {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  direction: ltr;
}
.mobo-compare-cta {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.mobo-compare-cta a {
  color: var(--mobo-accent);
  background: var(--mobo-accent-soft);
  padding: 10px 28px;
  border-radius: 30px;
}

/* ---------- Brands + Countries ---------- */
.mobo-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.mobo-brand-chip {
  background: #f8f8f8;
  border-radius: 8px;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  transition: .2s ease;
}
.mobo-brand-chip:hover { background: var(--mobo-accent-soft); color: var(--mobo-accent); transform: translateY(-1px); }
.mobo-country-area { margin-top: 28px; padding: 46px 0; background: #f7f7f7; }
.mobo-countries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mobo-country-card {
  background: #fff;
  min-height: 124px;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mobo-country-card__text { font-size: 18px; line-height: 1.65; }
.mobo-country-card__flag {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 44px;
  background: #f3f3f3;
  flex: 0 0 auto;
}

/* ---------- Articles ---------- */
.mobo-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mobo-article-feature,
.mobo-article-card {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #222;
  color: #fff;
}
.mobo-article-feature { min-height: 440px; }
.mobo-article-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.mobo-article-side .mobo-article-card:first-child { grid-column: 1 / -1; }
.mobo-article-card { min-height: 210px; }
.mobo-article-feature img,
.mobo-article-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobo-article-feature::after,
.mobo-article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.06) 62%);
}
.mobo-article-title {
  position: absolute;
  z-index: 2;
  inset-inline: 20px;
  bottom: 16px;
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}
.mobo-article-feature .mobo-article-title { font-size: 22px; }

/* ---------- Footer ---------- */
.mobo-footer { background: var(--mobo-footer); color: #fff; margin-top: 10px; }
.mobo-footer__main { padding: 48px 0 42px; }
.mobo-footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 2.3fr 1.2fr;
  gap: 42px;
  align-items: start;
}
.mobo-footer h3 { margin: 0 0 10px; color: #929292; font-size: 20px; font-weight: 500; }
.mobo-footer-menu { list-style: none; margin: 0; padding: 0; }
.mobo-footer-menu li { margin: 5px 0; }
.mobo-footer-menu a:hover { color: var(--mobo-accent); }
.mobo-footer-links-cloud { display: flex; flex-wrap: wrap; gap: 7px 16px; }
.mobo-footer-links-cloud a { font-size: 15px; }
.mobo-app-stack { display: grid; gap: 14px; justify-items: start; }
.mobo-qr {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.mobo-store-badge {
  width: 240px;
  min-height: 70px;
  border: 2px solid #aaa;
  border-radius: 12px;
  background: #050505;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  direction: ltr;
}
.mobo-store-badge__icon { font-size: 30px; }
.mobo-store-badge small { display: block; font-size: 11px; line-height: 1; }
.mobo-store-badge strong { display: block; font-size: 21px; line-height: 1.25; }
.mobo-footer__bottom { background: var(--mobo-footer-deep); min-height: 48px; }
.mobo-footer__bottom-inner {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}
.mobo-footer__copyright { justify-self: end; }
.mobo-dmca {
  justify-self: center;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
}
.mobo-dmca span:first-child { background: #43a8dc; padding: 4px 8px; }
.mobo-dmca span:last-child { background: #303030; padding: 4px 8px; }
.mobo-footer__socials { justify-self: start; }

/* ---------- Search overlay ---------- */
.mobo-search-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 18, 20, .84);
  display: none;
  place-items: center;
  padding: 24px;
}
.mobo-search-panel.is-open { display: grid; }
.mobo-search-panel__box { width: min(720px, 100%); background: #fff; border-radius: 16px; padding: 24px; }
.mobo-search-panel form { display: flex; gap: 10px; }
.mobo-search-panel input[type="search"] { flex: 1; border: 1px solid #ddd; border-radius: 10px; padding: 13px 16px; outline: 0; }
.mobo-search-panel input[type="search"]:focus { border-color: var(--mobo-accent); }
.mobo-search-panel button[type="submit"] { border: 0; background: var(--mobo-accent); color: #fff; padding: 10px 18px; border-radius: 10px; cursor: pointer; }
.mobo-search-close { border: 0; background: transparent; font-size: 26px; cursor: pointer; float: left; }

/* ---------- Inner pages ---------- */
.mobo-content { padding: 40px 0; }
.mobo-post-card { border-bottom: 1px solid var(--mobo-line); padding: 22px 0; }
.mobo-post-card h2 { margin: 0 0 8px; }
.mobo-single { max-width: 900px; margin-inline: auto; }
.mobo-single__title { font-size: 34px; line-height: 1.4; margin-bottom: 8px; }
.mobo-single__meta { color: var(--mobo-muted); font-size: 14px; margin-bottom: 24px; }
.mobo-single__thumb { border-radius: 16px; overflow: hidden; margin-bottom: 28px; }
.mobo-single__content { font-size: 18px; }
.mobo-single__content img { border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mobo-mainnav ul { gap: 20px; }
  .mobo-device-strip { grid-template-columns: repeat(3, 1fr); }
  .mobo-brands-grid { grid-template-columns: repeat(4, 1fr); }
  .mobo-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .mobo-topbar { display: none; }
  .mobo-mainbar__inner { min-height: 78px; }
  .mobo-brand { min-width: 0; }
  .mobo-brand__name { font-size: 22px; }
  .mobo-brand__mark { width: 42px; height: 42px; }
  .mobo-mobile-toggle { display: inline-grid; place-items: center; border: 0; background: #f7f7f7; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
  .mobo-mainnav {
    display: none;
    position: absolute;
    z-index: 50;
    top: 78px;
    inset-inline: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: var(--mobo-shadow);
  }
  .mobo-mainnav.is-open { display: block; }
  .mobo-mainnav ul { align-items: stretch; flex-direction: column; gap: 0; padding: 12px 20px; }
  .mobo-mainnav li a { display: block; padding: 9px 0; }
  .mobo-header-actions .mobo-app-btn { display: none; }
  .mobo-header-actions { min-width: 0; }
  .mobo-dual-grid,
  .mobo-articles-grid { grid-template-columns: 1fr; }
  .mobo-comparison-grid { grid-template-columns: 1fr; }
  .mobo-countries-grid { grid-template-columns: repeat(2, 1fr); }
  .mobo-ad { grid-template-columns: 1fr; background: #fff; }
  .mobo-ad__visual { min-height: 100px; }
  .mobo-footer__bottom-inner { grid-template-columns: 1fr; text-align: center; padding: 12px 0; }
  .mobo-footer__copyright, .mobo-dmca, .mobo-footer__socials { justify-self: center; }
}

@media (max-width: 640px) {
  .mobo-container { width: min(calc(100% - 24px), var(--mobo-container)); }
  .mobo-device-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mobo-device-card__image { height: 160px; }
  .mobo-panel { padding: 16px; }
  .mobo-panel__grid { grid-template-columns: repeat(2, 1fr); }
  .mobo-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .mobo-countries-grid { grid-template-columns: 1fr; }
  .mobo-country-card { min-height: 100px; }
  .mobo-country-card__flag { width: 70px; height: 70px; font-size: 34px; }
  .mobo-article-side { grid-template-columns: 1fr; grid-template-rows: auto; }
  .mobo-article-side .mobo-article-card:first-child { grid-column: auto; }
  .mobo-article-feature { min-height: 300px; }
  .mobo-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mobo-mainbar__inner { gap: 8px; }
  .mobo-brand__name { display: none; }
}
