/* ============================================
   Modern Blog Styles
   ============================================ */

/* Blog List - Modern Cards */
.blog-list-modern {
  margin-bottom: 2rem;
}

.blog-card-modern {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-card-modern__image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.blog-card-modern__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-modern:hover .blog-card-modern__image img {
  transform: scale(1.1);
}

.badge-external {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.blog-card-modern__date {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.blog-card-modern__content {
  padding: 2rem;
}

.blog-card-modern__meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.blog-card-modern__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card-modern__meta i {
  font-size: 1rem;
}

.blog-card-modern__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card-modern__title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-modern__title a:hover {
  color: #007bff;
}

.blog-card-modern__excerpt {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-card-modern__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-badge {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.tag-badge:hover {
  background: rgba(0, 123, 255, 0.3);
  color: #fff;
}

.read-more {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 0.8rem;
}

/* Pagination Modern */
.pagination-modern .pagination {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pagination-modern .page-link {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 18px;
  transition: all 0.3s ease;
}

.pagination-modern .page-link:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination-modern .page-item.active .page-link {
  background: #007bff;
  border-color: #007bff;
}

.pagination-modern .page-item.disabled .page-link {
  background: #0d0d0d;
  border-color: rgba(255, 255, 255, 0.05);
  color: #555;
}

/* Sidebar Modern */
.blog-sidebar-modern {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  position: relative;
  padding-bottom: 0.8rem;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  border-radius: 2px;
}

/* Search Widget */
.search-form .input-group {
  border-radius: 25px;
  overflow: hidden;
}

.search-form .form-control {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
}

.search-form .form-control:focus {
  background: #0d0d0d;
  border-color: #007bff;
  color: #fff;
  box-shadow: none;
}

.search-form .btn {
  padding: 12px 25px;
}

/* Tags Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-item {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tag-item:hover {
  background: rgba(0, 123, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* Categories Widget */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.8rem;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.category-list a:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  padding-left: 20px;
}

.category-list i {
  margin-right: 0.5rem;
}

.category-list .count {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Newsletter Widget */
.newsletter-widget p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.newsletter-form .form-control {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
}

.newsletter-form .form-control:focus {
  background: #0d0d0d;
  border-color: #007bff;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.newsletter-form .btn {
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
}

/* ============================================
   Blog Detail Styles
   ============================================ */

/* Blog Hero */
.blog-hero-section {
  padding: 100px 0 50px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 25px;
  margin-bottom: 2rem;
}

.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #ccc;
}

.article-header {
  text-align: left;
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #007bff;
}

.author-name {
  font-weight: 700;
  color: #fff;
  display: block;
}

.meta-details {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #888;
  align-items: center;
}

.meta-details i {
  margin-right: 0.3rem;
}

.separator {
  color: #444;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-badge-detail {
  background: rgba(0, 123, 255, 0.15);
  color: #007bff;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-badge-detail:hover {
  background: rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

.article-featured-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Body */
.blog-content-modern {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body {
  color: #ddd;
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-footer {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.last-updated {
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
}

/* Share Section */
.share-section h5 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.linkedin {
  background: #0077b5;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.email {
  background: #ea4335;
}

.share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Comments Section */
.comments-section {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.comments-list {
  margin-top: 1.5rem;
}

.comment-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

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

.comment-avatar {
  font-size: 3rem;
  color: #007bff;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.comment-author {
  font-weight: 700;
  color: #fff;
}

.comment-date {
  font-size: 0.85rem;
  color: #888;
}

.comment-message {
  color: #ccc;
  line-height: 1.6;
  margin: 0;
}

.no-comments {
  text-align: center;
  padding: 3rem;
  color: #888;
}

.no-comments i {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.3;
}

/* Comment Form */
.comment-form-section {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-form-modern .form-label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-form-modern .input-group-text {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}

.comment-form-modern .form-control {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
}

.comment-form-modern .form-control:focus {
  background: #0d0d0d;
  border-color: #007bff;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.comment-form-modern textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Detail Sidebar */
.blog-sidebar-detail {
  position: sticky;
  top: 100px;
}

.author-widget .author-card {
  text-align: center;
}

.author-card-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid #007bff;
  display: block;
}

.author-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.author-card-title {
  color: #007bff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.author-card-bio {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.author-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.author-social a:hover {
  background: #007bff;
  color: #fff;
  transform: translateY(-3px);
}

/* Recent Posts Widget */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-post-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 123, 255, 0.3);
  transform: translateX(5px);
}

.recent-post-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

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

.recent-post-content {
  flex: 1;
}

.recent-post-content h6 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.recent-post-content time {
  color: #888;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  .blog-sidebar-modern,
  .blog-sidebar-detail {
    position: static;
  }

  .blog-card-modern__image {
    height: 200px;
  }

  .article-title {
    font-size: 2rem;
  }

  .blog-content-modern {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .blog-card-modern__content {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .meta-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .blog-content-modern {
    padding: 1.5rem;
  }

  .comments-section,
  .comment-form-section {
    padding: 1.5rem;
  }

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