/* Blog Page Specific Styles - Light Theme */
.blog-hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #EFF6FF 100%);
}

.blog-hero .hero-title .highlight {
  color: #2563EB;
}

/* Search Bar */
.search-container {
  max-width: 500px;
  margin: 0 auto;
}

.search-bar {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
}

#searchInput {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-xl);
  color: #0F172A;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#searchInput::placeholder {
  color: var(--text-muted);
}

#searchInput:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Categories */
.categories-section {
  padding: 2rem 0;
}

.categories-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 2rem;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-tab.active {
  background: #2563EB;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.category-tab:hover:not(.active) {
  background: #e2e8f0;
}

/* Featured Post */
.featured-post {
  padding: 2rem 0 4rem;
}

.featured-card {
  background: white;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.featured-image {
  height: 16rem;
  background: linear-gradient(135deg, #2563EB, #1E40AF);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #2563EB;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.featured-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.meta-icon {
  width: 1rem;
  height: 1rem;
}

.featured-content h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: #0F172A;
}

.featured-content p {
  margin-bottom: 1.5rem;
  color: #64748b;
}

@media (min-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr 1fr;
  }

  .featured-image {
    height: auto;
  }

  .featured-content {
    padding: 3rem;
  }
}

/* Blog Posts Grid */
.blog-posts {
  padding: 2rem 0 4rem;
}

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

.post-card {
  background: white;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.post-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: scale(1.05);
  border-color: #2563EB;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.read-more-hint {
  color: #2563EB;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: 1rem;
}

.post-card:hover .read-more-hint {
  color: #1E40AF;
}

.post-image {
  height: 12rem;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #2563EB;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 1;
}

.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
}

.post-content {
  padding: 1.5rem;
}

.post-content .post-meta {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.post-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #0F172A;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-content p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.read-more:hover {
  color: #1E40AF;
}

/* Newsletter Section */
.newsletter-section {
  background: #f8fafc;
  padding: 4rem 0;
}

.newsletter-card {
  background: linear-gradient(135deg, #2563EB, #1E40AF);
  border-radius: var(--border-radius-xl);
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-card h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: white;
}

.newsletter-card p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

#newsletterEmail {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-xl);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1rem;
}

#newsletterEmail::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#newsletterEmail:focus {
  outline: none;
  border-color: white;
}

.newsletter-form .btn {
  background: white;
  color: #2563EB;
  border-radius: var(--border-radius-xl);
}

.newsletter-form .btn:hover {
  background: #f1f5f9;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }

  #newsletterEmail {
    flex: 1;
  }
}

/* Responsive Design */
@media (max-width: 767px) {
  .blog-hero {
    padding: 2rem 0;
  }

  .categories-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .category-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .newsletter-card {
    padding: 2rem 1.5rem;
  }
}

/* Active Navigation Link */
.nav-link.active {
  color: #2563EB;
  font-weight: 600;
}

/* Blog Detail Page Styles */
.blog-detail-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(241, 245, 249, 1) 100%);
}

.blog-header {
  max-width: 100%;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #94a3b8;
  max-width: 100%;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: #2563EB;
}

.breadcrumb .separator {
  color: #cbd5e1;
}

.breadcrumb .current {
  color: #0F172A;
  font-weight: 500;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.blog-content {
  padding: 2rem 0 4rem;
}

.blog-post {
  max-width: 100%;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0F172A;
}

.post-excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 2rem;
}

.post-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

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

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #0F172A;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2rem 0 1rem;
  color: #0F172A;
}

.post-content h2 {
  font-size: 1.75rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content h4 {
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid #2563EB;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #64748b;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  margin: 1.5rem 0;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.post-tags {
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2563EB;
  color: white;
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

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

.share-label {
  font-weight: 500;
  color: #64748b;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--border-radius-full);
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.share-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

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

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

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

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Blog Sidebar */
.blog-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #0F172A;
}

.related-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-post {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
}

.related-post:hover {
  background: #f1f5f9;
}

.related-post-image {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

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

.related-post-content h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.related-post-content h4 a {
  color: #0F172A;
  text-decoration: none;
  transition: var(--transition);
}

.related-post-content h4 a:hover {
  color: #2563EB;
}

.related-post-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  gap: 1rem;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
}

.category-item:hover,
.category-item.active {
  background: #2563EB;
  color: white;
}

.newsletter-card {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
}

.newsletter-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.newsletter-card p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
}

.newsletter-form .btn {
  background: white;
  color: #2563EB;
  border: none;
  font-weight: 500;
}

.newsletter-form .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
  .blog-sidebar {
    position: static;
    margin-top: 3rem;
  }

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

  .blog-meta {
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .blog-detail-hero {
    padding: 2rem 0 1rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .post-content {
    font-size: 1rem;
  }

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

  .related-post {
    flex-direction: column;
  }

  .related-post-image {
    width: 100%;
    height: 120px;
  }
}

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.no-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0F172A;
}

.no-posts p {
  font-size: 1.125rem;
}
