/*
Theme Name: Rumaysa Edition (دار رميسة إيديسيو)
Theme URI: https://rumaysa-edition.example
Author: دار رميسة إيديسيو للنشر والترجمة والتوزيع
Description: قالب ووردبريس أدبي عربي (RTL) مخصص لدار رميسة إيديسيو، يعرض النبذة التعريفية القابلة للتعديل، الكتاب الأكثر مبيعا بتذييل ذهبي، الكتب الترويجية، المجلة الثقافية النقدية، والفيديوهات.
Version: 1.0.0
Text Domain: rumaysa-edition
Tags: rtl-language-support, editorial, publishing, blog, custom-background
*/


:root {
  --rm-paper: #FAF8F4;
  --rm-surface: #FFFFFF;
  --rm-stone: #F1EDE4;
  --rm-border: #E4DDD0;
  --rm-ink: #181614;
  --rm-muted: #6B655D;
  --rm-gold: #B48938;
  --rm-gold-light: #DFC070;
}
.rm-root {
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  background: var(--rm-paper);
  color: var(--rm-ink);
  line-height: 1.75;
}
.rm-root h1, .rm-root h2, .rm-root h3, .rm-serif {
  font-family: "Amiri", Georgia, serif;
}
.rm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.rm-header {
  border-bottom: 1px solid var(--rm-border);
  background: rgba(250, 248, 244, 0.96);
  position: sticky;
  top: 0;
  z-index: 40;
}
.rm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
}
.rm-brand {
  font-family: "Amiri", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rm-ink);
  text-decoration: none;
  white-space: nowrap;
}
.rm-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.rm-nav a {
  color: var(--rm-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.rm-nav a:hover {
  color: var(--rm-ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.rm-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rm-border);
}
.rm-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}
.rm-bestseller {
  background: #181614;
  color: #FAF8F4;
  padding: 84px 0;
}
.rm-book-wrap {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}
.rm-book-frame {
  aspect-ratio: 3 / 4;
  background: #23201D;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: -14px 20px 44px rgba(0, 0, 0, 0.55);
}
.rm-book-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rm-gold-ribbon {
  position: absolute;
  bottom: 26px;
  right: -14px;
  left: -14px;
  background: linear-gradient(115deg, #8A621E 0%, #C9A04C 24%, #F3E2AC 48%, #D4AD56 70%, #8F6722 100%);
  color: #1A140A;
  padding: 12px 18px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 248, 224, 0.8);
  border-bottom: 1px solid rgba(102, 70, 18, 0.8);
}
.rm-gold-ribbon strong {
  display: block;
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  line-height: 1.3;
}
.rm-gold-ribbon span {
  font-size: 0.78rem;
  font-weight: 600;
}
.rm-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.rm-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.rm-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  padding: 24px;
}
.rm-meta {
  font-size: 0.82rem;
  color: var(--rm-muted);
  margin-bottom: 10px;
}
.rm-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--rm-ink);
  color: #FAF8F4;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
}
.rm-btn-gold {
  background: linear-gradient(115deg, #B48938, #D4AD56);
  color: #181614;
  font-weight: 600;
}
.rm-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #181614;
  display: block;
}
.rm-footer {
  padding: 48px 0;
  color: var(--rm-muted);
  font-size: 0.9rem;
}
body.logged-in .rm-protected {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}
body:not(.logged-in) .rm-protected img {
  -webkit-user-drag: none;
  user-drag: none;
}
.rm-protected input,
.rm-protected textarea,
.rm-protected select {
  -webkit-user-select: text;
  user-select: text;
}
.rm-copy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #181614;
  color: #FAF8F4;
  border: 1px solid rgba(201, 160, 76, 0.55);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  z-index: 9999;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.rm-copy-toast.is-visible {
  opacity: 1;
}

