/* Blog post detail — matched to hibachinow.com/blogs/{slug} */

.hn-blog-post {
  padding: 2.5rem 0 4rem;
}

@media (min-width: 640px) {
  .hn-blog-post {
    padding: 3rem 0 5rem;
  }
}

.hn-blog-post__article {
  width: min(100% - 2rem, 48rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .hn-blog-post__article {
    gap: 2.5rem;
  }
}

.hn-blog-post__header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
  .hn-blog-post__header {
    gap: 1.5rem;
    padding-bottom: 2rem;
  }
}

.hn-blog-post__intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hn-blog-post__intro {
    gap: 1rem;
  }
}

.hn-blog-post__title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hn-blog-post__excerpt {
  margin: 0;
  color: #737373;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  line-height: 1.625;
}

.hn-blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  color: rgba(115, 115, 115, 0.9);
  font-size: 0.875rem;
}

.hn-blog-post__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hn-blog-post__meta-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.hn-blog-post__updated {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #737373;
}

.hn-blog-post__cover {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: rgba(243, 244, 246, 0.4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .hn-blog-post__cover {
    border-radius: 1rem;
  }
}

.hn-blog-post__cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hn-blog-post__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hn-blog-post__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  color: #737373;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .hn-blog-post__tags {
    gap: 0.5rem;
  }
}

.hn-blog-post__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #737373;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
}

.hn-blog-post__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 0.25rem;
}

@media (min-width: 640px) {
  .hn-blog-post__content {
    padding: 0;
  }
}


.hn-blog-post__content h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hn-blog-post__content h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.hn-blog-post__content p {
  margin: 0;
  color: rgba(115, 115, 115, 0.9);
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .hn-blog-post__content p {
    font-size: 1.125rem;
    line-height: 2;
  }
}

.hn-blog-post__content ul {
  margin: 0;
  padding: 0 0 0 1.25rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(115, 115, 115, 0.9);
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .hn-blog-post__content ul {
    padding-left: 1.5rem;
    font-size: 1.125rem;
    line-height: 2;
  }
}

.hn-blog-post__content li {
  margin: 0 0 0.25rem;
  padding: 0;
}

.hn-blog-post__content hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px dashed #e5e7eb;
}

.hn-blog-post__figure {
  margin: 2rem auto;
  max-width: 56rem;
}

.hn-blog-post__figure img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hn-blog-post__figure figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: #737373;
  font-size: 0.875rem;
  line-height: 1.5;
}

.hn-blog-post__table-wrap {
  width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.hn-blog-post__table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .hn-blog-post__table {
    font-size: 1rem;
  }
}

.hn-blog-post__table thead {
  background: rgba(243, 244, 246, 0.5);
}

.hn-blog-post__table th,
.hn-blog-post__table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  color: #374151;
}

.hn-blog-post__table th {
  font-weight: 600;
  color: #111827;
  padding: 0.75rem 1rem;
}

.hn-blog-post__table tbody tr:nth-child(odd) {
  background: #fff;
}

.hn-blog-post__table tbody tr:nth-child(even) {
  background: rgba(243, 244, 246, 0.3);
}

.hn-blog-post__share {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .hn-blog-post__share {
    padding: 1.5rem;
  }
}

.hn-blog-post__share-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hn-blog-post__share-inner {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.hn-blog-post__share-label {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.hn-blog-post__share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .hn-blog-post__share-actions {
    gap: 0.75rem;
  }
}

.hn-blog-post__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.hn-blog-post__share-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hn-blog-post__share-btn:hover {
  background: #f3f4f6;
}

.hn-blog-post__share-btn[data-share="twitter"]:hover { color: #3b82f6; }
.hn-blog-post__share-btn[data-share="facebook"]:hover { color: #2563eb; }
.hn-blog-post__share-btn[data-share="linkedin"]:hover { color: #1d4ed8; }
.hn-blog-post__share-btn[data-share="email"]:hover { color: #1f2937; }
.hn-blog-post__share-btn[data-share="copy"]:hover { color: #dc2626; }

.hn-blog-post__cta {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  color: #fff;
  background: #dc2626;
}

@media (min-width: 768px) {
  .hn-blog-post__cta {
    padding: 3rem;
  }
}

.hn-blog-post__cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hn-blog-post__cta-inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

.hn-blog-post__cta h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
}

.hn-blog-post__cta-text {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.625;
}

.hn-blog-post__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #dc2626;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.hn-blog-post__cta-btn:hover {
  background: #f9fafb;
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hn-blog-post__checks {
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  width: fit-content;
  text-align: left;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 640px) {
  .hn-blog-post__checks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

.hn-blog-post__checks li {
  display: grid;
  grid-template-columns: 1.25rem auto;
  align-items: center;
  gap: 0.75rem;
}

.hn-blog-post__checks li::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.hn-blog-post__phone {
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.hn-blog-post__phone a {
  color: #fff;
  font-weight: 600;
}

.hn-blog-post__phone a:hover {
  text-decoration: underline;
}

.hn-blog-post--missing {
  width: min(100% - 2rem, 40rem);
  margin: 4rem auto;
  text-align: center;
}

.hn-blog-post--missing h1 {
  margin: 0 0 1rem;
  font-size: 1.875rem;
}

.hn-blog-post--missing p {
  margin: 0 0 1.5rem;
  color: #737373;
}

.hn-blog-post--missing a {
  color: #dc2626;
  font-weight: 600;
  text-decoration: underline;
}
