/* ======================================================
   BLOG DETAY — FINAL FULL CSS
====================================================== */

/* ===========================
   ROOT
=========================== */
.blog-detail {
  min-height: 100vh;
  background: #050509;
  color: #f7f4e9;
  padding-bottom: 60px;
}

/* ===========================
   HERO
=========================== */
.blog-detail-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .blog-detail-hero {
    height: 260px;
  }
}

.blog-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.9)
  );
  z-index: 2;
}

.blog-detail-title-wrapper {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: min(1100px, 100%);
  padding-inline: 20px;
  z-index: 3;
}

.blog-detail-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  background: rgba(201, 167, 82, 0.15);
  border: 1px solid rgba(201, 167, 82, 0.4);
  border-radius: 999px;
  color: #e0d2a6;
}

.blog-detail-title {
  margin: 12px 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: #fffaf0;
}

.blog-detail-meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.blog-detail-author {
  color: #c9a752;
  text-decoration: none;
}

.blog-detail-author:hover {
  color: #ebd68f;
}

/* ===========================
   CAROUSEL
=========================== */
.blog-carousel-container,
.blog-carousel,
.blog-slide {
  width: 100%;
  height: 100%;
}

.blog-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

/* ✅ SLIDE'ları tek tek tam genişliğe kilitle */
.blog-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

/* ✅ güvenlik için container overflow */
.blog-carousel-container {
  overflow: hidden;
}

/* ✅ oklar/dots doğru konumlansın */
.blog-carousel-wrapper {
  position: relative;
}

.blog-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-slide img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #222;
  z-index: 5;
}

.carousel-arrow.left {
  left: 12px;
}
.carousel-arrow.right {
  right: 12px;
}

/* dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ===========================
   ACTIONS
=========================== */
.blog-detail-actions {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  background: #0d0d0f;
  border-bottom: 1px solid rgba(201, 167, 82, 0.25);
  position: relative;
  z-index: 10;
  margin-top: 16px;
}

.action-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.action-btn.edit {
  background: #ffd86b;
  color: #000;
}

.action-btn.delete {
  background: #ff4b4b;
  color: #fff;
}

@media (max-width: 768px) {
  .blog-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .action-btn {
    justify-content: center;
    border-radius: 999px;
  }
}

/* ===========================
   LAYOUT
=========================== */
.blog-detail-body {
  width: min(1100px, 100%);
  margin: 40px auto 0;
  padding-inline: 20px;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .blog-detail-body {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   CONTENT
=========================== */
.blog-detail-article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 167, 82, 0.2);
  border-radius: 18px;
  padding: 24px;
}

.blog-detail-content {
  line-height: 1.75;
  font-size: 1.05rem;

  /* ✅ TAŞMA FIX */
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* ===========================
   COMMENTS
=========================== */
.blog-detail-comments {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 167, 82, 0.2);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
}

.comments-title {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 12px 14px;
  margin-bottom: 10px;

  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 167, 82, 0.35);
  border-radius: 10px;

  color: #f7f4e9;
  font-size: 14px;
}

.comment-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #c9a752;
  color: #000;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin-top: 18px;
}

.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.9;
}

.comment-author {
  color: #c9a752;
  text-decoration: none;
}

.comment-content {
  margin-top: 6px;
  line-height: 1.6;

  word-break: break-word;
  overflow-wrap: anywhere;
}

.no-comments {
  opacity: 0.7;
  text-align: center;
  margin-top: 12px;
}

/* =========================
   COMMENT ACTION BUTTONS
========================= */

.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.comment-edit-btn,
.comment-delete-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(201, 167, 82, 0.15);
  color: #e6d08a;
  border: 1px solid rgba(201, 167, 82, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.comment-edit-btn:hover {
  background: #c9a752;
  color: #000;
}

.comment-delete-btn {
  background: rgba(255, 80, 80, 0.12);
  color: #ff8080;
  border-color: rgba(255, 80, 80, 0.4);
}

.comment-delete-btn:hover {
  background: #ff4b4b;
  color: #fff;
}

/* ===========================
   BLOG – ORTAK
=========================== */

.blog-detail {
  padding-top: 10px;
}

.blog-detail-actions {
  display: flex;
  gap: 12px;
  padding: 14px 20px;

  background: #0d0d0f;
  border-bottom: 1px solid rgba(201, 167, 82, 0.25);

  position: relative;
  z-index: 5;

  margin-top: 12px;
  margin-bottom: 8px;
}

.blog-detail-overlay {
  pointer-events: none;
}

/* ===========================
   BLOG – DESKTOP
=========================== */

@media (min-width: 1024px) {
  .blog-detail {
    margin-top: 50px; /* sadece PC */
  }
}
