/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #6976df 0%, #7451aa 100%);
  padding: 4rem 0;
  color: white;
  text-align: center;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Blog Filters */
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
  background: white;
  color: #6976df;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Posts Section */
.blog-posts-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

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

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

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

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(45deg, #6976df, #7451aa);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content {
  padding: 1.5rem;
}

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

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

.blogs-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.blog-excerpt {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more-btn {
  background: linear-gradient(45deg, #6976df, #7451aa);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.share-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #666;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn:hover {
  background: linear-gradient(45deg, #6976df, #7451aa);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
}

/* Loading State */
.blog-loading {
  text-align: center;
  padding: 3rem 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6976df;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 3rem 0;
  color: #666;
}

.no-posts i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

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

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

.pagination-btn {
  background: white;
  border: 2px solid #e9ecef;
  color: #666;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(45deg, #6976df, #7451aa);
  color: white;
  border-color: transparent;
}

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

.pagination-info {
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  border: 2px solid #e9ecef;
  font-weight: 600;
  color: #333;
}

/* Individual Blog Post Page */
.blog-post-main {
  padding: 4rem 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-header {
  position: relative;
  height: 400px;
  overflow: hidden;
}

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

.blog-post-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
}

.blog-post-category {
  display: inline-block;
  background: linear-gradient(45deg, #6976df, #7451aa);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

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

.blog-post-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

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

.blog-post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.blog-post-body h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #333;
}

.blog-post-body h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
  color: #333;
}

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

.blog-post-body img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem 0;
}

.blog-post-body blockquote {
  border-left: 4px solid #6976df;
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

.blog-post-body ul,
.blog-post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

/* Blog Post Footer */
.blog-post-footer {
  padding: 2rem 3rem;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}

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

.blog-post-tags h4 {
  margin-bottom: 1rem;
  color: #333;
}

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

.tag {
  background: #e9ecef;
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background: linear-gradient(45deg, #6976df, #7451aa);
  color: white;
}

.blog-post-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.share-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.share-button.facebook {
  background: #3b5998;
}

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

.share-button.whatsapp {
  background: #25d366;
}

.share-button.telegram {
  background: #0088cc;
}

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

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #6976df, #7451aa);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.back-to-blog:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding: 3rem 0;
  background: #f8f9fa;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-size: 2rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 2rem;
  }

  .blog-hero-subtitle {
    font-size: 1rem;
  }

  .blog-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .filter-btn {
    white-space: nowrap;
  }

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

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

  .blog-post-content {
    padding: 2rem 1.5rem;
  }

  .blog-post-footer {
    padding: 2rem 1.5rem;
  }

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

  .pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .pagination-info {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

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

  .blog-hero-title {
    font-size: 1.8rem;
  }

  .blog-posts-section {
    padding: 2rem 0;
  }

  .blog-card {
    margin-bottom: 1rem;
  }

  .blog-content {
    padding: 1rem;
  }

  .blog-title {
    font-size: 1.1rem;
  }
}
