/* Single blog post page (/blogs/{slug}) */

.post-crumbs {
  padding: 40px 0 18px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 600;
}

.post-crumbs a:hover {
  color: var(--primary);
}

.post-crumbs .sep {
  opacity: 0.5;
}

.post-crumbs .current {
  color: var(--choco-mid);
  font-weight: 700;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
  padding-bottom: 80px;
}

.feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8.4;
  box-shadow: var(--shadow-card);
  background: var(--blush);
}

/* Most post photos are square: show the whole cake, with a blurred copy filling the banner */
.feature::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: var(--feature-img) center / cover no-repeat;
  filter: blur(22px) brightness(1.05);
}

.feature img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin: 24px 0 14px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.post-meta .m {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-left: 1.5px solid rgba(74, 42, 31, 0.18);
}

.post-meta .m:first-child {
  padding-left: 0;
  border-left: none;
}

.post-meta svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

.post-meta a:hover {
  color: var(--primary);
}

h1.post-title {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.25;
  color: var(--choco);
  margin-bottom: 22px;
}

/* Post body: admin-written HTML, so lists and tables need their styling back */
.article {
  overflow-wrap: anywhere;
}

.article p,
.article li {
  color: #5d4f49;
  font-size: 1.02rem;
  line-height: 1.85;
}

.article p {
  margin-bottom: 20px;
}

.article h2 {
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--choco);
  margin: 44px 0 14px;
}

.article h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--choco);
  margin: 30px 0 10px;
}

.article strong {
  color: var(--gold);
}

.article h2 strong,
.article h3 strong {
  color: inherit;
}

.article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article ul,
.article ol {
  padding-left: 1.5rem;
  margin-bottom: 20px;
}

.article ul {
  list-style: disc;
}

.article ol {
  list-style: decimal;
}

.article ul ul {
  list-style: circle;
  margin-bottom: 0;
}

.article li {
  margin-bottom: 6px;
}

.article img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1rem auto;
  border-radius: 14px;
}

.article blockquote {
  border-left: 3px solid var(--primary);
  background: var(--blush);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.article blockquote p:last-child {
  margin-bottom: 0;
}

.article table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--white);
}

.article th,
.article td {
  padding: 8px 10px;
  border: 1px solid #e6dfe3 !important;
  word-break: break-word;
}

.article th p,
.article td p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Author */
.author {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px -14px rgba(74, 42, 31, 0.18);
  margin-top: 36px;
}

.author-img {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  overflow: hidden;
  border-radius: 50%;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

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

.author-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: var(--gold);
  font-weight: 700;
}

.author-content h3 {
  color: var(--choco);
  margin: 0 0 4px;
}

.author-content h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--gold);
}

.author-content p {
  margin-bottom: 15px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.author-content .btn {
  padding: 10px 24px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cakes-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cakes-head {
  background: var(--blush);
  padding: 24px 26px;
}

.cakes-head h3 {
  font-size: 1.5rem;
  color: var(--choco);
  margin-bottom: 4px;
}

.cakes-head p {
  font-size: 0.88rem;
  color: var(--gold);
  opacity: 0.8;
}

.cake-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-top: 1px solid rgba(74, 42, 31, 0.08);
  transition: background 0.3s;
}

.cake-item:hover {
  background: var(--cream);
}

.cake-thumb {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blush);
}

.cake-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.cake-item:hover .cake-thumb img {
  transform: scale(1.1);
}

.cake-info {
  min-width: 0;
}

.cake-info h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--gold);
  line-height: 1.35;
  margin-bottom: 10px;
}

.cake-info .btn {
  border-width: 1.5px;
  font-size: 0.8rem;
  padding: 8px 16px;
  gap: 7px;
}

.cake-info .btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s;
}

.cake-item:hover .btn-o {
  background: var(--gold);
  color: var(--white);
}

.cake-item:hover .btn svg {
  transform: translateX(3px);
}

.cakes-foot {
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(74, 42, 31, 0.08);
}

.cakes-foot .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
}

@media (max-width: 1020px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .feature {
    aspect-ratio: 4 / 3;
  }

  .post-meta .m {
    padding: 0 12px;
  }

  .article th,
  .article td {
    padding: 4px 3px !important;
  }

  .article th p,
  .article td p {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .author {
    align-items: flex-start;
    flex-direction: column;
  }
}
