/* ============================================================
   YB AI INNOVATION — Blog Page Shared Styles
   Depends on: ../styles.css (variables, header, footer, base)
   ============================================================ */

/* ── Blog Detail Section ──────────────────────────────────── */
.blog-detail-section {
  padding: 140px 0 80px;
  position: relative;
}

.blog-detail {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Blog Header ──────────────────────────────────────────── */
.blog-header {
  padding: 48px 48px 24px;
}

.blog-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.blog-meta span i {
  color: var(--brand-primary);
  font-size: 0.875rem;
}

/* ── Featured Image ───────────────────────────────────────── */
.blog-featured-image {
  width: 100%;
  height: 480px;
  overflow: hidden;
  position: relative;
}

.blog-featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(10, 14, 23, 0.6));
  pointer-events: none;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-featured-image:hover img {
  transform: scale(1.03);
}

/* ── Blog Body Content ────────────────────────────────────── */
.blog-detail .blog-content {
  padding: 48px;
  line-height: 1.85;
}

.blog-detail .blog-content p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.blog-detail .blog-content h2 {
  font-family: 'Outfit', sans-serif;
  margin: 44px 0 18px;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 16px;
}

.blog-detail .blog-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: 2px;
}

.blog-detail .blog-content h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.blog-detail .blog-content ol,
.blog-detail .blog-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-detail .blog-content li {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.blog-detail .blog-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-detail .blog-content a {
  color: var(--brand-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-detail .blog-content a:hover {
  color: var(--brand-accent);
}

/* ── Tags ─────────────────────────────────────────────────── */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 18px 20px;
  background: rgba(67, 56, 202, 0.06);
  border-radius: 14px;
  border-left: 3px solid rgba(67, 56, 202, 0.4);
}

.tag-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
}

.tag-label i {
  color: var(--brand-primary);
}

.blog-tag {
  background: rgba(67, 56, 202, 0.1);
  border: 1px solid rgba(67, 56, 202, 0.25);
  color: rgba(255, 255, 255, 0.75);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s ease;
  cursor: default;
}

.blog-tag:hover {
  background: rgba(67, 56, 202, 0.22);
  border-color: rgba(67, 56, 202, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Navigation Bar ───────────────────────────────────────── */
.blog-navigation {
  padding: 28px 48px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.blog-back-btn,
.blog-navigation .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.blog-back-btn:hover,
.blog-navigation .btn:hover {
  background: rgba(67, 56, 202, 0.12);
  border-color: rgba(67, 56, 202, 0.4);
  color: #fff;
}

/* ── Share ────────────────────────────────────────────────── */
.blog-share {
  padding: 32px 48px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.blog-share h3 {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-share .social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.blog-share .social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.25s ease;
}

.blog-share .social-links a:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.35);
}

/* ── Related Posts ────────────────────────────────────────── */
.related-posts {
  padding: 80px 0;
}

.related-posts h2 {
  font-family: 'Outfit', sans-serif;
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ── Step Items ───────────────────────────────────────────── */
.step-item {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.step-item:hover {
  background: rgba(67, 56, 202, 0.06);
  border-color: rgba(67, 56, 202, 0.2);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 480px) {
  .step-item { flex-direction: column; gap: 16px; padding: 20px; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-detail-section { padding: 110px 0 60px; }
  .blog-header { padding: 32px 24px 20px; }
  .blog-featured-image { height: 280px; }
  .blog-detail .blog-content { padding: 28px 24px; }
  .blog-detail .blog-content h2 { font-size: 1.5rem; }
  .blog-navigation,
  .blog-share { padding: 24px; }
}

@media (max-width: 480px) {
  .blog-header h1 { font-size: 1.625rem; }
  .blog-featured-image { height: 220px; }
  .blog-detail .blog-content { padding: 24px 16px; }
  .blog-detail .blog-content p,
  .blog-detail .blog-content li { font-size: 1rem; }
}
