/* berita-detail.css */
/* Base styling built on berita.css */

/* Breadcrumb Styles */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb-item {
  color: var(--rich-black-fogra-29);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item:hover {
  color: var(--mango-tango);
}

.breadcrumb-item.active {
  color: var(--mango-tango);
  font-weight: 500;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Article Header */
.article-header {
  margin-bottom: 2rem;
}

.article-category {
  display: inline-block;
  background-color: var(--mango-tango);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--rich-black-fogra-29);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  color: var(--rich-black-fogra-29);
}

.article-info {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.article-date, .article-reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Featured Image */
.article-featured-image {
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  width: 100%;
  height: 630px;
  position: relative;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Article Content */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #343a40;
  margin-bottom: 3rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rich-black-fogra-29);
  margin: 2rem 0 1rem;
}

.article-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image figcaption {
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  color: #495057;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

blockquote {
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-left: 5px solid var(--mango-tango);
  background-color: #fff9f2;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #495057;
  position: relative;
}

blockquote::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--mango-tango);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  font-family: Georgia, serif;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  text-align: right;
}

/* Share Buttons */
.article-share {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.share-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--rich-black-fogra-29);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s;
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.whatsapp {
  background-color: #25d366;
}

.share-button.email {
  background-color: #6c757d;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tags */
.article-tags {
  margin-bottom: 3rem;
}

.tags-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--rich-black-fogra-29);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f1f3f5;
  color: #495057;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tag-item:hover {
  background-color: var(--mango-tango);
  color: white;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.author-bio .author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  flex: 1;
}

.author-details .author-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--rich-black-fogra-29);
}

.author-role {
  color: var(--mango-tango);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.author-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
}

/* Related Articles */
.related-articles {
  margin-bottom: 3rem;
}

.related-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--rich-black-fogra-29);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f3f5;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.related-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-image {
  height: 180px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 1.5rem;
}

.related-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mango-tango);
  margin-bottom: 0.5rem;
}

.related-article-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--rich-black-fogra-29);
}

.read-more-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mango-tango);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.3s;
}

.read-more-link:hover {
  gap: 0.75rem;
}

/* Comments Section */
.comments-section {
  margin-top: 4rem;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--rich-black-fogra-29);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f3f5;
}

.comments-list {
  margin-bottom: 3rem;
}

.comment {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.comment-reply {
  margin-left: 3rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f3f5;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-user {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--rich-black-fogra-29);
  margin: 0;
}

.comment-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1rem;
}

.comment-reply-btn {
  background: none;
  border: none;
  color: var(--mango-tango);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}

.comment-reply-btn:hover {
  color: #e06d24;
  text-decoration: underline;
}

/* Comment Form */
.comment-form-container {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--rich-black-fogra-29);
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--rich-black-fogra-29);
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--mango-tango);
  outline: none;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox input {
  width: auto;
}

.form-checkbox label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.submit-comment {
  background-color: var(--mango-tango);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.submit-comment:hover {
  background-color: #e06d24;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .article-title {
    font-size: 2rem;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .author-bio {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .comment-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .comment {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .comment-reply {
    margin-left: 1.5rem;
  }
  
  .comment-avatar {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .article-title {
    font-size: 1.5rem;
  }
  
  .article-header {
    margin-bottom: 1.5rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  blockquote {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
  
  /* Mobile responsive untuk featured image */
  .article-featured-image {
    height: 250px;
    margin: 1rem 0;
  }
}

/* Tablet responsive untuk featured image */
@media (max-width: 768px) and (min-width: 577px) {
  .article-featured-image {
    height: 400px;
  }
}

/* Desktop kecil responsive untuk featured image */
@media (max-width: 992px) and (min-width: 769px) {
  .article-featured-image {
    height: 500px;
  }
}
