/* RiauVibe Portal Styling */

/* Ticker Animations */
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 45s linear infinite;
}
.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Line Clamping */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal and Drawer Animations */
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalContentPopIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes drawerSlideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes drawerSlideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop-anim {
  animation: modalBackdropFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content-anim {
  animation: modalContentPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.drawer-right-anim {
  animation: drawerSlideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.drawer-left-anim {
  animation: drawerSlideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-anim {
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar for Modal and Nav */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Image zoom effect on card hover */
.news-card-img-wrapper {
  overflow: hidden;
}
.news-card-img-wrapper img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover .news-card-img-wrapper img {
  transform: scale(1.05);
}

/* Card hover lift effect */
.news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.news-card:hover {
  transform: translateY(-2px);
}

/* Typography styles inside news detail modal */
.article-prose p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.article-prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: inherit;
}
.article-prose blockquote {
  border-left: 4px solid #dc2626;
  padding-left: 1rem;
  font-style: italic;
  margin: 1.5rem 0;
}
.article-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-prose li {
  margin-bottom: 0.5rem;
}

/* Dynamic Reading Font Size Adjustments */
.reading-size-sm .article-prose {
  font-size: 0.95rem;
  line-height: 1.65;
}
.reading-size-base .article-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.reading-size-lg .article-prose {
  font-size: 1.2rem;
  line-height: 1.85;
}
