/* Blog Sayfası Modern Tasarım */

/* Ana konteyner */
.blog-container {
  padding: 4rem 0;
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Blog kartları */
.blog-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  margin-bottom: 25px;
}

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

.card-img-container {
  position: relative;
  overflow: hidden;
  height: 220px;
}

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

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

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Blog başlığı */
.blog-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

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

/* Blog özeti */
.blog-card .card-text {
  color: #6c757d;
  margin-bottom: 1.2rem;
  flex-grow: 1;
  line-height: 1.6;
}

/* Meta bilgileri */
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-date {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.blog-date i {
  margin-right: 0.5rem;
  color: #0d6efd;
}

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

.blog-category {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #e9ecef;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-category:hover {
  background-color: #0d6efd;
  color: #fff;
}

.blog-category.active {
  background-color: #0d6efd;
  color: #fff;
}

/* Devamını oku butonu */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: #0d6efd;
  border: 1px solid #0d6efd;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: auto;
  width: fit-content;
}

.blog-read-more:hover {
  background-color: #0d6efd;
  color: #fff;
}

.blog-read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.blog-read-more:hover i {
  transform: translateX(3px);
}

/* Sayfa başlığı */
.blog-page-header {
  margin-bottom: 2.5rem;
}

.blog-page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #212529;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.blog-page-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
}

.blog-page-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Öne çıkan blog yazısı */
.blog-featured {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 400px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.blog-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}

.blog-featured-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-featured-title a {
  color: #fff;
  text-decoration: none;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-featured-date {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
}

.blog-featured-date i {
  margin-right: 0.5rem;
}

.blog-featured-categories {
  display: flex;
  gap: 0.5rem;
}

.blog-featured-category {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-featured-category:hover {
  background-color: #0d6efd;
}

.blog-featured-summary {
  margin-bottom: 1rem;
}

.blog-featured-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.blog-featured-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.blog-featured-link:hover i {
  transform: translateX(3px);
}

/* Sayfalama */
.blog-pagination {
  margin-top: 3rem;
}

.blog-pagination .pagination {
  justify-content: center;
}

.blog-pagination .page-item .page-link {
  border: none;
  color: #495057;
  margin: 0 0.25rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.blog-pagination .page-item.active .page-link {
  background-color: #0d6efd;
  color: #fff;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

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

.sidebar-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  background-color: #fff;
}

.sidebar-card .card-header {
  background-color: #fff;
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
  position: relative;
}

.sidebar-card .card-header h5 {
  font-weight: 600;
  font-size: 1.2rem;
  color: #212529;
  margin-bottom: 0;
}

.sidebar-card .card-body {
  padding: 1rem 1.5rem 1.5rem;
}

/* Kategori listesi */
.category-list li {
  margin-bottom: 0.75rem !important;
}

.category-list li:last-child {
  margin-bottom: 0 !important;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.category-list a:hover {
  background-color: #e9ecef;
  color: #0d6efd;
}

.category-list .badge {
  background-color: #fff;
  color: #495057;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-list a:hover .badge {
  background-color: #0d6efd;
  color: #fff;
}

/* Haber bülteni */
.newsletter-form .form-control {
  border-radius: 50px 0 0 50px;
  padding: 0.75rem 1.25rem;
  border: 1px solid #ced4da;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 0.75rem 1.5rem;
  background-color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 500;
}

/* İlişkili yazılar */
.related-posts {
  margin-top: 3rem;
}

.related-posts-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.related-posts-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #0d6efd;
  border-radius: 1.5px;
}

.related-post-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  margin-bottom: 25px;
}

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

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

.related-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.related-post-title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover {
  color: #0d6efd;
}

.related-post-date {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.related-post-date i {
  margin-right: 0.5rem;
  color: #0d6efd;
}

/* Blog gösterme sayfası */
.blog-post-header {
  margin-bottom: 2.5rem;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
}

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

.blog-post-meta-item {
  display: flex;
  align-items: center;
  color: #6c757d;
  font-size: 0.95rem;
  margin-right: 1.5rem;
}

.blog-post-meta-item i {
  margin-right: 0.5rem;
  color: #0d6efd;
}

.blog-post-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.blog-post-summary {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #0d6efd;
}

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

.blog-post-share {
  margin: 3rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

.blog-post-share-title {
  font-weight: 600;
  margin-right: 1rem;
}

.blog-post-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

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

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

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

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

/* Responsive düzenlemeler */
@media (max-width: 767px) {
  .blog-card .card-img-container {
    height: 200px;
  }

  .blog-page-title {
    font-size: 1.75rem;
  }

  .blog-featured {
    height: 300px;
  }

  .blog-featured-title {
    font-size: 1.5rem;
  }
}

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