/* Comic Info Header Section */
.comic-info-header {
  background-image: url(https://khotruyen.ac/wp-content/uploads/2025/06/bgdetail-scaled.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 30px 0 40px;
}

.comic-info-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(2 13 24 / 55%);
  backdrop-filter: blur(5px);
}

.comic-info-header .wrapper {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb-link {
  color: #abb7c4;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.breadcrumb-current {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* Comic Title */
.comic-title {
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

/* Comic Info Content */
.comic-info-content {
  display: grid;
  grid-template-columns: 250px 1fr 200px;
  gap: 30px;
}

/* Comic Cover */
.comic-cover {
  width: 250px;
  height: auto;
  background: #fff;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comic-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

/* Comic Details */
.comic-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Rating */
.comic-rating-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stars {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.stars i {
  font-size: 20px;
  color: #ffd700;
}

.stars i.filled {
  color: #ffd700;
}

.stars i.fa-regular {
  color: rgba(255, 215, 0, 0.3);
}

.rating-number {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-left: 10px;
}

.rating-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.rating-text {
  color: #abb7c4;
  font-size: 13px;
}

/* Info Table */
.comic-info-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
}

.info-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.info-value {
  color: #abb7c4;
  font-size: 14px;
  line-height: 1.6;
}

.genre-tag {
  color: #abb7c4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.genre-tag:hover {
  color: var(--primary-color);
}

/* Action Buttons */
.comic-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-read {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-read:hover {
  background: transparent;
  color: var(--primary-color);
}

.btn-latest {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-latest:hover {
  background: var(--primary-color);
  color: white;
}

/* Comic Meta */
.comic-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meta-item {
  display: flex;
  gap: 15px;
}

.meta-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.meta-value {
  color: #fff;
  font-size: 14px;
}

.status-ongoing {
  color: #bebebe;
}

/* Bookmark Action */
.bookmark-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.bookmark-btn {
  font-size: 40px;
  cursor: pointer;
  background: no-repeat;
  border: none;
  color: var(--primary-color);
}

.bookmark-action-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bookmark-btn:hover {
  color: #fff;
}

.bookmark-text {
  color: #abb7c4;
  font-size: 13px;
  text-align: center;
}

/* Responsive */
@media (max-width: 820px) {
  .comic-info-header {
    padding: 25px 0 30px;
  }

  .comic-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .comic-info-content {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .comic-cover {
    width: 200px;
  }

  .comic-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .bookmark-action {
    margin-top: 0;
  }

  .info-row {
    grid-template-columns: 100px 1fr;
    gap: 15px;
  }

  .info-label {
    font-size: 13px;
  }

  .info-value {
    font-size: 13px;
  }

  .stars i {
    font-size: 18px;
  }

  .rating-number {
    font-size: 20px;
  }

  .action-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .comic-info-header {
    padding: 20px 0 25px;
  }

  .breadcrumb {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .comic-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .comic-info-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comic-cover {
    width: 180px;
    margin: 0 auto;
  }

  .comic-details {
    gap: 20px;
  }

  .info-row {
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }

  .info-label {
    font-size: 12px;
  }

  .info-value {
    font-size: 12px;
  }

  .stars i {
    font-size: 16px;
  }

  .rating-number {
    font-size: 18px;
  }

  .rating-text {
    font-size: 12px;
  }

  .comic-actions {
    flex-direction: column;
    gap: 10px;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
  }

  .comic-meta {
    flex-direction: row;
    justify-content: space-around;
    padding-top: 15px;
  }

  .meta-label {
    font-size: 13px;
  }

  .meta-value {
    font-size: 14px;
  }

  .bookmark-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .bookmark-text {
    font-size: 12px;
  }
}

/* Comic Info Content Container */
.comic-info-main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 40px;
}

/* Section Title */
.section-title-info-content,
.section-title-chap-list {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  position: relative;
}

.section-title-info-content::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 155px;
  height: 3px;
  background: var(--line-title-section-color);
}

.section-title-chap-list::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 180px;
  height: 3px;
  background: var(--line-title-section-color);
}

/* Comic Info Description */
.description-content {
  color: #abb7c4;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  padding-bottom: 25px;
}

.description-content::after {
  content: "";
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0);
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(255, 255, 255, 0)),
    to(#ffffff)
  );
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), #ffffff);
  background: -moz-linear-gradient(top, rgba(255, 255, 255, 0), #ffffff);
  background: -ms-linear-gradient(top, rgba(255, 255, 255, 0), #ffffff);
  background: -o-linear-gradient(top, rgba(255, 255, 255, 0), #ffffff);
  position: absolute;
  bottom: 0;
  height: 30px;
  opacity: 1;
  -webkit-transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
  pointer-events: none;
}

.description-content p {
  margin: 0;
}

.description-content strong {
  color: #fff;
  font-weight: 600;
}

/* Comic Info Chapter List */
.description-content {
  color: #abb7c4;
  font-size: 14px;
  line-height: 1.8;
}

.description-content p {
  margin: 0;
}

.description-content strong {
  color: #fff;
  font-weight: 600;
}

/* Comic Info Chapter List */
.comic-info-list-chap {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sort-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sort-btn:hover {
  color: white;
}

/* Chapter List */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 600px;
  overflow-y: auto;
}

/* Custom Scrollbar */
.chapter-list::-webkit-scrollbar {
  width: 5px;
}

.chapter-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  min-height: 20px;
}

.chapter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.chapter-item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin-right: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--primary-color);
  position: relative;
}

.chapter-item-info:nth-child(2) {
  border-right: none;
}

.chapter-item-info:hover::before {
  opacity: 1;
}

.chapter-name-info {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.chapter-item-info:hover .chapter-name-info {
  color: var(--primary-color);
}

.chapter-date {
  color: #abb7c4;
  font-size: 13px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 820px) {
  .section-title-info-content,
  .section-title-chap-list {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .description-content {
    font-size: 13px;
  }

  .chapter-list {
    max-height: 500px;
    padding-right: 8px;
  }

  .chapter-item-info {
    padding: 12px 15px;
  }

  .chapter-name-info {
    font-size: 13px;
  }

  .chapter-date {
    font-size: 12px;
  }

  .section-title-chap-list::before {
    width: 160px;
  }

  .section-title-info-content::after {
    width: 140px;
  }
}

@media (max-width: 430px) {
  .wrapper > .comic-info-content {
    gap: 20px;
    margin-top: 20px;
  }

  .section-title-info-content,
  .section-title-chap-list {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .description-content {
    font-size: 13px;
    line-height: 1.7;
  }

  .chapter-header {
    margin-bottom: 15px;
  }

  .sort-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .chapter-list {
    max-height: 400px;
    padding-right: 5px;
  }

  .chapter-list::-webkit-scrollbar {
    width: 4px;
  }

  .chapter-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .chapter-item-info {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
  }

  .chapter-item-info:last-child {
    border-bottom: none;
  }

  .chapter-name-info {
    font-size: 13px;
  }

  .chapter-date {
    font-size: 12px;
  }

  .section-title-chap-list::before {
    width: 150px;
  }

  .section-title-info-content::after {
    width: 130px;
  }
}

/* Comic Info Footer Section */
.comic-info-footer,
.comic-detail-footer {
  padding: 40px 0;
}

.section-title-footer {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 30px 0;
  padding-bottom: 15px;
  position: relative;
}

.section-title-footer::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 273px;
  height: 3px;
  background: var(--line-title-section-color);
}

.related-comics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.related-comic-item {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.related-comic-image {
  position: relative;
  width: 100%;
  padding-bottom: 140%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.related-comic-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-comic-item:hover .related-comic-image img {
  transform: scale(1.05);
}

.related-comic-info {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.related-comic-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.related-comic-item:hover .related-comic-title {
  color: var(--primary-color);
}

.related-comic-date {
  color: #abb7c4;
  font-size: 12px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
  .related-comics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

@media (max-width: 820px) {
  .comic-info-footer {
    padding: 40px 0;
  }

  .section-title-footer {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .related-comics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .related-comic-title {
    font-size: 13px;
  }

  .related-comic-date {
    font-size: 11px;
  }

  .section-title-footer::before {
    width: 240px;
  }
}

@media (max-width: 430px) {
  .comic-info-footer {
    padding: 30px 0;
  }

  .section-title-footer {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .related-comics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .related-comic-title {
    font-size: 12px;
  }

  .related-comic-date {
    font-size: 11px;
  }

  .section-title-footer::before {
    width: 230px;
  }
}
