/* ========== GLOBAL RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  font-family: "Inter", sans-serif;
}

::selection {
  background: #ffcc00;
  color: #000;
}

html,
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: #f6f6f6;
  color: #000;
}

/* ========== BLOG DETAIL HERO ========== */
.blog-detail-hero {
  padding-top: 170px;
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
}

.blog-detail-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 80vh;
  display: grid;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
}

.blog-detail-background {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  display: grid;
  grid-template-columns: 7fr 10fr;
  min-height: 80vh;
  max-height: 80vh;
}

.blog-detail-background-plain {
  background-color: #211e1e;
  width: 100%;
  height: 100%;
}

.blog-detail-background-image {
  width: 100%;
  height: 100%;
}

.blog-detail-background-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.blog-detail-content {
  grid-row: 1 / 1;
  grid-column: 1 / 1;
  z-index: 2;
  margin-left: 7%;
  margin-right: 53%;
  background-color: #efefef;
  height: 60vh;
  padding: 3%;
  padding-top: 2%;
}

.blog-detail-title {
  font-size: 28px;
  margin-top: 20px;
  font-weight: 600;
  color: #000;
}

.blog-detail-date {
  color: #ffde59;
  background-color: rgba(0, 0, 0, 0.81);
  display: inline-block;
  padding: 2% 3%;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

.blog-detail-description {
  max-width: 90%;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 400;
  color: #000;
}

.blog-detail-actions {
  margin-top: 5vh;
  margin-bottom: 5vh;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.back-to-blogs,
.create-new-blog {
  display: flex;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.back-to-blogs:hover,
.create-new-blog:hover {
  background-color: #ffde59;
  transform: translateY(-2px);
}

/* ========== BLOG CONTENT SECTION ========== */
.blog-content-section {
  padding: 60px 10%;
  width: 100%;
  margin-bottom: 80px;
}

.blog-content-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-content-text {
  color: #333;
  font-size: 18px;
  line-height: 1.8;
}

.blog-content-text h1,
.blog-content-text h2,
.blog-content-text h3,
.blog-content-text h4,
.blog-content-text h5,
.blog-content-text h6 {
  color: #000;
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.blog-content-text p {
  margin-bottom: 20px;
}

.blog-content-text ul,
.blog-content-text ol {
  margin: 20px 0;
  padding-left: 30px;
}

.blog-content-text li {
  margin-bottom: 10px;
}

/* ========== RELATED POSTS ========== */
.related-posts-section {
  padding: 0 10%;
  margin-bottom: 80px;
}

.related-posts-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.related-posts-title {
  font-size: 28px;
  color: #000;
  margin-bottom: 30px;
  font-weight: 600;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-post-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content {
  padding: 20px;
}

.related-post-title {
  font-size: 18px;
  color: #000;
  margin-bottom: 10px;
  font-weight: 600;
}

.related-post-excerpt {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.related-post-link {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.related-post-link:hover {
  color: #ffde59;
}

/* ========== DELETE BLOG BUTTON ========== */
.delete-blog-btn {
  display: flex;
  color: #fff;
  background-color: #dc2626;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-blog-btn:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
}

/* ========== DELETE MODAL ========== */
.delete-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.delete-modal-content {
  background-color: #fff;
  margin: 10% auto;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.delete-modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-modal-header h3 {
  color: #dc2626;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.delete-modal-close {
  color: #9ca3af;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.delete-modal-close:hover {
  color: #374151;
}

.delete-modal-body {
  padding: 30px;
}

.delete-modal-body p {
  margin-bottom: 15px;
  color: #374151;
  font-size: 16px;
}

.delete-warning {
  color: #dc2626;
  font-weight: 500;
  font-size: 14px !important;
}

.delete-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.delete-cancel-btn {
  padding: 10px 20px;
  border: 2px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-cancel-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

.delete-confirm-btn {
  padding: 10px 20px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delete-confirm-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (min-width: 1600px) and (max-width: 1920px) {
  .blog-detail-title {
    font-size: 32px;
    margin-top: 40px;
  }
  .blog-detail-date {
    font-size: 20px;
  }
  .blog-detail-description {
    font-size: 24px;
    margin-top: 40px;
  }
  .back-to-blogs,
  .create-new-blog {
    font-size: 18px;
  }
  .blog-content-text {
    font-size: 20px;
  }
  .related-posts-title {
    font-size: 32px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .blog-detail-content {
    margin-top: 20px;
    margin-right: 20%;
    padding: 5%;
  }
}

@media only screen and (max-width: 767px) {
  .blog-detail-content {
    margin-right: 7%;
    padding: 5%;
  }
  .blog-detail-title {
    font-size: 20px;
  }
  .blog-detail-date {
    font-size: 16px;
  }
  .blog-detail-description {
    font-size: 18px;
  }
  .blog-detail-actions {
    margin-top: 20px;
    margin-bottom: 20px;
    flex-direction: column;
  }
  .back-to-blogs,
  .create-new-blog {
    font-size: 14px;
    justify-content: center;
  }
  .blog-content-container {
    padding: 30px 20px;
  }
  .blog-content-text {
    font-size: 16px;
  }
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 480px) {
  .blog-detail-hero,
  .blog-content-section,
  .related-posts-section {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .blog-detail-title {
    font-size: 18px;
  }
  .blog-detail-description {
    font-size: 16px;
  }
  .blog-content-container {
    padding: 20px;
  }
  .related-posts-container {
    padding: 20px;
  }
}

/* ========== RESPONSIVE UPDATES ========== */
@media only screen and (max-width: 767px) {
  .blog-detail-actions {
    margin-top: 20px;
    margin-bottom: 20px;
    flex-direction: column;
  }
  .back-to-blogs,
  .create-new-blog,
  .delete-blog-btn {
    font-size: 14px;
    justify-content: center;
  }
}

/* ========== END OF FILE ========== */
