
/* MobileYar base styles */
:root {
  --brand:#2f855a;
  --text:#1e293b;
  --bg:#f1f5f9fff;
  --muted:#6b7280;
}
* { box-sizing: border-box; }
html { height: 100%; }
html[dir="rtl"] body { direction: rtl; text-align: right; }
body {
  margin:0;
  font-family: Vazir, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}
header, footer { background:#f9fafb; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.nav { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.nav a { text-decoration:none; color:var(--text); padding:8px 12px; border-radius:12px; }
.nav a:hover { background:#eef2ff; }
.brand { font-weight:900; color:var(--brand); font-size:20px; }
.hero { padding:56px 0; }
.hero h1 { font-size:32px; margin:0 0 16px; color:var(--brand); }
.hero p { color:var(--muted); margin:0 0 24px; }
.btn { display:inline-block; padding:12px 18px; border-radius:12px; background:var(--brand); color:#f1f5f9; text-decoration:none; }
.grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.card { border:1px solid #e5e7eb; border-radius:16px; padding:16px; background:#f1f5f9; }
h2 { margin-top:32px; font-size:26px; color:#1e293b; }
small.muted { color:var(--muted); }
footer { margin-top:40px; }
code,kbd,pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }


/* --- Theme (Light/Dark) --- */
:root {
  color-scheme: light dark;
}
/* حالت تاریک با data-theme یا سیستم */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0b1220;
    --text:#e5e7eb;
    --muted:#9ca3af;
    --brand:#34d399;
  }
  header, footer { background:#1e293b; }
  .card { border-color:#334155; background:#0c1626; }
  .nav a:hover { background:#1e293b; }
}
html[data-theme="dark"] {
  --bg:#0b1220;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --brand:#34d399;
}
html[data-theme="dark"] header,
html[data-theme="dark"] footer { background:#1e293b; }
html[data-theme="dark"] .card { border-color:#334155; background:#0c1626; }
html[data-theme="dark"] .nav a:hover { background:#1e293b; }

/* دکمه سوییچ تم */
.theme-toggle {
  margin-right:auto;
  border:1px solid #e5e7eb;
  background:transparent;
  padding:8px 12px;
  border-radius:12px;
  cursor:pointer;
}
html[data-theme="dark"] .theme-toggle {
  border-color:#334155;
  color:var(--text);
}




/* 16:9 placeholder */
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html[data-theme="dark"] .hero-figure {
   border-color:#334155; margin: 64px 0 16px;
}


/* --- Hero Two-column Layout --- */
.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}
.hero-text { flex: 3; }
.hero-text h1 { font-size: 2rem; margin-bottom: 12px; }
.hero-text p { font-size: 1.25rem; color: var(--muted); }
.hero-image { flex: 2; text-align: left; }
.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .hero-row { flex-direction: column; text-align: center; }
  .hero-image { text-align: center; }
  .hero-image img { width: 80%; }
}


/* --- Hero Row: text right, image left --- */
.hero-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:32px;
}
.hero-text{ flex:3; }
.hero-image{ flex:2; display:flex; justify-content:flex-start; }
.hero-image img{
  max-width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}
@media (max-width: 900px){
  .hero-row{ flex-direction:column; text-align:center; }
  .hero-image{ justify-content:center; }
}


/* --- iOS Web Notice & Nav Link --- */
.nav-link { margin-right: 12px; font-weight: 800; }
.notice-ios {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed #a7f3d0;
  background: #ecfdf5;
  border-radius: 12px;
}
html[data-theme="dark"] .notice-ios {
  border-color:#155e75; background:#0b1220;
}

/* iOS CTA */
.ios-cta{ margin-top: 12px; }
.ios-cta .btn{ display:inline-block; padding:10px 14px; border-radius:10px; border:1px solid #e5e7eb; }
html[data-theme="dark"] .ios-cta .btn{ border-color:#334155; }
