/* Blog-specific styles */

/* Blog post page styles */
.blog-post {
  padding-top: 80px;
}

.blog-post-header {
  padding: 2rem 0 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #ff6b35;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.separator {
  margin: 0 0.5rem;
}

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

.blog-post-excerpt {
  font-size: 1.2rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.reading-time::before {
  content: "•";
  margin-right: 0.5rem;
}

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

.tag {
  background: #ff6b35;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.featured-image {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.blog-post-content {
  padding: 3rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #374151;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
  color: #1a1a1a;
  font-weight: 600;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.content-wrapper h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #ff6b35;
  padding-bottom: 0.5rem;
}

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

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

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

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

.content-wrapper blockquote {
  border-left: 4px solid #ff6b35;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.content-wrapper code {
  background: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

.content-wrapper pre {
  background: #1a1a1a;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.content-wrapper pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-wrapper a {
  color: #ff6b35;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.content-wrapper a:hover {
  border-bottom-color: #ff6b35;
}

/* Blog CTA section */
.blog-cta {
  background: linear-gradient(135deg, var(--primary-black) 0%, #2d2d2d 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.blog-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.blog-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Insights page styles */
.insights-hero {
  background: linear-gradient(135deg, var(--primary-black) 0%, #2d2d2d 100%);
  color: var(--white);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 80px; /* Account for fixed navbar */
}

.insights-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: white;
}

.insights-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.insights-content {
  padding: 4rem 0;
}

.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #ff6b35;
}

.category-filter select {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.category-filter select:focus {
  outline: none;
  border-color: #ff6b35;
}

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

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.blog-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #ff6b35;
}

.blog-card-excerpt {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-card-tags .tag {
  background: #f1f5f9;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

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

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

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination button {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e9ecef;
  background: white;
  color: #374151;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  border-color: #ff6b35;
  color: #ff6b35;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button.active {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
}

.loading {
  text-align: center;
  padding: 3rem 0;
  color: #6b7280;
}

.error {
  text-align: center;
  padding: 3rem 0;
  color: #dc2626;
}

.no-posts {
  text-align: center;
  padding: 3rem 0;
  color: #6b7280;
}

.no-posts h3 {
  margin-bottom: 1rem;
  color: #374151;
}

/* Responsive design */
@media (max-width: 768px) {
  .blog-post-title {
    font-size: 2rem;
  }
  
  .blog-post-excerpt {
    font-size: 1.1rem;
  }
  
  .content-wrapper {
    font-size: 1rem;
  }
  
  .insights-hero h1 {
    font-size: 2.2rem;
  }
  
  .insights-hero p {
    font-size: 1.1rem;
  }
  
  .insights-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: unset;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}