/* Blog Details Section */
.blog-details-section {
  padding: 80px 0;
  background: var(--dark-bg);
}

.blog-details-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
}

.blog-type-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.2);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* Main Article Content */
.blog-article {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 30px;
  padding: 50px;
  transition: all 0.3s ease;
}

.article-header {
  margin-bottom: 35px;
}

.article-category {
  display: inline-block;
  background: rgba(255, 193, 7, 0.2);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.article-header h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 25px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 193, 7, 0.1);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

.meta-icon {
  font-size: 16px;
}

/* Article Image */
.article-image {
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.article-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* Share Section */
.share-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 193, 7, 0.1);
  margin-bottom: 40px;
}

.share-label {
  color: var(--text-light);
  font-weight: 600;
  font-size: 14px;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 193, 7, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.share-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--dark-bg);
}

/* Article Content */
.article-content {
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.9;
}

.lead-text {
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 35px;
  font-weight: 500;
}

.article-content h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin: 50px 0 25px 0;
  line-height: 1.3;
}

.article-content h3 {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  margin: 35px 0 20px 0;
}

.article-content h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 25px 0 15px 0;
}

.article-content p {
  margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
  margin: 25px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.article-content strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Blockquote */
blockquote {
  background: rgba(255, 193, 7, 0.1);
  border-left: 5px solid var(--primary-color);
  padding: 30px 40px;
  margin: 40px 0;
  border-radius: 10px;
}

blockquote p {
  font-size: 20px;
  font-style: italic;
  color: #fff;
  margin-bottom: 15px;
}

blockquote cite {
  color: var(--primary-color);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 40px 0;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 10px;
  font-style: italic;
}

/* Info Box */
.info-box {
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 35px;
  margin: 40px 0;
}

.info-box h4 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 20px;
}

.info-box ul {
  margin: 0;
  padding-left: 25px;
}

.info-box li {
  color: var(--text-light);
  margin-bottom: 12px;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.15) 0%,
    rgba(255, 193, 7, 0.05) 100%
  );
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin: 50px 0;
}

.cta-box h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 15px;
}

.cta-box p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 25px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Article Tags */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 193, 7, 0.1);
  border-bottom: 1px solid rgba(255, 193, 7, 0.1);
  margin: 40px 0;
}

.tags-label {
  color: var(--text-light);
  font-weight: 600;
  font-size: 14px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  border-color: var(--primary-color);
}

/* Author Info */
.author-info {
  display: flex;
  gap: 25px;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 193, 7, 0.2);
  margin-top: 40px;
}

.author-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}

.author-details h4 {
  color: var(--primary-color);
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.author-details h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.author-details p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

/* Comments Section */
.comments-section {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid rgba(255, 193, 7, 0.2);
}

.comments-section h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

.comment-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 193, 7, 0.1);
  transition: all 0.3s ease;
}

.comment-item:hover {
  border-color: rgba(255, 193, 7, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--dark-bg);
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-header h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.comment-date {
  color: var(--text-dim);
  font-size: 13px;
}

.comment-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Comment Form Section */
.comment-form-section {
  margin-top: 50px;
}

.comment-form-section h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

.comment-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 20px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.form-group label {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 15px 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 193, 7, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: var(--text-dim);
  font-size: 12px;
  background: rgba(26, 26, 46, 0.9);
  padding: 2px 8px;
  border-radius: 5px;
}

#submitCommentBtn {
  margin-top: 20px;
  padding: 15px 40px;
}

#submitCommentBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .comment-item {
    flex-direction: column;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .comment-form {
    padding: 25px;
  }
}

/* Related Posts */
.related-posts {
  margin-top: 60px;
}

.related-posts h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 35px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 193, 7, 0.1);
}

.related-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(255, 193, 7, 0.2);
  border-color: var(--primary-color);
}

.related-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.1);
}

.related-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: var(--dark-bg);
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
}

.related-content {
  padding: 25px;
}

.related-content h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.related-content p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 15px;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
}

.widget-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 193, 7, 0.2);
}

/* Search Widget */
.search-widget {
  display: flex;
  gap: 10px;
}

.search-widget input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 25px;
  border: 2px solid rgba(255, 193, 7, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
}

.search-widget input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-widget button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: var(--dark-bg);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-widget button:hover {
  transform: scale(1.1);
}

/* Categories List */
.categories-list {
  list-style: none;
}

.categories-list li {
  margin-bottom: 15px;
}

.categories-list a {
  color: var(--text-light);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.categories-list a:hover {
  background: rgba(255, 193, 7, 0.1);
  color: var(--primary-color);
  padding-left: 20px;
}

.categories-list span {
  color: var(--primary-color);
  font-weight: 600;
}

/* Recent Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  align-items: center;
}

.recent-post-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.recent-post-content h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.recent-post-content span {
  color: var(--text-dim);
  font-size: 12px;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  border-color: var(--primary-color);
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.15) 0%,
    rgba(255, 193, 7, 0.05) 100%
  );
  border: 2px solid var(--primary-color);
  text-align: center;
}

.cta-widget h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 15px;
}

.cta-widget p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta-widget .btn-primary {
  width: 100%;
  padding: 14px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-details-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }

  .article-header h1 {
    font-size: 36px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .blog-details-wrapper {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-article {
    padding: 35px;
  }

  .article-header h1 {
    font-size: 32px;
  }

  .article-image img {
    height: 350px;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-info {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .blog-details-section {
    padding: 20px 0px;
  }
  .blog-article {
    padding: 25px;
  }

  .author-info {
    padding: 20px;
  }

  .article-header h1 {
    font-size: 26px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 26px;
  }

  .article-image img {
    height: 250px;
  }

  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-meta {
    gap: 15px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons a {
    justify-content: center;
    padding: 10px 20px;
  }

  .article-content h3 {
    margin-top: 0px;
  }

  .cta-box {
    padding: 20px;
  }

  .sidebar-widget {
    padding: 20px;
  }

  .sidebar-widget:last-child {
    margin-bottom: 0px;
  }

  .comments-section {
    margin-top: 30px;
    padding-top: 30px;
  }
}
