/*
Theme Name: أغنية سومر - فادي البرغوثي
Theme URI: https://fadibarghouthi.com
Author: فادي البرغوثي
Author URI: https://fadibarghouthi.com
Description: قالب رواية أغنية سومر - حكاية الأفعى والنسر
Version: 1.0
License: GPL v2 or later
Text Domain: aghyat-sumer
*/

/* استدعاء خطوط جوجل للأدب والروايات */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;600;700&display=swap');

:root {
  --bg: #f4ead8;
  --paper: #fff8ec;
  --ink: #2b1a10;
  --muted: #7a6047;
  --brown: #3a2416;
  --gold: #c9943f;
  --copper: #b8652f;
  --blue: #1f4d5d;
  --border: rgba(58,36,22,.16);
  --shadow: 0 35px 90px rgba(37,23,15,.28);
  --container: 1180px;
  /* اعتماد خط Cairo كخط أساسي افتراضي للموقع */
  --font: 'Cairo', system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  direction: rtl;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.8;
  padding-top: 78px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(var(--container), 92%); margin: auto; }
.narrow { max-width: 820px; }

/* التوافق مع شريط أدوات ووردبريس للمدير */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ===== الهيدر للكمبيوتر ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(255,248,236,.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  color: var(--brown);
  flex-shrink: 0;
}
.brand-symbol { color: var(--gold); font-size: 1.8rem; }
.menu { display: flex; gap: 34px; font-weight: 700; list-style: none; }
.menu a, .menu li a { position: relative; color: var(--brown); display: inline-block; }

/* دعم الكلاس الافتراضي للرابط النشط في ووردبريس */
.menu a.active, .menu a:hover,
.menu .current-menu-item a, .menu li.current_page_item a { color: var(--gold); }

.menu a::after, .menu li a::after {
  content: "";
  position: absolute;
  right: 0; bottom: -9px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: .25s;
}
.menu a.active::after, .menu a:hover::after,
.menu .current-menu-item a::after { width: 100%; }

.top-button {
  background: var(--brown);
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: .25s;
  flex-shrink: 0;
}
.top-button:hover {
  background: var(--gold);
  color: var(--brown);
  transform: translateY(-3px);
}

/* ===== الهيرو البصري المطور ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 42%, rgba(31,77,93,.15), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(201,148,63,.26), transparent 34%),
    linear-gradient(135deg,#fff8ec 0%,#f4ead8 52%,#e7cfaa 100%);
}
.hero-texture {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,36,22,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,36,22,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .35;
  z-index: 1;
}
.hero-glow-effect {
  position: absolute;
  top: 30%; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201, 148, 63, 0.15), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: 40px;
}
.hero-content { order: 2; max-width: 610px; margin-inline-start: auto; }

/* الشارة الفاخرة */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,248,236,.85);
  color: var(--copper);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(58,36,22,0.04);
}
.tag-badge i { color: var(--gold); }

.hero h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(3.4rem,5vw,5rem);
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 22px;
}
.hero h1 small {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.35rem,2vw,2.05rem);
  color: var(--gold);
  line-height: 1.5;
  font-family: var(--font);
  font-weight: 400;
}

/* شريط تفاصيل الرواية الفخم العائم */
.book-meta-bar { display: flex; gap: 14px; margin: 25px 0; flex-wrap: wrap; }
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 254, 251, 0.65);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.92rem;
  border: 1px solid rgba(201, 148, 63, 0.15);
  color: var(--brown);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.meta-item i { color: var(--gold); font-size: 1rem; }
.meta-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(37,23,15,0.06);
}

.hero-slogan-wrapper { position: relative; }
.hero-slogan { font-size: 1.15rem; line-height: 1.95; color: var(--brown); margin-bottom: 28px; text-align: justify; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== الأزرار الفاخرة المطورة بصرياً ===== */
.btn-primary-lux, .btn-secondary-lux {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.btn-primary-lux i, .btn-secondary-lux i { font-size: 0.95rem; transition: transform 0.3s ease; }
.btn-primary-lux { background: var(--brown); color: #fff; box-shadow: 0 6px 20px rgba(58,36,22,0.15); }
.btn-secondary-lux { border: 1px solid var(--border); color: var(--brown); background: rgba(255,248,236,.65); backdrop-filter: blur(5px); }

.btn-primary-lux:hover { background: var(--gold); color: var(--brown); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(201, 148, 63, 0.3); }
.btn-primary-lux:hover i { transform: translateX(-5px); }
.btn-secondary-lux:hover { background: rgba(255,255,255,0.9); border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(37,23,15,0.05); }
.btn-secondary-lux:hover i { transform: translateX(-5px); }

/* زر نابض حيوي لكرت الإطلاق */
.pulsing-button { animation: luxuryButtonPulse 2s infinite; }
@keyframes luxuryButtonPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 148, 63, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(201, 148, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 148, 63, 0); }
}

/* ===== أيقونات السوشال ميديا ===== */
.social-icons-wrapper { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(58, 36, 22, 0.08); flex-wrap: wrap; }
.social-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; }
.social-icons { display: flex; align-items: center; gap: 12px; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(58, 36, 22, 0.05); border: 1px solid rgba(58, 36, 22, 0.08); color: var(--brown); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none;
}
.social-icon i { font-size: 1.15rem; transition: all 0.3s ease; }

.social-icon.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(24, 119, 242, 0.25); }
.social-icon.instagram:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; color: #fff; transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(220, 39, 67, 0.25); }
.social-icon.tiktok:hover { background: #000; border-color: #000; color: #fff; transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); }
.social-icon:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(201, 148, 63, 0.15); }

/* ===== الكتاب الطائر ثلاثي الأبعاد المطور ===== */
.book-area { order: 1; min-height: 720px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 55px; perspective: 1800px; }
.book-scene-wrapper { animation: luxuryFloatBook 6s ease-in-out infinite; transform-style: preserve-3d; }
.book-scene { position: relative; width: min(530px,86vw); transform-style: preserve-3d; }
.book { position: relative; width: 100%; aspect-ratio: 2.85/4; transform-style: preserve-3d; transform: rotateY(17deg) rotateX(4deg) rotateZ(1deg); transition: .6s; }
.book-scene:hover .book { transform: rotateY(11deg) rotateX(2deg) rotateZ(0deg) translateY(-8px); }
.book-front { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: 12px 24px 24px 12px; transform: translateZ(42px); background: var(--brown); box-shadow: var(--shadow), inset 18px 0 25px rgba(0,0,0,.22); }
.book-front img { width: 100%; height: 100%; object-fit: cover; }

.fallback-cover { background: linear-gradient(145deg, #3a2416, #1f130c); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 30px; border-radius: inherit; }
.fallback-inner { text-align: center; }
.fallback-inner h3 { font-family: 'Amiri', serif; color: var(--gold); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.3; margin-bottom: 10px; }
.fallback-inner small { font-size: 1.05rem; color: #d9c5a8; font-family: var(--font); }

.book-gloss {
  position: absolute; inset: 0; z-index: 6; border-radius: 12px 24px 24px 12px; transform: translateZ(44px);
  background: linear-gradient(90deg,rgba(0,0,0,.28),transparent 14%,transparent 72%,rgba(255,255,255,.18)), linear-gradient(135deg,transparent 0%,rgba(255,255,255,.18) 42%,transparent 62%);
  mix-blend-mode: screen; pointer-events: none;
}
.book-spine { position: absolute; top: 10px; left: -82px; width: 104px; height: calc(100% - 20px); z-index: 3; transform-origin: right center; transform: rotateY(-90deg) translateZ(42px); border-radius: 22px 0 0 22px; background: linear-gradient(90deg,#24130b,#5a321d 32%,#a85f31 70%,#d79a50); }
.book-pages { position: absolute; top: 22px; left: -68px; width: 86px; height: calc(100% - 44px); z-index: 2; transform-origin: right center; transform: rotateY(-89deg) translateZ(28px); border-radius: 18px 0 0 18px; background: repeating-linear-gradient(to bottom,#fff8ea 0,#fff8ea 5px,#dcc39e 6px,#fff1d8 9px); }
.book-back { position: absolute; inset: 12px; z-index: 1; border-radius: 14px 22px 22px 14px; background: #24150d; transform: translateZ(-38px); }
.book-shadow { position: absolute; width: 118%; height: 70px; right: -10%; bottom: -78px; border-radius: 50%; background: radial-gradient(ellipse,rgba(37,23,15,.36),rgba(37,23,15,.18) 42%,transparent 74%); filter: blur(18px); transform: rotateX(70deg); z-index: -1; }
.book-aura { position: absolute; width: 170%; height: 170%; top: -38%; right: -35%; background: radial-gradient(circle,rgba(201,148,63,.24),transparent 60%); z-index: -3; }

@keyframes luxuryFloatBook { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

/* ===== الأقسام والمحتوى وعناصر الفصل ===== */
.story-section, .quote-section, .launch-section { padding: 110px 0; background: var(--paper); }
.accent-separator { text-align: center; color: var(--gold); font-size: 1.6rem; margin-bottom: 15px; opacity: 0.7; }
.section-label { color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.section-label-alert { color: var(--copper); font-weight: 900; display: inline-flex; align-items: center; gap: 6px; }
.story-section h2, .launch-section h2 { color: var(--brown); font-size: clamp(2rem,4vw,3.5rem); margin: 12px 0 18px; font-family: 'Amiri', serif; }
.story-text-lead { color: var(--muted); font-size: 1.2rem; line-height: 1.9; text-align: justify; }

/* قسم الاقتباس الأدبي الفخم المطور */
.quote-section { position: relative; background: linear-gradient(135deg,#3a2416,#1f130c); color: #fff; text-align: center; overflow: hidden; }
.quote-bg-overlay { position: absolute; inset: 0; background-image: radial-gradient(circle at center, rgba(201,148,63,0.06), transparent 70%); pointer-events: none; }
.quote-mark-icon { font-size: 2.8rem; color: rgba(201, 148, 63, 0.25); display: block; margin-bottom: 10px; }
.quote-section blockquote { font-family: 'Amiri', serif; font-style: italic; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.7; color: #ead8bb; max-width: 800px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.quote-line-decorator { display: block; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 25px auto 0; }

/* كرت الإطلاق الفخم المتجاوب */
.launch-card-lux { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 50px 60px; border-radius: 34px; border: 1px solid var(--border); background: #fff8ec; box-shadow: 0 30px 80px rgba(58,36,22,0.08); position: relative; overflow: hidden; }
.launch-card-lux::before { content: ''; position: absolute; top: 0; right: 0; width: 5px; height: 100%; background: var(--gold); }
.launch-info p { color: var(--muted); font-size: 1.15rem; line-height: 1.8; margin-top: 10px; }

/* ===== الفوتر ===== */
.site-footer { padding: 38px 0; background: #2b1a10; color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner p { color: #d9c5a8 }
.footer-links { display: flex; gap: 22px; color: #ead8bb }
.footer-links a:hover { color: var(--gold) }

/* ===== كلاسات ووردبريس الأساسية ===== */
.aligncenter { display: block; margin: 20px auto; text-align: center; }
.alignright { float: right; margin: 20px 0 20px 20px; }
.alignleft { float: left; margin: 20px 20px 20px 0; }
.wp-caption { background: var(--paper); border: 1px solid var(--border); max-width: 100%; padding: 8px; text-align: center; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); margin-top: 5px; }

/* ===== تنسيقات صفحة المقتطفات المخصصة والعالمية ===== */
.excerpts-page { padding-bottom: 80px; }
.page-intro { text-align: center; padding: 80px 0 40px; }
.page-intro h1 { font-family: 'Amiri', serif; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--brown); margin-top: 10px; }
.intro-text { font-size: 1.2rem; color: var(--muted); line-height: 1.8; margin-top: 15px; }

.poetic-break { text-align: center; margin: 60px 0; padding: 0 20px; }
.cuneiform-sign { color: var(--gold); font-size: 1.8rem; display: block; margin: 10px 0; }
.poetic-break blockquote { font-family: 'Amiri', serif; font-style: italic; font-size: 1.6rem; color: var(--copper); line-height: 1.6; max-width: 600px; margin: 0 auto; }

.excerpts-footer { margin-top: 80px; padding: 60px 0; border-top: 1px solid var(--border); text-align: center; }
.excerpts-footer h3 { font-family: 'Amiri', serif; font-size: 2rem; color: var(--brown); margin-bottom: 10px; }
.excerpts-footer p { color: var(--muted); }
.text-center { text-align: center; }

/* ============================================================
   تنسيقات ألواح المقتطفات - تصميم فخم مستوحى من الطين السومري
   ============================================================ */
.tablets-container { padding: 30px 0 100px; position: relative; }

.clay-tablet-premium {
    position: relative;
    background: linear-gradient(165deg, #fffcf7 0%, #f8f0e3 45%, #efe3cf 100%);
    border: 1px solid rgba(184, 101, 47, 0.15);
    border-radius: 24px 24px 20px 20px;
    padding: 60px 65px 50px;
    margin-bottom: 70px;
    box-shadow: 0 2px 4px rgba(58, 36, 22, 0.02), 0 12px 40px rgba(58, 36, 22, 0.06), 0 30px 80px rgba(58, 36, 22, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: default;
}
.clay-tablet-premium:hover {
    transform: translateY(-8px) scale(1.002);
    box-shadow: 0 4px 8px rgba(58, 36, 22, 0.02), 0 20px 60px rgba(58, 36, 22, 0.10), 0 50px 120px rgba(58, 36, 22, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(184, 101, 47, 0.30);
}

.tablet-watermark {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 30%; background-repeat: no-repeat;
    opacity: 0.08; filter: sepia(0.6) saturate(0.3) contrast(1.2) brightness(0.9);
    pointer-events: none; z-index: 1; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: inherit;
}
.clay-tablet-premium:hover .tablet-watermark { opacity: 0.18; transform: scale(1.04) rotate(-1.5deg); filter: sepia(0.3) saturate(0.5) contrast(1.1) brightness(1); }

.clay-tablet-premium::before {
    content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 150%;
    background: radial-gradient(ellipse, rgba(201, 148, 63, 0.04), transparent 70%);
    pointer-events: none; z-index: 0; border-radius: 50%; transition: all 0.8s ease;
}
.clay-tablet-premium:hover::before { transform: scale(1.2); opacity: 0.6; }
.clay-tablet-premium::after { content: ''; position: absolute; bottom: -40%; left: -20%; width: 60%; height: 100%; background: radial-gradient(ellipse, rgba(184, 101, 47, 0.03), transparent 70%); pointer-events: none; z-index: 0; }

.tablet-corner { position: absolute; width: 24px; height: 24px; border: 2px solid rgba(184, 101, 47, 0.25); opacity: 0.5; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 3; pointer-events: none; }
.clay-tablet-premium:hover .tablet-corner { opacity: 1; border-color: var(--gold); width: 28px; height: 28px; }
.tablet-corner.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; border-radius: 3px 0 0 0; }
.tablet-corner.top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; border-radius: 0 3px 0 0; }
.tablet-corner.bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; border-radius: 0 0 0 3px; }
.tablet-corner.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; border-radius: 0 0 3px 0; }

.tablet-header-premium { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 32px; padding-bottom: 22px; border-bottom: 2px solid rgba(58, 36, 22, 0.06); }
.tablet-badge { font-family: var(--font); font-size: 0.78rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2b1a10, #4a2f1e); padding: 6px 20px 6px 22px; border-radius: 30px; letter-spacing: 0.8px; text-transform: uppercase; box-shadow: 0 3px 12px rgba(58, 36, 22, 0.20); display: inline-flex; align-items: center; gap: 8px; }
.tablet-badge::before { content: '◆'; font-size: 0.5rem; color: var(--gold); opacity: 0.8; }

.cuneiform-icon { color: var(--gold); font-size: 1.4rem; opacity: 0.6; transition: all 0.4s ease; line-height: 1; }
.clay-tablet-premium:hover .cuneiform-icon { opacity: 1; transform: rotate(-8deg) scale(1.1); }
.tablet-subtitle-premium { font-family: 'Amiri', serif; font-size: 1.25rem; font-weight: 400; color: var(--copper); font-style: italic; letter-spacing: 0.3px; opacity: 0.85; margin-right: auto; }

.tablet-body-premium { position: relative; z-index: 2; padding: 4px 0 6px; }
.tablet-body-premium p { font-family: 'Amiri', serif; font-size: 1.35rem; line-height: 2.3; color: var(--ink); text-align: justify; text-justify: inter-word; margin-bottom: 28px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); }
.tablet-body-premium p:last-child { margin-bottom: 0; }

.tablet-body-premium p:first-of-type::first-letter { font-size: 4.2rem; float: right; margin: 6px 0 0 14px; color: var(--gold); font-weight: 700; line-height: 0.85; font-family: 'Amiri', serif; text-shadow: 0 2px 12px rgba(201, 148, 63, 0.15); }

.tablet-body-premium blockquote { font-family: 'Amiri', serif; font-size: 1.55rem; color: var(--copper); text-align: center; margin: 40px auto 38px; max-width: 88%; line-height: 2; position: relative; padding: 20px 30px; background: linear-gradient(135deg, rgba(201, 148, 63, 0.04), rgba(184, 101, 47, 0.02)); border-radius: 16px; border-right: 4px solid rgba(201, 148, 63, 0.25); border-left: 4px solid rgba(201, 148, 63, 0.08); }
.tablet-body-premium blockquote::before { content: '"'; font-size: 3.5rem; color: var(--gold); opacity: 0.2; position: absolute; top: -8px; right: 12px; font-family: 'Amiri', serif; line-height: 1; }
.tablet-body-premium blockquote::after { content: '"'; font-size: 3.5rem; color: var(--gold); opacity: 0.2; position: absolute; bottom: -30px; left: 12px; font-family: 'Amiri', serif; line-height: 1; }

.tablet-footer-premium { position: relative; z-index: 2; margin-top: 38px; padding-top: 22px; border-top: 2px solid rgba(58, 36, 22, 0.05); display: flex; justify-content: center; align-items: center; gap: 16px; }
.tablet-footer-premium::before { content: ''; flex: 1; max-width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); opacity: 0.3; }
.tablet-footer-premium::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: linear-gradient(270deg, transparent, var(--gold)); opacity: 0.3; }
.tablet-seal { font-family: 'Amiri', serif; font-size: 0.85rem; color: var(--muted); opacity: 0.55; letter-spacing: 3px; text-transform: uppercase; font-weight: 400; padding: 0 10px; white-space: nowrap; transition: all 0.4s ease; }
.clay-tablet-premium:hover .tablet-seal { opacity: 0.85; color: var(--gold); letter-spacing: 5px; }

.no-tablets-message { padding: 80px 40px; text-align: center; color: var(--muted); font-size: 1.2rem; background: var(--paper); border-radius: 20px; border: 2px dashed rgba(184, 101, 47, 0.12); }
.no-tablets-message::before { content: '🏺'; display: block; font-size: 3.5rem; margin-bottom: 20px; opacity: 0.5; }

.clay-tablet-premium.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.clay-tablet-premium.fade-in.visible { opacity: 1; transform: translateY(0); }

.tablet-body-premium a { color: var(--copper); text-decoration: none; border-bottom: 1px solid rgba(184, 101, 47, 0.15); transition: all 0.3s ease; font-weight: 500; }
.tablet-body-premium a:hover { color: var(--gold); border-bottom-color: var(--gold); text-shadow: 0 0 20px rgba(201, 148, 63, 0.08); }

.tablet-body-premium img { border-radius: 12px; margin: 25px auto; box-shadow: 0 8px 30px rgba(58, 36, 22, 0.06); border: 1px solid rgba(201, 148, 63, 0.06); max-width: 100%; height: auto; }
.tablet-body-premium .alignleft { float: left; margin: 8px 20px 20px 0; max-width: 45%; }
.tablet-body-premium .alignright { float: right; margin: 8px 0 20px 20px; max-width: 45%; }
.tablet-body-premium .aligncenter { margin: 25px auto; display: block; text-align: center; max-width: 80%; }

.tablet-body-premium ul, .tablet-body-premium ol { padding-right: 30px; margin: 20px 0 25px; color: var(--ink); }
.tablet-body-premium li { margin-bottom: 10px; line-height: 1.9; font-size: 1.1rem; }
.tablet-body-premium ul li::marker { color: var(--gold); }

/* ===== التجاوب للشاشات المتوسطة والتابلت ===== */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { order: 1; margin: 0 auto; text-align: center; }
  .book-meta-bar { justify-content: center; }
  .book-area { order: 2; min-height: 480px; padding-bottom: 20px; }
  .book { max-width: 320px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-slogan { text-align: center; }
  .social-icons-wrapper { justify-content: center; margin-top: 28px; padding-top: 24px; }
  .social-label { font-size: 0.8rem; width: 100%; text-align: center; margin-bottom: 5px; }
  .launch-card-lux { grid-template-columns: 1fr; text-align: center; padding: 40px 30px; gap: 25px; }
  .launch-card-lux::before { width: 100%; height: 5px; top: 0; right: 0; }
  .clay-tablet-premium { padding: 45px 40px 40px; margin-bottom: 50px; }
  .tablet-body-premium p { font-size: 1.25rem; line-height: 2.1; }
  .tablet-body-premium p:first-of-type::first-letter { font-size: 3.6rem; margin: 4px 0 0 12px; }
  .tablet-subtitle-premium { font-size: 1.1rem; }
}

/* ===== التجاوب التام والنهائي للهواتف المحمولة ===== */
@media (max-width: 768px) {
  .menu-toggle { display: flex !important; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; background: none; border: none; padding: 10px; }
  .menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--brown); transition: 0.3s ease-in-out; }
  .menu-container { position: fixed !important; top: 78px; right: -100% !important; width: 100% !important; height: calc(100vh - 78px) !important; background: rgba(255, 248, 236, 0.98) !important; backdrop-filter: blur(18px); transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; z-index: 999 !important; overflow-y: auto; padding: 40px 0; }
  .menu-container.open { right: 0 !important; }
  .menu { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 30px !important; width: 100% !important; list-style: none; }
  .menu a, .menu li a { font-size: 1.3rem !important; padding: 12px 20px !important; width: 100%; text-align: center; display: block; }
  .menu a::after { bottom: -5px; }
  .menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .top-button { display: none !important; }
  .brand { font-size: 14px; }
  .brand-symbol { font-size: 1.2rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero h1 small { font-size: 1rem; }
  .hero-description { font-size: 0.95rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .social-icons-wrapper { gap: 14px; margin-top: 24px; padding-top: 20px; }
  .social-icon { width: 40px; height: 40px; }
  .social-icon i { font-size: 1rem; }
  .social-icons { gap: 10px; justify-content: center; flex-wrap: wrap; }
  .clay-tablet-premium { padding: 32px 22px 30px; margin-bottom: 40px; border-radius: 18px; }
  .tablet-header-premium { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 16px; margin-bottom: 24px; text-align: center; }
  .tablet-badge { align-self: center; font-size: 0.7rem; padding: 5px 16px; }
  .tablet-subtitle-premium { font-size: 1rem; margin-right: 0; text-align: center; }
  .cuneiform-icon { display: none; }
  .tablet-body-premium p { font-size: 1.12rem; line-height: 2; margin-bottom: 20px; }
  .tablet-body-premium p:first-of-type::first-letter { font-size: 3rem; margin: 2px 0 0 10px; float: right; }
  .tablet-body-premium blockquote { font-size: 1.2rem; padding: 16px 18px; margin: 28px auto 24px; max-width: 100%; border-right-width: 3px; border-left-width: 3px; }
  .tablet-body-premium blockquote::before, .tablet-body-premium blockquote::after { font-size: 2.5rem; }
  .tablet-body-premium blockquote::before { top: -4px; right: 8px; }
  .tablet-body-premium blockquote::after { bottom: -22px; left: 8px; }
  .tablet-footer-premium { margin-top: 28px; padding-top: 16px; flex-direction: column; gap: 8px; }
  .tablet-footer-premium::before, .tablet-footer-premium::after { display: none; }
  .tablet-seal { font-size: 0.75rem; letter-spacing: 2px; }
  .tablet-corner { width: 16px; height: 16px; border-width: 1.5px; }
  .tablet-corner.top-left, .tablet-corner.top-right { top: 12px; }
  .tablet-corner.bottom-left, .tablet-corner.bottom-right { bottom: 12px; }
  .tablet-corner.top-left, .tablet-corner.bottom-left { left: 12px; }
  .tablet-corner.top-right, .tablet-corner.bottom-right { right: 12px; }
}

@media (max-width: 400px) {
  .clay-tablet-premium { padding: 24px 16px 22px; margin-bottom: 30px; }
  .tablet-body-premium p { font-size: 1.05rem; line-height: 1.9; }
  .tablet-body-premium p:first-of-type::first-letter { font-size: 2.6rem; margin: 2px 0 0 8px; }
  .tablet-badge { font-size: 0.65rem; padding: 4px 12px; }
  .tablet-subtitle-premium { font-size: 0.9rem; }
}

@media (min-width: 769px) {
  .menu-toggle { display: none !important; }
}

/* ===== ميديا السوشال ميديا البديلة للمظلم والألواح الطينية ===== */
@media (prefers-color-scheme: dark) {
  .social-icon { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); color: #d9c5a8; }
  .social-label { color: #a8947d; }
  .social-icon.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
  .social-icon.instagram:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; color: #fff; }
  .social-icon.tiktok:hover { background: #fff; border-color: #fff; color: #000; }
  .clay-tablet-premium { background: linear-gradient(165deg, #2a1f17, #1f1610 45%, #1a120d 100%); border-color: rgba(184, 101, 47, 0.20); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.3), 0 30px 80px rgba(0, 0, 0, 0.2); }
  .tablet-body-premium p { color: #e8ddd0; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
  .tablet-body-premium p:first-of-type::first-letter { color: var(--gold); text-shadow: 0 2px 12px rgba(201, 148, 63, 0.3); }
}
/* ============================================================
   تنسيقات صفحة طلب الرواية والمعاينة الفاخرة
   ============================================================ */

.order-page {
    padding-bottom: 90px;
    background: linear-gradient(to bottom, #fff8ec 0%, #f4ead8 100%);
}

/* الشارة العلوية */
.order-page .page-intro .tag {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 16px;
    background: rgba(184, 101, 47, 0.1);
    color: var(--copper);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(184, 101, 47, 0.15);
}

/* قسم عارض الـ PDF */
.pdf-preview-section {
    padding: 60px 0;
}
.section-title-center {
    text-align: center;
    margin-bottom: 35px;
}
.section-title-center h2 {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--brown);
    margin-bottom: 10px;
}
.section-title-center p {
    color: var(--muted);
    font-size: 1.1rem;
}
.pdf-container {
    background: #fff;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(58, 36, 22, 0.06);
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}

/* كروت خيارات الاقتناء (Grid) */
.purchase-options-section {
    padding: 60px 0;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.option-card {
    position: relative;
    background: #fff8ec;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(58, 36, 22, 0.03);
}
.option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(58, 36, 22, 0.08);
    border-color: var(--gold);
}

/* الكرت المميز (النسخة الورقية) */
.option-card.featured {
    background: linear-gradient(165deg, #fffcf7 0%, #fdf6eb 100%);
    border: 2px solid var(--gold);
}
.option-card .badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--brown);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(201, 148, 63, 0.2);
}
.option-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.option-card h3 {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--brown);
    margin-bottom: 15px;
}
.option-desc {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 25px;
    min-height: 70px;
}
.option-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--copper);
    margin-bottom: 25px;
}

/* أزرار الكروت */
.btn-order {
    display: block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid var(--border);
    color: var(--brown);
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}
.btn-order:hover {
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
}
.btn-order.primary {
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
}
.btn-order.primary:hover {
    background: var(--gold);
    color: var(--brown);
    border-color: var(--gold);
}

/* قسم ونموذج استمارة الحجز */
.order-form-section {
    padding: 60px 0;
}
.form-wrapper {
    background: #fff8ec;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 50px 45px;
    box-shadow: 0 30px 70px rgba(58, 36, 22, 0.05);
    position: relative;
}
.form-wrapper h3 {
    font-family: 'Amiri', serif;
    font-size: 1.9rem;
    color: var(--brown);
    margin-bottom: 10px;
}
.form-wrapper p {
    color: var(--muted);
    margin-bottom: 35px;
    font-size: 1rem;
}

/* تنسيق حقول الإدخال */
.sumer-custom-form .form-group {
    margin-bottom: 22px;
}
.sumer-custom-form label {
    display: block;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.sumer-custom-form input[type="text"],
.sumer-custom-form input[type="email"],
.sumer-custom-form input[type="tel"],
.sumer-custom-form textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(58, 36, 22, 0.15);
    background: #fff;
    font-family: var(--font);
    color: var(--ink);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.sumer-custom-form input:focus,
.sumer-custom-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 148, 63, 0.1);
}

/* حقل نوع النسخة المقفل للقراءة */
.sumer-custom-form input#selected_format[readonly] {
    background: rgba(31, 77, 93, 0.06) !important;
    border-color: rgba(31, 77, 93, 0.15) !important;
    color: var(--blue) !important;
    cursor: not-allowed;
}

/* زر إرسال الاستمارة */
.btn-submit {
    width: 100%;
    min-height: 54px;
    background: var(--brown);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(58, 36, 22, 0.15);
}
.btn-submit:hover {
    background: var(--gold);
    color: var(--brown);
    box-shadow: 0 10px 30px rgba(201, 148, 63, 0.25);
    transform: translateY(-2px);
}

/* شاشات الموبايل المتجاوبة */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 35px 20px;
    }
    .options-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .option-card {
        padding: 35px 20px;
    }
    .pdf-container iframe {
        height: 450px;
    }
}
/* ============================================================
   إصلاح وتناسق الفوتر (Footer Fixes)
   ============================================================ */

/* التأكد من فصل الفوتر تماماً عن محتوى الصفحة ومنع التداخل */
footer, .site-footer {
    clear: both;
    background-color: var(--brown, #3a2416) !important; /* اللون البني الدافئ للموقع */
    color: #fdf6eb !important;
    padding: 60px 0 30px 0 !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(201, 148, 63, 0.2); /* خط ذهبي خفيف */
}

/* تنسيق النصوص والروابط داخل الفوتر لتبقى واضحة ومتناسقة */
footer a, .site-footer a {
    color: var(--gold, #c9943f) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover, .site-footer a:hover {
    color: #fff !important;
}

/* ضبط الهوامش الداخلية للـ Container الخاص بالفوتر */
footer .container, .site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* سطر حقوق النشر أسفل الفوتر */
.footer-credits, .site-info {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(253, 246, 235, 0.7);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    footer .container, .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}/* ============================================================
   تنسيقات ألواح المقتطفات المفتوحة والمطورة - v1.1 فادي البرغوثي
   ============================================================ */
.tablets-container { 
  padding: 40px 0 100px; 
  position: relative; 
}

/* اللوح الطيني الفاخر المطور */
.clay-tablet-premium {
  position: relative;
  background: linear-gradient(165deg, #fffcf7 0%, #f9f2e7 50%, #f3e5ce 100%);
  border: 1px solid rgba(184, 101, 47, 0.22);
  border-radius: 28px;
  padding: 60px 65px;
  margin-bottom: 75px;
  box-shadow: 
    0 15px 45px rgba(37, 23, 15, 0.04), 
    0 35px 90px rgba(37, 23, 15, 0.06), 
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 0 rgba(184, 101, 47, 0.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: default;
  z-index: 1;
}

.clay-tablet-premium:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 25px 60px rgba(37, 23, 15, 0.12), 
    0 50px 110px rgba(37, 23, 15, 0.08), 
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(184, 101, 47, 0.45);
}

/* العلامة المائية للغلاف خلف الألواح */
.tablet-watermark {
  position: absolute; 
  inset: 0;
  background-size: cover; 
  background-position: center 30%; 
  background-repeat: no-repeat;
  opacity: 0.05; 
  filter: sepia(0.5) saturate(0.4) contrast(1.1) brightness(0.95);
  pointer-events: none; 
  z-index: -1; 
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: inherit;
}
.clay-tablet-premium:hover .tablet-watermark { 
  opacity: 0.11; 
  transform: scale(1.04) rotate(-1deg); 
  filter: sepia(0.3) saturate(0.6) contrast(1.1) brightness(1); 
}

/* تأثير الإشعاع الضوئي الخلفي الدافئ */
.clay-tablet-premium::before {
  content: ''; 
  position: absolute; 
  top: -50%; 
  right: -30%; 
  width: 80%; 
  height: 150%;
  background: radial-gradient(ellipse, rgba(201, 148, 63, 0.08), transparent 70%);
  pointer-events: none; 
  z-index: -1; 
  border-radius: 50%; 
  transition: all 1s ease;
}
.clay-tablet-premium:hover::before { 
  transform: scale(1.2); 
  opacity: 0.9; 
}

/* زوايا اللوح المعتقة الذهبية النحاسية */
.tablet-corner { 
  position: absolute; 
  width: 28px; 
  height: 28px; 
  border: 2px solid rgba(184, 101, 47, 0.3); 
  opacity: 0.4; 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
  z-index: 3; 
  pointer-events: none; 
}
.clay-tablet-premium:hover .tablet-corner { 
  opacity: 1; 
  border-color: var(--gold); 
  width: 32px; 
  height: 32px; 
}
.tablet-corner.top-left { top: 22px; left: 22px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.tablet-corner.top-right { top: 22px; right: 22px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.tablet-corner.bottom-left { bottom: 22px; left: 22px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.tablet-corner.bottom-right { bottom: 22px; right: 22px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

/* ترويسة الألواح */
.tablet-header-premium { 
  position: relative; 
  z-index: 2; 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 16px 28px; 
  margin-bottom: 35px; 
  padding-bottom: 24px; 
  border-bottom: 1px dashed rgba(58, 36, 22, 0.12); 
}

/* شارة اللوح */
.tablet-badge { 
  font-family: var(--font); 
  font-size: 0.8rem; 
  font-weight: 700; 
  color: #fff; 
  background: linear-gradient(135deg, var(--brown), var(--ink)); 
  padding: 6px 22px; 
  border-radius: 30px; 
  letter-spacing: 0.5px; 
  box-shadow: 0 4px 15px rgba(58, 36, 22, 0.18); 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
}
.tablet-badge::before { 
  content: '◆'; 
  font-size: 0.6rem; 
  color: var(--gold); 
}

.cuneiform-icon { 
  color: var(--gold); 
  font-size: 1.5rem; 
  opacity: 0.7; 
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  line-height: 1; 
}
.clay-tablet-premium:hover .cuneiform-icon { 
  opacity: 1; 
  transform: rotate(-12deg) scale(1.2); 
}
.tablet-subtitle-premium { 
  font-family: 'Amiri', serif; 
  font-size: 1.3rem; 
  font-weight: 400; 
  color: var(--copper); 
  font-style: italic; 
  margin-right: auto; 
}

/* جسم النص للوح */
.tablet-body-premium { 
  position: relative; 
  z-index: 2; 
}
.tablet-body-premium p { 
  font-family: 'Amiri', serif; 
  font-size: 1.45rem; 
  line-height: 2.3; 
  color: var(--ink); 
  text-align: justify; 
  margin-bottom: 30px; 
}
.tablet-body-premium p:last-child { margin-bottom: 0; }

/* الحرف الاستهلالي السومري المطور ذو الحسابات الدقيقة */
.tablet-body-premium p:first-of-type::first-letter { 
  font-size: 4.8rem; 
  float: right; 
  margin: 0px 0px 5px 18px; 
  color: var(--gold); 
  font-weight: 700; 
  line-height: 0.9; 
  font-family: 'Amiri', serif; 
  text-shadow: 0 3px 15px rgba(201, 148, 63, 0.22); 
}

/* تصميم الاقتباسات الخاصة والداخلية للألواح */
.tablet-body-premium blockquote { 
  font-family: 'Amiri', serif; 
  font-size: 1.6rem; 
  color: var(--copper); 
  text-align: center; 
  margin: 45px auto; 
  max-width: 85%; 
  line-height: 2.1; 
  position: relative; 
  padding: 25px 35px; 
  background: linear-gradient(135deg, rgba(201, 148, 63, 0.05), rgba(184, 101, 47, 0.03)); 
  border-radius: 20px; 
  border-right: 4px solid rgba(201, 148, 63, 0.3); 
  border-left: 4px solid rgba(201, 148, 63, 0.1); 
}
.tablet-body-premium blockquote::before { content: '"'; font-size: 4rem; color: var(--gold); opacity: 0.25; position: absolute; top: -10px; right: 15px; font-family: 'Amiri', serif; }
.tablet-body-premium blockquote::after { content: '"'; font-size: 4rem; color: var(--gold); opacity: 0.25; position: absolute; bottom: -35px; left: 15px; font-family: 'Amiri', serif; }

/* تذييل اللوح والختم الأسطواني الأثري */
.tablet-footer-premium { 
  position: relative; 
  z-index: 2; 
  margin-top: 45px; 
  padding-top: 25px; 
  border-top: 1px dashed rgba(58, 36, 22, 0.12); 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 20px; 
}
.tablet-footer-premium::before { content: ''; flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); opacity: 0.4; }
.tablet-footer-premium::after { content: ''; flex: 1; max-width: 80px; height: 1px; background: linear-gradient(270deg, transparent, var(--gold)); opacity: 0.4; }
.tablet-seal { 
  font-family: 'Amiri', serif; 
  font-size: 0.95rem; 
  color: var(--muted); 
  opacity: 0.6; 
  letter-spacing: 4px; 
  white-space: nowrap; 
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
}
.clay-tablet-premium:hover .tablet-seal { 
  opacity: 0.95; 
  color: var(--copper); 
  letter-spacing: 6px; 
}

/* حالة خلو الصفحة من الألواح الطينية */
.no-tablets-message { 
  padding: 80px 40px; 
  text-align: center; 
  color: var(--muted); 
  font-size: 1.25rem; 
  background: var(--paper); 
  border-radius: 24px; 
  border: 2px dashed rgba(184, 101, 47, 0.18); 
}
.no-tablets-message::before { 
  content: '🏺'; 
  display: block; 
  font-size: 3.8rem; 
  margin-bottom: 22px; 
  opacity: 0.65; 
}

/* التلاشي والتأثير الحركي المطور الخالي من المشاكل */
.clay-tablet-premium.fade-in { 
  opacity: 0; 
  transform: translateY(25px); 
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
  will-change: transform, opacity;
}
.clay-tablet-premium.fade-in.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* تنسيقات الروابط والصور والقوائم داخل لوح المقتطفات */
.tablet-body-premium a { 
  color: var(--copper); 
  border-bottom: 1px solid rgba(184, 101, 47, 0.25); 
  transition: all 0.3s ease; 
  font-weight: 600; 
}
.tablet-body-premium a:hover { 
  color: var(--gold); 
  border-bottom-color: var(--gold); 
}
.tablet-body-premium img { 
  border-radius: 16px; 
  margin: 30px auto; 
  box-shadow: 0 12px 35px rgba(58, 36, 22, 0.08); 
  border: 1px solid rgba(201, 148, 63, 0.12); 
}
.tablet-body-premium ul, .tablet-body-premium ol { 
  padding-right: 32px; 
  margin: 25px 0; 
}
.tablet-body-premium li { 
  margin-bottom: 12px; 
  line-height: 2; 
  font-size: 1.15rem; 
}
.tablet-body-premium ul li::marker { 
  color: var(--gold); 
}

/* ============================================================
   تكييف الألواح مع شاشات التابلت والأجهزة المتوسطة
   ============================================================ */
@media (max-width: 992px) {
  .clay-tablet-premium { 
    padding: 50px 45px; 
    margin-bottom: 55px; 
  }
  .tablet-body-premium p { 
    font-size: 1.35rem; 
    line-height: 2.2; 
  }
  .tablet-body-premium p:first-of-type::first-letter { 
    font-size: 4.2rem; 
    margin: 0px 0px 3px 14px; 
  }
  .tablet-subtitle-premium { 
    font-size: 1.15rem; 
  }
}

/* ============================================================
   التجاوب الذكي والحسابات المتقنة لشاشات الهواتف المحمولة
   ============================================================ */
@media (max-width: 768px) {
  .clay-tablet-premium { 
    padding: 38px 24px; 
    margin-bottom: 45px; 
    border-radius: 22px; 
  }
  .tablet-header-premium { 
    flex-direction: column; 
    align-items: center; 
    gap: 14px; 
    padding-bottom: 20px; 
    margin-bottom: 28px; 
  }
  .tablet-badge { 
    align-self: center; 
    font-size: 0.75rem; 
    padding: 5px 18px; 
  }
  
  /* الحفاظ على الأيقونة المسمارية للهوية البصرية بدلاً من إخفائها */
  .cuneiform-icon { 
    font-size: 1.3rem;
    order: -1; /* جعلها في الأعلى كرمز مهد للعنوان */
  }
  
  .tablet-subtitle-premium { 
    font-size: 1.05rem; 
    margin-right: 0; 
    text-align: center; 
  }
  .tablet-body-premium p { 
    font-size: 1.2rem; 
    line-height: 2.1; 
    margin-bottom: 24px; 
  }
  
  /* معالجة انهيار الحرف الاستهلالي تماماً على الجوال */
  .tablet-body-premium p:first-of-type::first-letter { 
    font-size: 3.5rem; 
    margin: 0px 0px 2px 12px; 
    line-height: 0.95;
  }
  
  .tablet-body-premium blockquote { 
    font-size: 1.3rem; 
    padding: 20px; 
    margin: 32px auto 28px; 
    max-width: 100%; 
    border-right-width: 3px; 
    border-left-width: 3px; 
  }
  .tablet-body-premium blockquote::before, 
  .tablet-body-premium blockquote::after { 
    font-size: 2.8rem; 
  }
  .tablet-body-premium blockquote::before { top: -6px; right: 10px; }
  .tablet-body-premium blockquote::after { bottom: -28px; left: 10px; }
  
  .tablet-footer-premium { 
    margin-top: 32px; 
    padding-top: 20px; 
    flex-direction: column; 
    gap: 10px; 
  }
  .tablet-footer-premium::before, 
  .tablet-footer-premium::after { 
    display: block; 
    max-width: 50px; 
  }
  .tablet-seal { 
    font-size: 0.8rem; 
    letter-spacing: 3px; 
  }
  
  /* توازن الزوايا المعتقة على الهواتف دون تغطية النصوص */
  .tablet-corner { 
    width: 20px; 
    height: 20px; 
    border-width: 1.5px; 
  }
  .tablet-corner.top-left { top: 14px; left: 14px; }
  .tablet-corner.top-right { top: 14px; right: 14px; }
  .tablet-corner.bottom-left { bottom: 14px; left: 14px; }
  .tablet-corner.bottom-right { bottom: 14px; right: 14px; }
}

@media (max-width: 400px) {
  .clay-tablet-premium { 
    padding: 30px 18px; 
    margin-bottom: 35px; 
    border-radius: 16px;
  }
  .tablet-body-premium p { 
    font-size: 1.12rem; 
    line-height: 1.95; 
  }
  .tablet-body-premium p:first-of-type::first-letter { 
    font-size: 3rem; 
    margin: 0px 0px 2px 10px; 
  }
  .tablet-badge { 
    font-size: 0.7rem; 
    padding: 4px 14px; 
  }
  .tablet-subtitle-premium { 
    font-size: 0.95rem; 
  }
  .tablet-corner {
    width: 14px;
    height: 14px;
  }
  .tablet-corner.top-left { top: 10px; left: 10px; }
  .tablet-corner.top-right { top: 10px; right: 10px; }
  .tablet-corner.bottom-left { bottom: 10px; left: 10px; }
  .tablet-corner.bottom-right { bottom: 10px; right: 10px; }
}

/* ============================================================
   مواءمة الوضع الداكن (Dark Mode) الفاخر للألواح الطينية
   ============================================================ */
@media (prefers-color-scheme: dark) {
  .clay-tablet-premium { 
    background: linear-gradient(165deg, #2b1a10 0%, #1e110a 50%, #160b06 100%); 
    border-color: rgba(184, 101, 47, 0.35); 
    box-shadow: 
      0 15px 45px rgba(0, 0, 0, 0.5), 
      0 35px 90px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      inset 0 -3px 0 rgba(0, 0, 0, 0.4);
  }
  
  .clay-tablet-premium:hover {
    border-color: rgba(201, 148, 63, 0.5);
    box-shadow: 
      0 20px 55px rgba(0, 0, 0, 0.6), 
      0 45px 100px rgba(201, 148, 63, 0.08);
  }
  
  .tablet-header-premium {
    border-bottom-color: rgba(255, 248, 236, 0.08);
  }
  
  /* الحفاظ على ألوان نصوص حية وقابلة للقراءة الفائقة في العتمة */
  .tablet-body-premium p { 
    color: #f7eedf; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); 
  }
  
  .tablet-body-premium p:first-of-type::first-letter { 
    color: var(--gold); 
    text-shadow: 0 3px 20px rgba(201, 148, 63, 0.45); 
  }
  
  .tablet-subtitle-premium { 
    color: var(--gold); 
  }
  
  .tablet-body-premium blockquote { 
    background: linear-gradient(135deg, rgba(201, 148, 63, 0.08), rgba(0, 0, 0, 0.3)); 
    border-right-color: var(--gold); 
    color: #ecdcc3;
  }
  
  .tablet-footer-premium {
    border-top-color: rgba(255, 248, 236, 0.08);
  }
  
  .tablet-seal {
    color: #a8947d;
  }
  .clay-tablet-premium:hover .tablet-seal {
    color: var(--gold);
  }
  
  .tablet-corner {
    border-color: rgba(201, 148, 63, 0.3);
  }
}
/* ============================================================
   تنسيقات معزولة لصفحة الوسائط - لمنع أي تداخل أو انهيار بصري
   ============================================================ */

/* هيدر الصفحة */
main.media-page .page-intro {
  text-align: center !important;
  padding: 80px 0 40px !important;
  display: block !important;
}

main.media-page .page-intro h1 {
  font-family: 'Amiri', serif !important;
  font-size: clamp(2rem, 5vw, 3.2rem) !important; /* حجم مرن يتجاوب تلقائياً */
  color: var(--ink) !important;
  margin-bottom: 20px !important;
  line-height: 1.2 !important;
}

main.media-page .page-intro .intro-text {
  font-family: 'Amiri', serif !important;
  font-size: clamp(1.1rem, 3vw, 1.35rem) !important;
  line-height: 1.8 !important;
  color: var(--muted) !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

/* شبكة الفيديوهات والكرت */
main.media-page .videos-grid-section {
  padding: 40px 0 80px !important;
  display: block !important;
}

main.media-page .videos-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 30px !important;
  width: 100% !important;
}

/* بنية كرت الفيديو */
main.media-page .video-card {
  background: var(--paper) !important;
  border: 1px solid rgba(184, 101, 47, 0.15) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

main.media-page .video-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(58, 36, 22, 0.1) !important;
  border-color: var(--copper) !important;
}

/* مشغل الفيديو المحلي */
main.media-page .video-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  background: #000 !important;
  overflow: hidden !important;
}

main.media-page .video-wrapper video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* النصوص تحت الفيديو */
main.media-page .video-info {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

main.media-page .video-info h3 {
  font-family: 'Amiri', serif !important;
  font-size: 1.45rem !important;
  color: var(--ink) !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.4 !important;
}

main.media-page .video-excerpt-content p {
  font-family: 'Amiri', serif !important;
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  color: var(--muted) !important;
  margin-bottom: 20px !important;
}

/* أدوات المشاركة */
main.media-page .video-share-tools {
  margin-top: auto !important;
  padding-top: 15px !important;
  border-top: 1px solid rgba(184, 101, 47, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

main.media-page .share-label {
  font-family: var(--font) !important;
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  margin-left: auto !important;
}

main.media-page .share-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: var(--bg) !important;
  border: 1px solid rgba(184, 101, 47, 0.15) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

main.media-page .share-btn:hover {
  border-color: var(--copper) !important;
  transform: scale(1.1) !important;
}

/* توافق الهواتف الشامل والمطلق */
@media (max-width: 768px) {
  main.media-page .videos-grid {
    grid-template-columns: 1fr !important; /* عمود واحد مريح جداً للهواتف */
    gap: 25px !important;
    padding: 0 15px !important;
  }
  
  main.media-page .video-card {
    max-width: 450px !important;
    margin: 0 auto !important;
  }
}