.post-detail {
  padding-bottom: 0;
}

/* ─── Hero Image ─── */
.post-hero {
  position: relative;
  width: 100%;
  background: var(--muted-bg);
}
.post-hero-img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.post-back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: #fff;
  transition: background .2s;
  z-index: 10;
}
.post-back-btn:hover {
  background: rgba(0,0,0,.55);
}
.post-hero-handle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ─── Body ─── */
.post-body {
  padding-top: 20px;
  padding-bottom: 20px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.post-category-badge {
  display: inline-block;
  background: var(--muted-bg);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.post-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.post-status.active { color: #16a34a; }
.post-status.closed { color: var(--muted); }
.post-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.post-status.active .post-status-dot { background: #16a34a; }
.post-status.closed .post-status-dot { background: var(--muted); }

.post-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 6px;
}
.post-influencer {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
  text-decoration: none;
}
.post-influencer:hover { text-decoration: underline; }
.post-period {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.post-period svg {
  flex-shrink: 0;
  opacity: .6;
}

/* ─── Stats ─── */
.post-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.post-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.post-stat-icon { margin-bottom: 6px; }
.post-stat-icon.like { color: #ef4444; }
.post-stat-icon.comment { color: var(--fg); }
.post-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}
.post-stat-label {
  font-size: 12px;
  color: var(--muted);
}

/* ─── Tags ─── */
.post-section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}
.post-tags-section {
  margin-bottom: 28px;
}
.post-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-tag {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 14px;
  color: var(--fg);
}
.post-tag em {
  font-style: normal;
  color: var(--accent);
  margin-right: 2px;
}

/* ─── Caption ─── */
.post-caption-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.post-caption {
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg);
  word-break: break-word;
}

.post-bottom-spacer {
  height: 80px;
}

/* ─── Action Bar ─── */
.post-action-bar--inline {
  display: none;
}
.post-action-bar--fixed {
  position: fixed;
  bottom: 68px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 800;
}
.post-action-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 12px;
}
.post-action-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ─── Share toggle + menu ─── */
.post-share-wrap {
  position: relative;
}
.post-action-share-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  transition: background .2s;
  cursor: pointer;
}
.post-action-share-toggle svg {
  width: 20px;
  height: 20px;
}
.post-action-share-toggle:hover {
  background: var(--muted-bg);
}
.post-share-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 6px;
  min-width: 160px;
  z-index: 900;
}
.post-share-menu.open {
  display: block;
  animation: shareMenuIn .15s ease;
}
@keyframes shareMenuIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.post-share-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.post-share-menu-item:hover {
  background: var(--muted-bg);
}
.post-share-menu-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.post-share-menu-icon.kakao-icon {
  background: #FEE500;
}
.post-share-menu-icon.link-icon {
  background: var(--muted-bg);
  color: var(--fg);
}

.post-action-wish {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.post-action-wish svg {
  width: 20px;
  height: 20px;
}
.post-action-wish:hover {
  background: var(--muted-bg);
}
.post-action-wish.active {
  color: #ef4444;
  border-color: #ef4444;
}
.post-action-wish.active svg {
  fill: #ef4444;
}
.post-action-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  max-width: 320px;
  background: var(--fg);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  text-decoration: none;
  transition: opacity .2s;
}
.post-action-cta:hover { opacity: .85; }
.post-action-cta svg { flex-shrink: 0; }

/* ─── Toast ─── */
.post-toast {
  position: fixed;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.post-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Mobile small ─── */
@media (max-width: 480px) {
  .post-title { font-size: 18px; }
  .post-stat-num { font-size: 16px; }
  .post-action-cta {
    font-size: 13px;
    padding: 12px 16px;
  }
}

/* ═══════════════════════════════════════════
   PC Layout — 2-column (image left, info right)
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .post-detail {
    display: flex;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 32px 0;
    gap: 40px;
    align-items: flex-start;
  }
  .post-hero {
    flex: 0 0 420px;
    width: 420px;
    position: sticky;
    top: 80px;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .post-hero-img {
    border-radius: var(--radius);
  }
  .post-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    max-width: none;
    margin: 0;
  }
  .post-body.max-w {
    padding: 0;
  }
  .post-title { font-size: 22px; }
  .post-tags {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .post-bottom-spacer { height: 40px; }

  .post-action-bar--fixed { display: none; }
  .post-action-bar--inline {
    display: block;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
  }
  .post-action-bar--inline .post-action-bar-inner {
    padding: 0;
    max-width: none;
    margin: 0;
  }
  .post-action-cta {
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .post-detail {
    max-width: 1100px;
    padding: 40px 40px 0;
    gap: 56px;
  }
  .post-hero {
    flex: 0 0 480px;
    width: 480px;
    top: 100px;
  }
  .post-back-btn {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
  .post-hero-handle {
    font-size: 13px;
    padding: 5px 14px;
  }
  .post-title { font-size: 24px; }
  .post-influencer { font-size: 15px; }
  .post-period { font-size: 14px; }
  .post-stat-card { padding: 20px 16px; }
  .post-stat-num { font-size: 20px; }
  .post-stat-label { font-size: 13px; }
  .post-section-title { font-size: 14px; }
  .post-tag { font-size: 14px; }
  .post-caption { font-size: 15px; line-height: 1.8; }

  .post-action-wish {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .post-action-share-toggle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .post-action-cta {
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 12px;
  }
}

@media (min-width: 1400px) {
  .post-detail {
    max-width: 1200px;
  }
  .post-hero {
    flex: 0 0 540px;
    width: 540px;
  }
  .post-title { font-size: 26px; }
}
