/* ================================================================
   Bangladesh Live Trains — App CSS
   Supplements Tailwind CDN with custom utilities
   ================================================================ */

/* ---- Status badges ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status-running {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-stopped {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-offline {
  background-color: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ---- Material Symbols ---- */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

/* ---- Train card hover ---- */
.train-card {
  will-change: transform;
}
.train-card:hover {
  transform: translateY(-1px);
}

/* ---- Blog content typography ---- */
.blog-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.blog-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.blog-content p {
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.blog-content ul,
.blog-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}
.blog-content ul {
  list-style-type: disc;
}
.blog-content ol {
  list-style-type: decimal;
}
.blog-content li {
  margin-bottom: 0.3rem;
  line-height: 1.7;
}
.blog-content a {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-content a:hover {
  color: #6ee7b7;
}
.blog-content strong {
  color: #f1f5f9;
  font-weight: 600;
}
.blog-content em {
  color: #94a3b8;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  overflow: hidden;
}
.blog-content th {
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #334155;
}
.blog-content td {
  padding: 8px 12px;
  border: 1px solid #334155;
  color: #cbd5e1;
}
.blog-content tr:nth-child(even) td {
  background-color: #1e293b;
}

/* ---- FAQ details ---- */
.faq-item summary::-webkit-details-marker {
  display: none;
}
details[open] .faq-item-content {
  animation: faq-open 0.2s ease;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ---- Custom scrollbar (Webkit) ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ---- Focus ring ---- */
:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

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

/* ---- Prose link inside about/contact ---- */
.prose-custom a {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-custom a:hover {
  color: #6ee7b7;
}
