/* ==========================================================================
   Bhima Apps - Editorial Blog & Article Styling System (Premium Edition)
   ========================================================================== */

/* Blog Hub Hero */
.blog-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.blog-hero-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.25rem;
  margin-bottom: 6rem;
}

/* Premium Blog Card */
.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.blog-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.blog-card:hover .blog-card-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

.blog-category-tag {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.blog-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-summary {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-dim);
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
}

.blog-read-more i {
  transition: transform 0.25s ease;
}

.blog-card:hover .blog-read-more i {
  transform: translateX(5px);
}

/* Article Detail Page Styling */
.article-header {
  padding: 4.5rem 0 2.5rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.article-category {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.article-content {
  max-width: 860px;
  margin: 0 auto 5rem;
  font-size: 1.12rem;
  line-height: 1.88;
  color: var(--text-muted);
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  margin: 3.25rem 0 1.25rem;
  color: var(--text-main);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.6rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.85rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.65rem;
  line-height: 1.8;
}

.article-content strong {
  color: var(--text-main);
  font-weight: 700;
}

/* App Spotlight Download Box in Blog */
.app-spotlight-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: var(--transition);
}

.app-spotlight-box:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.spotlight-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.spotlight-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.spotlight-text h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  letter-spacing: -0.015em;
}

.spotlight-text p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

/* Dark Mode Overrides */
[data-theme="dark"] .blog-card {
  background: rgba(21, 30, 54, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .blog-card-icon-wrap {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

[data-theme="dark"] .blog-category-tag {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

[data-theme="dark"] .article-category {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

[data-theme="dark"] .app-spotlight-box {
  background: #151e36;
  border-color: rgba(99, 102, 241, 0.35);
}
