body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Spinner Style */
.dark .spinner {
    border: 2px solid #ffffff1f;
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}
.spinner {
    border: 2px solid #d7cbed;
    border-top: 2px solid oklch(0.283 0.141 291.089); /* حالت نرمال (روشن) */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
#globalLoader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    pointer-events: none;
}
.loader-spinner {
    border: 4px solid #ffffff33;
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
#globalLoader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/** Home App Header **/
.back-object-1 {
    width: 150px;
    height: 150px;
    background: oklch(76.5% 0.177 163.223);
    position: absolute;
    animation: crazyLoop 20s ease-in-out infinite;
    border-radius: 999px;
}
.back-object-2 {
    width: 150px;
    height: 150px;
    background: oklch(77.7% 0.152 181.912);
    position: absolute;
    animation: crazyLoop2 20s ease-in-out infinite;
    border-radius: 900px;
}
.back-object-3 {
    width: 150px;
    height: 150px;
    background: oklch(79.2% 0.209 151.711);
    position: absolute;
    animation: crazyLoop3 20s ease-in-out infinite;
    border-radius: 900px;
}
@keyframes crazyLoop {
    0% {
        top: 30%;
        left: 0;
        opacity: 1;
    }
    50% {
        top: 30%;
        left: 80%;
        opacity: 0.6;
    }
    100% {
        top: 30%;
        left: 0;
        opacity: 1;
    }
}
@keyframes crazyLoop2 {
    0% {
        top: 30%;
        right: 0;
    }
    50% {
        top: 30%;
        right: 100%;
    }
    100% {
        top: 30%;
        right: 0;
    }
}
@keyframes crazyLoop3 {
    0% {
        top: 0;
        right: 30%;
        opacity: 1;
    }
    50% {
        top: 50%;
        right: 30%;
        opacity: 0.6;
    }
    100% {
        top: 0%;
        right: 30%;
        opacity: 1;
    }
}
.banner-slider .owl-dots {
    position: relative;
    top: -36px;
    background: #ffffff;
    width: fit-content;
    border-radius: 15px;
    display: flex;
    margin: 0 auto;
    border: 1px solid oklch(0.922 0 0);
}
.dark .banner-slider .owl-dots {
    background: #7c00ff;
    border: 1px solid var(--color-neutral-700);
}
.banner-slider .owl-dots .owl-dot {
    padding: 0;
    width: 14px;
    height: 14px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.dark .banner-slider .owl-dots .owl-dot.active span {
    background: #ead5ff !important;
}
.dark .banner-slider .owl-dots .owl-dot span {
    background: #434343 !important;
}
.banner-slider .owl-dots .owl-dot.active span {
    background: #9d5ef4 !important;
}
.banner-slider .owl-dots .owl-dot span {
    width: 7px !important;
    height: 7px !important;
    margin: 0 !important;
}

.app-navbar ul > li a.active{
    font-size: 14px;
    font-weight: 700;
    color: #AD46FFFF;
}
.app-navbar ul > li a.active .svg-default{
    display: none;
}
.app-navbar ul > li a.active .svg-active{
    display: block;
    fill: #AD46FFFF;
}
.app-navbar ul > li a{
    font-size: 14px;
    font-weight: 450;
    color: var(--color-neutral-400);
}
.app-navbar ul > li a .svg-active{
    display: none;
}
.app-navbar ul > li a .svg-default{
    fill: var(--color-neutral-400);
}

/* Skeleton Loader Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ripple Effect - Material Design Style */
.ripple-trigger {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  cursor: pointer;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  animation: ripple-animation 0.4s;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.dark .ripple-effect {
  background-color: rgba(255, 255, 255, 0.15);
}

@keyframes ripple-animation {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* کلاس برای استثنا کردن المان‌ها از افکت ripple */
.ripple-ignore {
  overflow: initial;
}

/* استایل برای محتوای پست در مودال */
.post-content {
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  color: #303030;
}

.dark .post-content h2 {
  color: #e0e0e0;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content a {
  color: #7c00ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: #5900b3;
  text-decoration: underline;
}

.dark .post-content a {
  color: #bb86fc;
}

.dark .post-content a:hover {
  color: #d7aeff;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.post-content strong {
  font-weight: 700;
}

.post-content span[style*="color"] {
  display: inline-block;
}

/* استایل‌های گالری تصاویر */
.post-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0;
}

.post-gallery-item {
  width: calc(25% - 6px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.post-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}

.post-gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .post-gallery-item {
    width: calc(33.333% - 6px);
  }
}

@media (max-width: 480px) {
  .post-gallery-item {
    width: calc(50% - 4px);
  }
}

/* استایل‌های دسته‌بندی و برچسب‌ها */
.post-taxonomies {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.dark .post-taxonomies {
  border-top-color: #3a3a3a;
}

.taxonomy-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #333;
}

.dark .taxonomy-title {
  color: #e0e0e0;
}

.taxonomy-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.taxonomy-item {
  padding: 0.25rem 0.75rem;
  background-color: #f5f5f5;
  color: #555;
  border-radius: 9999px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.taxonomy-item:hover {
  background-color: #7c00ff;
  color: white;
}

.dark .taxonomy-item {
  background-color: #333333;
  color: #aaa;
}

.dark .taxonomy-item:hover {
  background-color: #9d5ef4;
  color: white;
}

/* استایل‌های مربوط به بخش نظرات */
.comment-input {
  /* حذف transition */
}

/* حذف افکت hover از فیلد نظرات */
.comment-input:hover {
  opacity: 1; /* حفظ opacity کامل */
}

.comment-input .flex {
  /* حذف transition */
}

/* حذف تغییر رنگ پس‌زمینه در حالت hover */
.comment-input:hover .flex {
  background-color: inherit; /* استفاده از رنگ اصلی */
}

/* حذف تغییر رنگ پس‌زمینه در حالت تیره */
.dark .comment-input:hover .flex {
  background-color: inherit; /* استفاده از رنگ اصلی در حالت تیره */
}
