/* themes/luminous/assets/css/pages/project.css */
.project-single {
  padding-bottom: 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
/* --- Header Section Styles --- */
.project-header-section {
  padding: 100px 0 20px;
  text-align: center;
}
.project-meta-top {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}
.category-badge,
.location-badge {
  background: rgba(255, 87, 34, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.location-badge {
  background: rgba(15, 23, 42, 0.05);
  color: var(--slate-700);
}
.project-main-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  /* ✏️ اصلاح: استفاده از متغیر داینامیک به جای رنگ ثابت */
  color: var(--heading-color, #0f172a);
  line-height: 1.4;
  margin: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.project-info-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 500;
}
.info-item i {
  color: var(--primary);
}
/* --- Main Content Wrapper --- */
.project-content-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
}
.project-body {
  font-size: 17px;
  line-height: 2;
  color: var(--text-color); /* ✏️ استفاده از متغیر متن */
  text-align: justify;
}
/* استایل دهی به محتوای داخل ادیتور */
.project-body h1,
.project-body h2,
.project-body h3 {
  /* ✏️ اصلاح: استفاده از متغیر داینامیک */
  color: var(--heading-color, #0f172a);
  font-weight: 800;
  margin: 35px 0 20px;
  line-height: 1.4;
}
.project-body h2 {
  font-size: 24px;
}
.project-body h3 {
  font-size: 20px;
}
.project-body p {
  margin-bottom: 20px;
}
.project-body ul {
  margin: 20px 0;
  padding-right: 25px;
}
.project-body li {
  margin-bottom: 10px;
  position: relative;
}
.project-body a {
  color: var(--primary);
  font-weight: 600;
}
/* --- Gallery Section --- */
.project-gallery-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--slate-100);
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  /* ✏️ اصلاح: استفاده از متغیر داینامیک */
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px !important;
  justify-content: center;
}
.section-title i {
  color: var(--primary);
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
}
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
/* --- Footer Action Bar --- */
.project-footer {
  margin-top: 60px;
  padding: 30px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .project-footer {
    flex-direction: column;
    gap: 15px;
  }
  .project-footer .btn {
    width: 100%;
  }
}
/* ========================
Project Footer Action Bar (New Styles)
======================== */
.project-footer {
  margin: 60px;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.project-footer:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
/* استایل دکمه بازگشت */
.project-footer .btn-outline {
  border-color: var(--slate-300);
  color: var(--slate-600);
  background: transparent;
  padding: 12px 24px;
  font-weight: 600;
}
.project-footer .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 87, 34, 0.05);
}
/* استایل دکمه درخواست مشاوره */
.project-footer .btn-primary {
  background: linear-gradient(
    135deg,
    var(--btn-primary-bg),
    #e64a19
  ); /* ✏️ استفاده از متغیر */
  color: var(--btn-primary-text); /* ✏️ استفاده از متغیر */
  padding: 12px 28px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}
.project-footer .btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}
/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .project-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
    width: 100%;
    margin: 0;
  }
  .project-footer .btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }
}
/* ==========================
Gallery Single Page Styles
========================== */
.full-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 30px;
}
.gallery-item-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.gallery-item-box:hover {
  transform: translateY(-5px);
  z-index: 2;
}
.gallery-item-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item-box:hover img {
  transform: scale(1.1);
}
/* لایت باکس (نمایش بزرگ تصویر) */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.3s;
}
.lightbox-modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  color: white;
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.persian-numbers {
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
  font-feature-settings: "ss01";
  direction: ltr;
}

/* در فایل themes/luminous/assets/css/pages/project.css اضافه شود */

.album-cover-img {
  width: 100%;
  max-height: 500px; /* محدودیت ارتفاع برای جلوگیری از بزرگ شدن بیش از حد */
  object-fit: contain; /* تصویر کامل نمایش داده می‌شود بدون برش */
  background-color: #f8fafc; /* پس‌زمینه ملایم برای تصاویری که تمام عرض را پر نمی‌کنند */
  display: block;
  margin: 0 auto;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .album-cover-img {
    max-height: 300px;
  }
}
