/* public/assets/css/reference_show.css */

/* Bu sayfayı site.css'ten izole ediyoruz */
.refShow{
  --ref-text:#0f172a;
  --ref-muted:#475569;
  --ref-line:#e5e7eb;
  --ref-card:#ffffff;
  --ref-shadow: 0 18px 50px rgba(0,0,0,.10);
  --ref-radius:22px;

  --ref-darkText:#e5e7eb;
  --ref-darkMuted:#cbd5e1;
}

/* Layout'taki container ile çakışmasın diye wrap max-width */
.refShow.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

/* ===== Breadcrumbs ===== */
.refShow .crumbs{
  color: var(--ref-muted);
  font-size: 13px;
  margin: 8px 0 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.refShow .crumbs a{
  color: rgba(34,197,94,.95);
  font-weight: 800;
  text-decoration:none;
}
.refShow .crumbs a:hover{ text-decoration:underline; }

/* ===== HERO CARD ===== */
.refShow .refHero{
  border-radius: var(--ref-radius);
  overflow:hidden;
  border:1px solid var(--ref-line);
  background: var(--ref-card);
  box-shadow: var(--ref-shadow);
}

/* image area */
.refShow 
.refHeroMedia{
  position:relative;
  height:340px;
  background:#0b1020;
}
.refShow .refHeroImg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.05) contrast(1.05);
}

/* darker bottom fade for readable text if you ever overlay */
.refShow .refHeroOverlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.40) 70%,
    rgba(0,0,0,.62) 100%
  );
}

/* body under image (Burası sende çirkin duran gri bloktu) */
.refShow .refHeroBody{
  padding:16px 16px 18px;
  background:#fff;                 /* ✅ artık gri değil */
  border-top:1px solid var(--ref-line);
}

/* title */
.refShow .refH1{
  font-size:28px;
  font-weight:900;
  margin:0;
  line-height:1.15;
  color: var(--ref-text);
}

/* meta pills row */
.refShow .refMeta{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:13px;
}
.refShow .refPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--ref-line);
  background:#f8fafc;
  color:#0f172a;
}

/* excerpt */
.refShow .refLead{
  margin-top:12px;
  color: var(--ref-muted);
  line-height:1.75;
  font-size:15px;
  max-width: 78ch;
}

/* ===== ARTICLE ===== */
.refShow .refArticle{
  margin-top:16px;
  border:1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  background:#fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.08);
  padding:16px;
}
.refShow .refArticle h2{
  margin:0 0 10px;
  font-size:18px;
  font-weight:900;
  color: var(--ref-text);
}
.refShow .refText{
  color: var(--ref-text);
  line-height:1.85;
  font-size:15px;
}
.refShow .refText p{margin:0 0 12px}

/* ===== GALLERY ===== */
.refShow .refSecTitle{
  margin:18px 0 10px;
  font-size:18px;
  font-weight:900;
  color: var(--ref-text);
}

.refShow .refGallery{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}
.refShow .refG{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--ref-line);
  background:#fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.refShow .refG:hover{
  transform: translateY(-2px);
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
.refShow .refG img{
  width:100%;
  height:170px;
  object-fit:cover;
  display:block;
}

/* ===== ACTIONS ===== */
.refShow .refFooterActions{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.refShow .refBtnGhost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--ref-line);
  background:#fff;
  font-weight:900;
  text-decoration:none;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.refShow .refBtnGhost:hover{
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .refShow 
  .refHeroMedia{height:320px}
  .refShow .refGallery{grid-template-columns:repeat(2, 1fr)}
  .refShow .refH1{font-size:24px}
}

@media (max-width: 520px){
  .refShow .refHeroMedia{height:260px}
  .refShow .refGallery{grid-template-columns:1fr}
}
/* ===== LIGHTBOX ===== */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.lightbox.open{display:flex;}

.lb-img{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}

.lb-close,
.lb-prev,
.lb-next{
  position:absolute;
  background:rgba(255,255,255,.1);
  border:0;
  color:#fff;
  font-size:32px;
  padding:10px 16px;
  border-radius:50%;
  cursor:pointer;
  user-select:none;
}

.lb-close{
  top:20px;
  right:20px;
}

.lb-prev{
  left:20px;
}

.lb-next{
  right:20px;
}

.lb-prev:hover,
.lb-next:hover,
.lb-close:hover{
  background:rgba(255,255,255,.25);
}

@media (max-width:600px){
  .lb-prev,.lb-next{font-size:26px;}
}
