@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap");

:root {
  --lartisto-primary: #d4af37;
  --lartisto-foreground: #fafafa;
  --lartisto-border: rgba(250, 250, 250, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: #0a0a0a !important;
  color: var(--lartisto-foreground);
  font-family: "Amiri", serif;
  direction: rtl;
  overflow-x: hidden;
}

body * {
  background: transparent !important;
}

#wrapper,
#main,
.fusion-footer,
.fusion-header,
.fusion-secondary-header,
.fusion-header-wrapper,
.fusion-top-header {
  display: none !important;
}

.lartisto-immersive-article {
  background: #0a0a0a;
  min-height: 100vh;
}

/* شريط التقدم */
.lartisto-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--lartisto-primary);
  z-index: 1000;
  transition: width 0.1s;
}

/* الهيدر الثابت */
.lartisto-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  transform: translateY(-100%);
  transition: transform 0.3s;
  border-bottom: 1px solid var(--lartisto-border);
}

.lartisto-header.visible {
  transform: translateY(0);
}

.lartisto-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lartisto-logo {
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lartisto-primary);
  text-decoration: none;
}

.lartisto-nav-actions {
  display: flex;
  gap: 1rem;
}

.lartisto-nav-btn {
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.lartisto-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* البطل (Hero) */
.lartisto-hero {
  position: relative;
  height: 70vh;
  min-height: 600px;
  overflow: hidden;
}

.lartisto-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.5);
}

.lartisto-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 10, 10, 0.3) 40%,
    rgba(10, 10, 10, 0.8) 70%,
    #0a0a0a 100%
  );
}

.lartisto-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 3rem;
}

.lartisto-hero-content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lartisto-category {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--lartisto-primary);
  color: #0a0a0a;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lartisto-title {
  font-family: "Amiri", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.lartisto-excerpt {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease-out 0.6s both;
}

.lartisto-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.7);
  animation: fadeUp 0.6s ease-out 0.8s both;
}

.lartisto-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lartisto-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.lartisto-author-name {
  color: white;
  font-weight: 600;
}

.lartisto-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* محتوى المقال - تطابق تام مع صفحة الاختبار */
.lartisto-article {
  background: #0a0a0a;
}

.lartisto-article-inner {
  padding: 4rem 6vw !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.lartisto-content {
  font-size: 1.125rem !important;
  line-height: 2 !important;
  color: #d1d5db !important;
  text-align: right !important;
  max-width: none !important;
  width: 100% !important;
}

.lartisto-content p {
  margin-bottom: 2rem !important;
  text-align: right !important;
  line-height: 2 !important;
}

/* الفقرة الأولى مع الحرف الاستهلالي */
.lartisto-content p:first-of-type {
  font-size: 1.5rem !important;
  line-height: 2.2 !important;
  border-bottom: 2px solid #d4af37 !important;
  padding-bottom: 2rem !important;
  margin-bottom: 3rem !important;
}

.lartisto-content p:first-of-type::first-letter {
  float: right !important;
  font-family: "Amiri", serif !important;
  font-size: 5rem !important;
  line-height: 0.8 !important;
  margin-left: 1rem !important;
  margin-bottom: 0.5rem !important;
  color: #d4af37 !important;
  font-weight: bold !important;
}

.lartisto-content h2 {
  font-family: "Amiri", serif !important;
  font-size: 2rem !important;
  font-weight: bold !important;
  color: #fff !important;
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
  text-align: right !important;
}

.lartisto-content blockquote {
  border-right: 4px solid #d4af37 !important;
  border-left: none !important;
  padding-right: 2rem !important;
  padding-left: 0 !important;
  margin: 3rem 0 !important;
  font-style: italic !important;
  font-size: 1.5rem !important;
  color: #d4af37 !important;
  font-family: "Amiri", serif !important;
  background: transparent !important;
}

.lartisto-content blockquote footer {
  font-size: 1rem !important;
  color: #888 !important;
  margin-top: 1rem !important;
  font-style: normal !important;
}

.lartisto-content img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem 0;
}

.lartisto-content a {
  color: var(--lartisto-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--lartisto-primary);
  transition: opacity 0.3s;
}

.lartisto-content a:hover {
  opacity: 0.8;
}

/* قسم الوسوم */
.lartisto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 6vw 0 !important;
  border-top: 1px solid #333 !important;
  justify-content: flex-start !important;
}

.lartisto-tags a {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #d1d5db;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
}

.lartisto-tags a:hover {
  background: var(--lartisto-primary) !important;
  color: #0a0a0a;
}

/* قسم الكاتب */
.lartisto-author-box {
  border-top: 1px solid #374151 !important;
  padding: 3rem 6vw !important;
  background: transparent !important;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0 !important;
}

.lartisto-author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lartisto-author-box-info {
  text-align: right;
}

.lartisto-author-box-info h3 {
  font-family: "Amiri", serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  margin: 0 0 0.5rem;
}

.lartisto-author-box-info p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* زر العودة للأعلى */
.lartisto-back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--lartisto-primary);
  color: #0a0a0a;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 998;
  font-size: 1.5rem;
}

.lartisto-back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.lartisto-back-to-top:hover {
  transform: translateY(-5px);
}

/* المقالات ذات الصلة */
.lartisto-related {
  background: #0a0a0a;
  padding: 5rem 3rem;
}

.lartisto-related-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.lartisto-related h2 {
  font-family: "Amiri", serif;
  font-size: 2rem;
  color: var(--lartisto-foreground);
  margin-bottom: 3rem;
  text-align: center;
}

.lartisto-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.lartisto-related-card {
  background: #111 !important;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s;
}

.lartisto-related-card:hover {
  transform: translateY(-5px);
}

.lartisto-related-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.lartisto-related-card-content {
  padding: 1.5rem;
}

.lartisto-related-card-category {
  color: var(--lartisto-primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.lartisto-related-card-title {
  font-family: "Amiri", serif;
  font-size: 1.25rem;
  color: var(--lartisto-foreground);
  margin: 0;
}

/* الفوتر */
.lartisto-footer {
  background: #000;
  padding: 3rem;
  text-align: center;
  color: rgba(250, 250, 250, 0.5);
  border-top: 1px solid var(--lartisto-border);
}
