/* بخش خوش‌آمدگویی - دسکتاپ */
.guest-welcome {
  font-family: 'Samim', sans-serif;           /* فونت فارسی سامیم برای خوانایی بهتر */
  position: absolute;                         /* موقعیت‌دهی مطلق نسبت به والد */
  top: -4%;                                   /* فاصله از بالای والد به اندازه ۴٪ منفی */
  left: 50%;                                  /* قرارگیری عنصر در وسط افقی والد */
  transform: translateX(-50%);                /* اصلاح موقعیت برای مرکز دقیق */
  width: 90%;                                 /* عرض عنصر ۹۰٪ از والد */
  max-width: 600px;                           /* حداکثر عرض ۶۰۰ پیکسل برای محدود کردن در نمایشگرهای بزرگ */
  margin-top: 1px;                            /* فاصله از بالا به اندازه ۱ پیکسل */
  margin-left: auto;                          /* تنظیم فاصله چپ برای مرکز شدن */
  margin-right: auto;                         /* تنظیم فاصله راست برای مرکز شدن */
  padding: 1rem 1.5rem;                        /* فاصله داخلی بالا/پایین ۱rem، چپ/راست ۱.۵rem */
  font-size: 1rem;                            /* اندازه فونت پایه */
  text-align: center;                         /* تراز متن وسط‌چین */
  color: #fff;                                /* رنگ متن سفید */
  background-color: rgba(0, 0, 0, 0.5);        /* پس‌زمینه مشکی نیمه‌شفاف */
  border-radius: 8px;                         /* گوشه‌های گرد با شعاع ۸ پیکسل */
  backdrop-filter: blur(4px);                 /* افکت محو پس‌زمینه پشت عنصر */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);     /* سایه اطراف عنصر برای برجسته‌سازی */
  z-index: 1000;                              /* اولویت نمایش بالا نسبت به سایر عناصر */
  opacity: 0;                                 /* عنصر در ابتدا نامرئی است (برای انیمیشن یا کنترل نمایشی) */
  transition: color 0.4s ease-in-out;         /* انیمیشن تغییر رنگ هنگام هاور */
}

.guest-welcome:hover {
  color: #ffd700;                             /* تغییر رنگ متن به زرد طلایی هنگام هاور */
}

/* پایه */
/* بخش خوش‌آمدگویی */
.guest-welcome {
  font-family: 'Samim', sans-serif;           /* تعیین فونت متن */
  position: absolute;                         /* موقعیت‌دهی مطلق نسبت به والد */
  top: 18%;                                   /* فاصله از بالای والد به اندازه ۴٪  */
  left: 50%;                                  /* قرارگیری عنصر در وسط افقی والد */
  transform: translateX(-50%);                /* اصلاح موقعیت برای مرکز دقیق */
  width: 90%;                                 /* عرض عنصر ۹۰٪ از والد */
  max-width: 600px;                           /* حداکثر عرض ۶۰۰ پیکسل */
  margin-top: 1px;                            /* فاصله از بالا به اندازه ۱ پیکسل */
  margin-left: auto;                          /* تنظیم فاصله چپ برای مرکز شدن */
  margin-right: auto;                         /* تنظیم فاصله راست برای مرکز شدن */
  padding: 1rem 1.5rem;                        /* فاصله داخلی بالا/پایین ۱rem، چپ/راست ۱.۵rem */
  font-size: 1rem;                            /* اندازه فونت ۱rem */
  text-align: center;                         /* تراز متن وسط‌چین */
  color: #fff;                                /* رنگ متن سفید */
  background-color: rgba(0, 0, 0, 0.5);        /* رنگ پس‌زمینه مشکی نیمه‌شفاف */
  border-radius: 8px;                         /* گوشه‌های گرد با شعاع ۸ پیکسل */
  backdrop-filter: blur(4px);                 /* افکت محو پس‌زمینه پشت عنصر */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);     /* سایه اطراف عنصر با وضوح کم */
  z-index: 1000;                              /* اولویت نمایش بالا نسبت به سایر عناصر */
  opacity: 0;                                 /* عنصر در ابتدا نامرئی است */
  transition: color 0.4s ease-in-out;         /* انیمیشن تغییر رنگ با زمان ۰.۴ ثانیه */
}

.guest-welcome:hover {
  color: #ffd700;                             /* تغییر رنگ متن به زرد طلایی هنگام هاور */
}

.post-content {
  font-family: 'IRANSans', sans-serif;
  font-size: 15px;
  color: #2c3e50;
  line-height: 1.8;
  margin-bottom: 30px;
}

.post-content h2, .post-content h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.post-content ul {
  padding-right: 20px;
  margin-bottom: 20px;
}

.post-content ul li {
  margin-bottom: 8px;
  list-style-type: square;
}

body {
  background-color: #ffeeee;
  font-family: 'IRANSans', 'Vazir', sans-serif !important;
  direction: rtl;
  text-align: right;
}

.container {
  display: flex;
  flex-direction: column;
}

#mainHeader {
  transition: top 0.3s ease;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.header-hidden {
  top: -100px;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  vertical-align: middle;
}
.btn-outline-primary {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
}






/* لینک‌ها */
a {
  text-decoration: none;
  transition: all 0.5s ease-in-out;
}
a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* تیترها */
h1, h2, h3, h4, h5, h6 {
  color: #171a1d;
}
h1 {
  color: var(--danger-color);
}

/* دکمه‌ها */
.btn {
  font-weight: bold;
}

/* رنگ‌ها */
.color-a { color: var(--primary-color); }
.color-d { color: var(--light-gray); }
.color-text-a { color: var(--text-gray); }

/* نمایش‌ها */
.display-5 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.1;
}
.display-6 {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.1;
}

/* جدول */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

/* انیمیشن */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@font-face {
  font-family: 'Samim';
  src: url('/assets/fonts/Samim.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
/* بخش خوش‌آمدگویی */


/* ناوبری مهمان */
.guest-navbar {
  background-color: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.guest-link {
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.guest-link:hover {
  color: #00c3ff;
}

/* ناوبری اصلی */
.navbar {
  background-color: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* موقعیت‌ها */
#roleSidebar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 200px;
  background-color: #212529;
  border-radius: 10px;
  z-index: 100;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  height: auto;
}
.bg-opacity-75 {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}
.shadow {
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* لینک‌های معرفی */
.intro-content ul li a {
  transition: all 0.3s ease;
}
.intro-content ul li a:hover {
  color: #c0392b;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .position-absolute {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
  }
  
    .guest-welcome {
    margin-top: 10px;
    width: 75%;
    font-size: 1.0rem;
    padding: 12px 16px;
    max-width: 90vw;
  }
  .guest-welcome:hover {
  color: #ffd700; /* زرد طلایی */
}
}

