/* blog.css — Post detail + YouTube detail styles for links.dannny0117.com */

/* ============================================================
   POST HERO
   ============================================================ */
.post-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.post-hero-video-wrap {
  position: absolute;
  inset: -5%;
  z-index: 0;
  pointer-events: none;
}
.post-hero-video-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
}
.post-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0f1a 100%);
  z-index: 0;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.65) 40%,
    rgba(0,0,0,.35) 70%,
    rgba(0,0,0,.15) 100%
  );
}
.post-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 3rem;
  padding-top: 7rem;
}
.post-hero-content {
  max-width: 820px;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.post-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.post-breadcrumb-link:hover { color: var(--accent, #FF6B00); }
.post-cat-badge {
  display: inline-block;
  background: var(--accent, #FF6B00);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 100px;
}
.post-hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -.03em;
}
.post-hero-excerpt {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: 1.25rem;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.post-meta-item i { color: var(--accent, #FF6B00); font-size: .8rem; }
.post-hero-share {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  transition: all .2s;
  cursor: pointer;
}
.post-share-btn:hover { background: var(--accent, #FF6B00); color: #fff; border-color: transparent; }

/* Hero controls */
.post-hero-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.post-hero-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  transition: all .2s;
  cursor: pointer;
}
.post-hero-ctrl-btn:hover { background: var(--accent, #FF6B00); color: #fff; }

/* ============================================================
   POST BODY / ARTICLE
   ============================================================ */
.post-body-section {
  padding: 4rem 0 5rem;
}
.post-layout-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .post-layout-row { grid-template-columns: 1fr; }
  .post-sidebar { order: -1; }
}

.post-article {
  padding: 2.5rem;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text, #e8e8e8);
}

/* WYSIWYG output styles */
.wysiwyg-output h1,
.wysiwyg-output h2 { font-size: clamp(1.3rem,2.5vw,1.9rem); margin: 2rem 0 1rem; color: #fff; }
.wysiwyg-output h3 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; color: rgba(255,255,255,.9); }
.wysiwyg-output p  { margin-bottom: 1.2rem; max-width: none; }
.wysiwyg-output ul,
.wysiwyg-output ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.wysiwyg-output li { margin-bottom: .5rem; }
.wysiwyg-output a  { color: var(--accent, #FF6B00); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wysiwyg-output a:hover { opacity: .8; }
.wysiwyg-output strong { color: #fff; font-weight: 700; }
.wysiwyg-output code  { background: rgba(255,107,0,.12); border: 1px solid rgba(255,107,0,.25); color: #FF8C00; padding: .1em .45em; border-radius: 4px; font-size: .88em; font-family: 'Consolas','Courier New',monospace; }
.wysiwyg-output pre  { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 1.25rem; overflow-x: auto; margin-bottom: 1.5rem; }
.wysiwyg-output pre code { background: none; border: none; padding: 0; font-size: .9em; }
.wysiwyg-output blockquote { border-left: 3px solid var(--accent, #FF6B00); margin: 1.5rem 0; padding: 1rem 1.5rem; background: rgba(255,107,0,.06); border-radius: 0 10px 10px 0; color: rgba(255,255,255,.8); font-style: italic; }
.wysiwyg-output hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 2rem 0; }
.wysiwyg-output table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.wysiwyg-output th { background: rgba(255,107,0,.15); color: #fff; font-weight: 700; padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,107,0,.3); }
.wysiwyg-output td { padding: .65rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.wysiwyg-output tr:last-child td { border-bottom: none; }
.wysiwyg-output img { border-radius: 10px; margin: 1rem auto; max-width: 100%; }

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.video-container iframe,
.video-container video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── Tags wrap ─────────────────────────────────────────────── */
.post-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}
.post-tags-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-right: .5rem;
}
.post-tag {
  display: inline-block;
  background: rgba(255,107,0,.1);
  border: 1px solid rgba(255,107,0,.2);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  transition: all .2s;
  text-decoration: none;
}
.post-tag:hover { background: var(--accent, #FF6B00); color: #fff; border-color: transparent; }

/* ── Author card ───────────────────────────────────────────── */
.post-author-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
@media (max-width: 480px) { .post-author-card { flex-direction: column; text-align: center; } }
.post-author-avatar {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,0,0,.4);
}
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.post-author-bio { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.5; margin-bottom: .75rem; max-width: none; }
.post-author-links { display: flex; gap: .75rem; }
.post-author-links a { font-size: 1.1rem; color: rgba(255,255,255,.5); transition: color .2s; }
.post-author-links a:hover { color: #ff0000; }

/* ── Prev/Next nav ─────────────────────────────────────────── */
.post-prevnext {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.post-prevnext-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s;
}
.post-prevnext-next { justify-content: flex-end; }
.post-prevnext-item:hover { color: #ff0000; }
.post-prevnext-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,0,0,.12);
  border: 1px solid rgba(255,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: background .2s;
}
.post-prevnext-item:hover .post-prevnext-arrow { background: #ff0000; border-color: transparent; color: #fff; }
.post-prevnext-item small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); margin-bottom: .25rem; }
.post-prevnext-item strong { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.post-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  letter-spacing: -.01em;
}
.sidebar-recent-list { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-recent-item { display: flex; gap: .9rem; align-items: flex-start; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.sidebar-recent-item:hover { color: #ff0000; }
.sidebar-recent-thumb { flex-shrink: 0; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.05); }
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-date { display: block; font-size: .74rem; color: rgba(255,255,255,.35); margin-bottom: .2rem; }
.sidebar-recent-title { font-size: .85rem; font-weight: 600; line-height: 1.35; margin: 0; }
