/* articles.css — Styles for Articles (Insights) section */
/* Mobile-first design matching existing graha_peyarchi patterns */

/* ─────────────────────────────────────────────────────────────────────────────
   Base Wrapper
   ───────────────────────────────────────────────────────────────────────────── */
.articles-wrapper {
  background: linear-gradient(135deg, #fdf6ff 0%, #f3eaff 100%);
  border-radius: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 0;
}

.articles-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Breadcrumb (matches graha_peyarchi)
   ───────────────────────────────────────────────────────────────────────────── */
.articles-page .breadcrumb-nav {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.articles-page .breadcrumb-nav a {
  color: #7b2cbf;
  text-decoration: none;
}

.articles-page .breadcrumb-nav a:hover {
  text-decoration: underline;
}

.articles-page .breadcrumb-nav .sep {
  margin: 0 0.3rem;
  color: #999;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────────────────────────────────── */
.articles-detail-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #4a1a6b;
  margin: 0.8rem 0 0.3rem;
  line-height: 1.35;
}

.articles-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.articles-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4a1a6b;
  margin: 0 0 0.5rem;
}

.articles-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Empty State
   ───────────────────────────────────────────────────────────────────────────── */
.articles-empty {
  text-align: center;
  padding: 2rem;
  background: #fff3cd;
  border-radius: 8px;
  color: #856404;
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Article List (Listing Page)
   ───────────────────────────────────────────────────────────────────────────── */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  border: 2px solid #7b2cbf;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.article-card-body {
  flex: 1;
  min-width: 0;
}

.article-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #4a1a6b;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.article-card-date {
  font-size: 0.75rem;
  color: #999;
  display: block;
  margin-bottom: 0.4rem;
}

.article-card-teaser {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-arrow {
  font-size: 1.5rem;
  color: #7b2cbf;
  padding-left: 0.75rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Policy Badge
   ───────────────────────────────────────────────────────────────────────────── */
.policy-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7b2cbf 0%, #9c4dcc 100%);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Updated Date
   ───────────────────────────────────────────────────────────────────────────── */
.article-updated {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 1.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Article Body (Detail Page)
   ───────────────────────────────────────────────────────────────────────────── */
.article-body {
  margin-bottom: 2rem;
}

.article-body h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4a1a6b;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.article-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #5e2a9e;
  margin: 1.25rem 0 0.6rem;
  line-height: 1.3;
}

.article-body p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.article-body ul {
  padding-left: 1.25rem;
  margin: 0 0 0.75rem;
}

.article-body li {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

.article-body a {
  color: #7b2cbf;
  text-decoration: underline;
}

.article-body a:hover {
  color: #5e2a9e;
}

.article-body strong {
  color: #1f2937;
}

/* Language fallback note for non-translated content */
.lang-fallback-note {
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: #4338ca;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Bottom Navigation (matches graha_peyarchi pattern)
   ───────────────────────────────────────────────────────────────────────────── */
.articles-bottom-ctas {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.articles-bottom-ctas .btn-back {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e0c7ff;
  background: #faf5ff;
  color: #4b2166;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.articles-bottom-ctas .btn-back:hover {
  background: #f3e8ff;
  box-shadow: 0 2px 8px rgba(123, 44, 191, 0.16);
  transform: translateY(-1px);
  color: #4b2166;
  text-decoration: none;
}

@media (max-width: 520px) {
  .articles-bottom-ctas {
    flex-direction: column;
    gap: 0.6rem;
  }
  .articles-bottom-ctas .btn-back {
    width: 100%;
    max-width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Home Tab — Article Card (for home page)
   ───────────────────────────────────────────────────────────────────────────── */
.articles-home-card {
  background: #fff;
  border: 2px solid #7b2cbf;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.articles-home-card .banner-top-title {
  font-size: 0.88rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.articles-home-card .article-home-teaser {
  color: #1f2937;
  background: #faf5ff;
  border: 1px solid #e0c7ff;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 10px;
  margin: 6px 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-home-card .article-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid #e0c7ff;
  background: #faf5ff;
  color: #4b2166;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  margin-top: 6px;
}

.articles-home-card .article-home-cta:hover {
  background: #f3e8ff;
  box-shadow: 0 2px 8px rgba(123, 44, 191, 0.16);
  transform: translateY(-1px);
  text-decoration: none;
  color: #4b2166;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Graha Peyarchi Policy Pill
   ───────────────────────────────────────────────────────────────────────────── */
.gp-policy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e0c7ff;
  background: #faf5ff;
  color: #4b2166;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 1rem;
}

.gp-policy-pill:hover {
  background: #f3e8ff;
  box-shadow: 0 2px 8px rgba(123, 44, 191, 0.16);
  text-decoration: none;
  color: #4b2166;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile Optimizations
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .articles-title {
    font-size: 1.2rem;
  }

  .article-body h1 {
    font-size: 1.15rem;
  }

  .article-body h2 {
    font-size: 0.95rem;
  }

  .policy-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }

  .articles-bottom-ctas .btn-back {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}
