/* =========================================================
   Components v4: Share / Navigation / Global Lightbox
========================================================= */

.detail-date-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,#eef7ff,#fff4f7);
  color:#6b7280;
  font-size:15px;
  font-weight:700;
  margin-bottom:18px;
}

.share-box{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:34px 0 12px;
  padding:16px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid rgba(13,79,145,.10);
}

.share-box span{
  color:#6b7280;
  font-weight:800;
  margin-right:4px;
}

.share-btn{
  border:0;
  border-radius:999px;
  padding:9px 15px;
  color:#fff !important;
  font-weight:800;
  cursor:pointer;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  min-height:38px;
}

.share-facebook{background:#1877f2;}
.share-line{background:#06c755;}
.share-copy{background:#8b001f;}

.detail-navbox{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  margin-top:30px;
}

.detail-navlink{
  display:flex;
  min-height:46px;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(139,0,31,.12);
  color:#8b001f;
  font-weight:800;
  box-shadow:0 8px 20px rgba(20,35,70,.07);
}

.detail-navlink:hover{
  background:#8b001f;
  color:#fff;
}

.detail-navlink-disabled{
  color:#a5a5a5;
  background:#f5f7fb;
  box-shadow:none;
}

.detail-home-btn{white-space:nowrap;}

body.lightbox-open{overflow:hidden;}

.global-lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.84);
  z-index:999999;
}

.global-lightbox.show{display:flex;}

.global-lightbox-stage{
  position:relative;
  margin:0;
  max-width:min(1120px,90vw);
  max-height:88vh;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.global-lightbox-stage img{
  max-width:100%;
  max-height:84vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  background:#fff;
  box-shadow:0 22px 70px rgba(0,0,0,.48);
}

#globalLightboxCaption{
  margin-top:12px;
  color:#fff;
  font-weight:800;
  text-align:center;
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}

.global-lightbox-close,
.global-lightbox-arrow{
  position:absolute;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#8b001f;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 14px 34px rgba(0,0,0,.30);
  transition:.22s ease;
  z-index:3;
}

.global-lightbox-close:hover,
.global-lightbox-arrow:hover{
  background:#8b001f;
  color:#fff;
  transform:scale(1.08);
}

.global-lightbox-close{
  top:22px;
  right:26px;
  width:56px;
  height:56px;
  font-size:34px;
}

.global-lightbox-arrow{
  top:50%;
  width:64px;
  height:64px;
  font-size:46px;
  line-height:1;
}

.global-lightbox-prev{left:34px;}
.global-lightbox-next{right:34px;}

.global-lightbox-arrow:hover{transform:translateY(-50%) scale(1.08);}
.global-lightbox-arrow{transform:translateY(-50%);}

.global-lightbox-counter{
  position:absolute;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  padding:8px 18px;
  border-radius:999px;
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:15px;
  font-weight:800;
  z-index:4;
}

[data-lightbox]{cursor:zoom-in;}

/* Skeleton helper for future use */
.skeleton{
  position:relative;
  overflow:hidden;
  background:#eef4fb;
}
.skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);
  animation:skeleton-loading 1.3s infinite;
}
@keyframes skeleton-loading{100%{transform:translateX(100%);}}

@media(max-width:760px){
  .detail-navbox{grid-template-columns:1fr;}
  .global-lightbox{padding:12px;}
  .global-lightbox-close{width:46px;height:46px;font-size:30px;top:12px;right:12px;}
  .global-lightbox-arrow{width:46px;height:46px;font-size:36px;}
  .global-lightbox-prev{left:10px;}
  .global-lightbox-next{right:10px;}
  .global-lightbox-counter{bottom:12px;font-size:13px;}
  .share-box{justify-content:center;}
}
