/**
 * Blog Detail Page Styles
 * 
 * @package YL_Extra
 * @since 1.0.0
 */

/* Breadcrumbs */
.page-container-full-w.blog-single {
  padding-left: 4rem;
  padding-right: 4rem;
}

.page-container {
  padding: 0;
}

/* Hero Section */
.yl-blog-detail-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  margin-bottom: 0;
}

/* Breadcrumbs inside hero */
.yl-blog-detail-hero-breadcrumbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 40px;
  background: transparent;
}

.yl-blog-detail-hero-breadcrumbs .breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.yl-blog-detail-hero-breadcrumbs .breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yl-blog-detail-hero-breadcrumbs .breadcrumb-item a,
.yl-blog-detail-hero-breadcrumbs .breadcrumb-item span {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

.yl-blog-detail-hero-breadcrumbs .breadcrumb-item a:hover {
  opacity: 0.8;
}

.yl-blog-detail-hero-breadcrumbs .breadcrumb-item span.active {
  font-weight: 500;
}

.yl-blog-detail-hero-breadcrumbs .breadcrumb-item svg {
  width: 5px;
  height: 9px;
  fill: #fff;
  opacity: 0.8;
}

.yl-blog-detail-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.yl-blog-detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.yl-blog-detail-hero-overlay {
  position: absolute;
  left: 0;
  bottom: 55px;
  width: 65%;
  height: auto;
  min-height: 200px;
  background: #b88917c2; 
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 50px;
  border-radius: 0 40px 0 0; 
}

.yl-blog-detail-hero-content {
  position: relative;
  z-index: 3;
  max-width: 100%;
}

.yl-blog-detail-date {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
  color: #fff;
  opacity: 1;
  font-family: inherit;
}

.yl-blog-detail-title {
  font-size: 56px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  font-family: inherit;
  word-wrap: break-word;
  max-width: 100%;
}

/* Author Information Section */
.yl-blog-detail-author-section {
  background: #f8f3ed;
  padding: 40px;
  margin: 0;
}

.yl-blog-detail-author-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.yl-blog-detail-author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.yl-blog-detail-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.yl-blog-detail-author-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #666;
  font-size: 32px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.yl-blog-detail-author-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yl-blog-detail-author-label {
  font-size: 14px;
  color: #B88917;
  text-transform: none;
  font-weight: 400;
}

.yl-blog-detail-author-name {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
}

.yl-blog-detail-intro {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.yl-blog-detail-intro p {
  margin: 0;
}

/* Entry Content Background */
.entry-content {
  background-image: url('../img/background-blog.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}

/* Content Section */
.yl-blog-detail-content {
  padding: 60px 40px;
  line-height: 1.8;
  color: #333;
  position: relative;
}

.yl-blog-detail-content-wrapper {
  max-width: 850px;
  padding-bottom: 5rem;
  margin: 0 auto;
  position: relative;
}

.yl-blog-detail-content-wrapper p {
  margin-bottom: 1.5em;
  font-size: 16px;
  line-height: 1.8;
}

.yl-blog-detail-content-wrapper h2,
.yl-blog-detail-content-wrapper h3,
.yl-blog-detail-content-wrapper h4 {
  margin-top: 2em;
  margin-bottom: 1em;
  color: #1e1e1e;
  line-height: 1.3;
  font-weight: bold;
}

.yl-blog-detail-content-wrapper h2 {
  font-size: 32px;
}

.yl-blog-detail-content-wrapper h3 {
  font-size: 28px;
}

.yl-blog-detail-content-wrapper h4 {
  font-size: 24px;
}

.yl-blog-detail-content-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
}

.yl-blog-detail-content-wrapper ul,
.yl-blog-detail-content-wrapper ol {
  margin-left: 30px;
  margin-bottom: 1.5em;
}

.yl-blog-detail-content-wrapper li {
  margin-bottom: 0.8em;
}

.yl-blog-detail-not-found {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  background: #f8f3ed;
}

.yl-blog-detail-not-found h2 {
  font-size: 36px;
  color: #1e1e1e;
  margin-bottom: 20px;
}

.yl-blog-detail-not-found p {
  font-size: 18px;
  margin-bottom: 30px;
}

.blog-error {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  background: #f8f3ed;
}

.blog-error h2 {
  font-size: 36px;
  color: #1e1e1e;
  margin-bottom: 20px;
}

.blog-error p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .yl-blog-detail-content-wrapper {
    padding-left: 80px;
  }

  .yl-blog-detail-content-wrapper::before {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .page-container-full-w.blog-single {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .yl-blog-detail-breadcrumb {
    padding: 0 20px;
  }

  .yl-blog-detail-hero-breadcrumbs {
    padding: 15px 20px;
  }

  .yl-blog-detail-hero-breadcrumbs .breadcrumb-item a,
  .yl-blog-detail-hero-breadcrumbs .breadcrumb-item span {
    font-size: 12px;
  }

  .yl-blog-detail-hero {
    height: 400px;
  }

  .yl-blog-detail-hero-overlay {
    width: 80%;
    padding: 30px 25px;
    border-radius: 0 30px 0 0;
    min-height: 180px;
  }

  .yl-blog-detail-title {
    font-size: 36px;
  }

  .yl-blog-detail-author-section {
    padding: 30px 20px;
  }

  .yl-blog-detail-author-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .yl-blog-detail-content {
    padding: 40px 20px;
  }

  .yl-blog-detail-content-wrapper {
    padding-left: 0;
  }

  .yl-blog-detail-content-wrapper::before {
    display: none;
  }

  .yl-blog-detail-content-wrapper h2 {
    font-size: 28px;
  }

  .yl-blog-detail-content-wrapper h3 {
    font-size: 24px;
  }

  .yl-blog-detail-content-wrapper h4 {
    font-size: 20px;
  }

  .page-headline::before {
    background: none;
  }
}

@media (max-width: 480px) {
  .page-container-full-w.blog-single {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .yl-blog-detail-hero-breadcrumbs {
    padding: 12px 15px;
  }

  .yl-blog-detail-hero-breadcrumbs .breadcrumb-item a,
  .yl-blog-detail-hero-breadcrumbs .breadcrumb-item span {
    font-size: 11px;
  }

  .yl-blog-detail-hero {
    height: 300px;
  }

  .yl-blog-detail-hero-overlay {
    width: 85%;
    padding: 30px 20px;
  }

  .yl-blog-detail-title {
    font-size: 28px;
  }

  .yl-blog-detail-author-avatar,
  .yl-blog-detail-author-avatar-placeholder {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .yl-blog-detail-author-name {
    font-size: 18px;
  }

  .yl-blog-detail-intro {
    font-size: 14px;
  }
}

.page-headline > .back-link {
  display: none;
}

/* Related Blogs Section */
.yl-related-blogs-section {
  background: #f8f3ed;
  padding: 60px 50px;
  margin-top: 0;
}

.yl-related-blogs-wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.yl-related-blogs-title {
  font-size: 36px;
  font-weight: bold;
  color: #1e1e1e;
  margin: 0 0 40px 0;
  text-align: left;
}

/* Use same blog card styles from blog-listing.css */
.yl-related-blogs-section .yl-blog-card {
  text-decoration: none;
  color: inherit;
}

.yl-related-blogs-section .yl-blog-card:hover {
  text-decoration: none;
}

/* Responsive Design for Related Blogs */
@media (max-width: 768px) {
  .yl-related-blogs-section {
    padding: 40px 20px;
  }

  .yl-related-blogs-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}