/* Blog Detail Page Styles */
:root {
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(to right, #7c3aed, #ec4899);
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.breadcrumb-link:hover {
  color: #7c3aed;
  transform: translateX(-4px);
  text-decoration: none;
}

.breadcrumb-link .lucide {
  width: 18px;
  height: 18px;
}

.blog-meta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.blog-category-badge {
  background: var(--gradient);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.blog-date-views {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.blog-date, .blog-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a5b4fc;
  font-size: 1rem;
}

.blog-date .lucide, .blog-views .lucide {
  width: 18px;
  height: 18px;
}

.blog-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 100%;
  overflow-wrap: break-word;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: #d8b4fe;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Blog Content */
.blog-content {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.blog-hero-image {
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-hero-image:hover img {
  transform: scale(1.05);
}

.blog-description {
  color: #d8b4fe;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.blog-description p {
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* Social Sharing */
.blog-social-sharing {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}

.blog-social-sharing h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.social-btn.twitter {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
  color: #fff;
}

.social-btn.linkedin {
  background: linear-gradient(135deg, #0077b5, #005885);
  color: #fff;
}

.social-btn.facebook {
  background: linear-gradient(135deg, #1877f2, #0d5aa7);
  color: #fff;
}

.social-btn.copy {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #fff;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.social-btn.copied {
  background: linear-gradient(135deg, #10b981, #059669);
}

.social-btn .lucide {
  width: 16px;
  height: 16px;
}

/* Blog Sidebar */
.blog-sidebar {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  position: sticky;
  top: 90px;
}

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

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Categories */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: #d8b4fe;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
  text-decoration: none;
  color: #fff;
}

.category-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.1));
  border-color: rgba(124, 58, 237, 0.3);
  color: #fff;
}

.category-name {
  font-weight: 500;
}

.category-count {
  background: rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.recent-post-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.recent-post-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.recent-post-image {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

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

.recent-post-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.1));
  color: #c4b5fd;
  font-size: 1.5rem;
}

.recent-post-content {
  flex: 1;
  min-width: 0;
}

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

.recent-post-title a {
  color: inherit;
  text-decoration: none;
}

.recent-post-title a:hover {
  color: #7c3aed;
  text-decoration: none;
}

.recent-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #a5b4fc;
}

/* Related Posts */
.related-posts-section {
  margin-top: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.related-post-card {
  background: var(--glass);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.12);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.related-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.related-post-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  box-shadow: 0 16px 40px 0 rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.25);
}

.related-post-card:hover::before {
  transform: scaleX(1);
}

.related-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.related-post-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.1));
  color: #c4b5fd;
  font-size: 3rem;
}

.related-post-content {
  padding: 1.5rem;
}

.related-post-category {
  background: var(--gradient);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 1rem;
}

.related-post-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.related-post-description {
  color: #d8b4fe;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.related-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #a5b4fc;
}

/* Blog Navigation */
.blog-navigation {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 3rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: #d8b4fe;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 400px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.nav-link.prev {
  text-align: left;
}

.nav-link.next {
  text-align: right;
  flex-direction: row-reverse;
}

.nav-arrow {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-arrow .lucide {
  width: 20px;
  height: 20px;
  color: #fff;
}

.nav-content {
  flex: 1;
  min-width: 0;
}

.nav-label {
  display: block;
  font-size: 0.8rem;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .related-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 991px) {
  .blog-title {
    font-size: 2.5rem;
  }
  .blog-content {
    padding: 2rem;
  }
  .blog-hero-image {
    height: 300px;
  }
  .blog-sidebar {
    position: static;
    margin-top: 2rem;
  }
  .related-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-title {
    font-size: 2rem;
  }
  .blog-subtitle {
    font-size: 1.1rem;
  }
  .blog-meta-header {
    flex-direction: column;
    gap: 1rem;
  }
  .blog-date-views {
    gap: 1rem;
  }
  .blog-content {
    padding: 1.5rem;
    max-width: 100%;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  .blog-hero-image {
    height: 250px;
  }
  .social-buttons {
    justify-content: center;
  }
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .blog-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-link {
    padding: 1rem;
    max-width: none;
  }
  .nav-arrow {
    width: 35px;
    height: 35px;
  }
  .nav-arrow .lucide {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 576px) {
  .blog-title {
    font-size: 1.8rem;
  }
  .blog-subtitle {
    font-size: 1rem;
  }
  .blog-content {
    padding: 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  .blog-hero-image {
    height: 200px;
  }
  .social-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .social-btn {
    justify-content: center;
  }
  .blog-sidebar {
    padding: 1.5rem;
  }
  .recent-post-item {
    padding: 0.75rem;
  }
  .recent-post-image {
    width: 50px;
    height: 50px;
  }
  .recent-post-title {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .related-post-content {
    padding: 1rem;
  }
  .related-post-title {
    font-size: 1rem;
  }
  .nav-link {
    padding: 0.75rem;
  }
  .nav-arrow {
    width: 30px;
    height: 30px;
  }
  .nav-arrow .lucide {
    width: 16px;
    height: 16px;
  }
  .nav-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 1.6rem;
  }
  .blog-content {
    padding: 0.75rem;
    max-width: 100%;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  .blog-hero-image {
    height: 180px;
  }
  .blog-sidebar {
    padding: 1rem;
  }
  .widget-title {
    font-size: 1.1rem;
  }
  .recent-post-item {
    padding: 0.5rem;
  }
  .recent-post-image {
    width: 45px;
    height: 45px;
  }
  .recent-post-title {
    font-size: 0.85rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .related-post-content {
    padding: 0.75rem;
  }
  .related-post-title {
    font-size: 0.95rem;
  }
  .related-post-description {
    font-size: 0.8rem;
  }
} 