/* Blog article: share + author + comments (modern layout) */

.blog-article-footer {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* —— Share panel —— */
.blog-share-panel {
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(248, 180, 0, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px -24px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.blog-share-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.5rem 1.35rem;
}

@media (min-width: 768px) {
  .blog-share-panel-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.65rem 1.85rem;
    gap: 2rem;
  }
}

.blog-share-intro {
  flex: 1;
  min-width: 0;
}

.blog-share-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.35rem;
}

.blog-share-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.blog-share-lede {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
  max-width: 28rem;
}

.blog-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #334155;
  font-size: 1.15rem;
  text-decoration: none;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.blog-share-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.blog-share-btn.is-x:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.blog-share-btn.is-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.blog-share-btn.is-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.blog-share-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  min-height: 3rem;
  border-radius: 100px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #0f172a;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.blog-share-copy:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 180, 0, 0.55);
  box-shadow: 0 10px 28px -10px rgba(248, 180, 0, 0.45);
}

.blog-share-copy:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.blog-share-copy.is-copied {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: rgba(16, 185, 129, 0.45);
  color: #065f46;
}

.blog-share-copy i {
  font-size: 1.1rem;
  opacity: 0.88;
}

/* —— Author panel —— */
.blog-author-panel {
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 52%, #e8eef5 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 50px -28px rgba(15, 23, 42, 0.2);
  position: relative;
}

.blog-author-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #f8b400, #ea580c);
  opacity: 0.85;
}

.blog-author-panel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.5rem 1.35rem 1.5rem 1.65rem;
  align-items: start;
}

@media (min-width: 576px) {
  .blog-author-panel-inner {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.65rem 1.75rem 1.65rem 1.85rem;
    align-items: center;
  }
}

.blog-author-visual {
  justify-self: center;
}

@media (min-width: 576px) {
  .blog-author-visual {
    justify-self: start;
  }
}

.blog-author-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.14),
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 5px rgba(248, 180, 0, 0.25);
}

.blog-author-avatar-fallback {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  color: #422006;
  box-shadow:
    0 8px 24px rgba(234, 88, 12, 0.22),
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 5px rgba(248, 180, 0, 0.25);
}

.blog-author-body {
  min-width: 0;
}

.blog-author-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.blog-author-heading {
  flex: 1;
  min-width: 0;
}

.blog-author-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.2rem;
}

.blog-author-name {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.blog-author-support {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.05rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  color: #713f12 !important;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.blog-author-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.32);
  color: #451a03 !important;
}

.blog-author-support i {
  font-size: 0.82rem;
}

.blog-author-bio {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.blog-author-bio--muted {
  color: #94a3b8;
  font-style: italic;
}

/* —— Comments —— */
.blog-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.blog-comments-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.blog-comments-header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(248, 180, 0, 0.2), rgba(251, 191, 36, 0.12));
  color: #b45309;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.blog-comments-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.blog-comments-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.blog-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.blog-comment-card {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-comment-card:hover {
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 8px 28px -12px rgba(15, 23, 42, 0.1);
}

.blog-comment-avatar {
  flex-shrink: 0;
}

.blog-comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.blog-comment-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  color: #334155;
}

.blog-comment-body {
  min-width: 0;
  flex: 1;
}

.blog-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.35rem;
}

.blog-comment-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.95rem;
}

.blog-comment-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-comment-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

/* Comment form */
.blog-comment-form-card {
  border-radius: 1.25rem;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (min-width: 576px) {
  .blog-comment-form-card {
    padding: 1.75rem 1.85rem;
  }
}

.blog-comment-form-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.blog-comment-form-hint {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.blog-form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.blog-form-control {
  border-radius: 0.65rem !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.9rem !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.blog-form-control:focus {
  border-color: rgba(248, 180, 0, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(248, 180, 0, 0.2) !important;
}

.blog-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.blog-comment-submit {
  margin-top: 1rem;
  padding: 0.65rem 1.75rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.875rem;
  border: none;
  background: linear-gradient(135deg, #f8b400, #ea580c);
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-comment-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.35);
  color: #0f172a;
}

@media (max-width: 575.98px) {
  .blog-share-actions {
    width: 100%;
  }

  .blog-share-copy {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}
