/* ===== RTL Support ===== */
body[dir="rtl"] .quick-answer {
  border-left: none;
  border-right: 4px solid #2563eb;
  border-radius: 0 0.5rem 0.5rem 0;
}
body[dir="rtl"] .key-points li {
  text-align: right;
}
body[dir="rtl"] .ml-auto { margin-left: 0; margin-right: auto; }
body[dir="rtl"] .mr-auto { margin-right: 0; margin-left: auto; }

/* ===== Quick Answer ===== */
.quick-answer {
  border-left: 4px solid #2563eb;
  background-color: #eff6ff;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* ===== Key Points ===== */
.key-points {
  list-style: none;
  padding-left: 0;
}

/* ===== Tested Badge ===== */
.tested-badge {
  background-color: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

/* ===== Last Updated ===== */
.last-updated {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ===== Card Hover Animation ===== */
.hover\:shadow-lg {
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  cursor: pointer;
}
.faq-answer {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  overflow: hidden;
}
.faq-answer:not(.hidden) {
  max-height: 500px;
  opacity: 1;
}
.faq-answer.hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.faq-icon.rotated {
  transform: rotate(180deg);
}

/* ===== Copy Button ===== */
.copy-btn {
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.copy-btn:active {
  transform: scale(0.96);
}
.copy-btn.copied {
  background-color: #059669 !important;
  color: white !important;
}

/* ===== Hero Gradient ===== */
.bg-gradient-to-r.from-blue-600.to-blue-800 {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}
.bg-gradient-to-br.from-blue-700.via-blue-600.to-indigo-700 {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #4338ca 100%);
}

/* ===== Mobile Menu ===== */
@media (max-width: 767px) {
  #mobile-menu:not(.hidden) {
    display: block;
  }
}

/* ===== RTL Mirror Utility ===== */
.rtl {
  direction: rtl;
  text-align: right;
}
.rtl .space-x-6 > * + * {
  margin-left: 0;
  margin-right: 1.5rem;
}
.rtl .space-x-2 > * + * {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* ===== RTL Table ===== */
body[dir="rtl"] th, body[dir="rtl"] td {
  text-align: right;
}

/* ===== Smooth Scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Recent Activity ===== */
#recent-activity-list {
  max-height: 20rem;
  overflow-y: auto;
}
#recent-activity-list::-webkit-scrollbar {
  width: 4px;
}
#recent-activity-list::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 9999px;
}

/* ===== Team Experts ===== */
.expert-card {
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.expert-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* ===== Transparency Section ===== */
.transparency-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #86efac;
}

/* ===== Report Section ===== */
.report-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
}

/* ===== RTL Recent Activity ===== */
body[dir="rtl"] #recent-activity-list .flex {
  flex-direction: row-reverse;
}
body[dir="rtl"] .text-right {
  text-align: right;
}

/* ===== Print Styles ===== */
@media print {
  .copy-btn, nav, footer, #mobile-menu-btn, #recent-activity-list {
    display: none;
  }
  body {
    background: white;
  }
}