/* Katkı Yap! - Blog & Rehber Stilleri (Sidebar Layout Standardı) */

.blog-section {
  padding: 40px 0 72px;
}

.blog-header-banner {
  margin-bottom: 32px;
  text-align: left;
}

.blog-header-banner .section-mini-label {
  display: inline-block;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.blog-header-banner h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 850;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.blog-header-banner p {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.6;
  max-width: 720px;
  margin: 0;
}

/* 2D CSS Grid Layout */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 991px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.blog-main-content {
  min-width: 0;
}

/* Sidebar & Sticky Behavior */
.blog-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

/* Sidebar Widgets */
.blog-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.blog-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.blog-widget-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  letter-spacing: -0.01em;
}

.blog-widget-title svg {
  color: #2563eb;
  flex-shrink: 0;
}

/* Search Box */
.blog-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.blog-search-input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  background: #f8fafc;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.blog-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.blog-search-btn {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.blog-search-btn:hover {
  background: #1d4ed8;
  transform: scale(1.02);
}

/* Categories Widget */
.blog-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-cat-item {
  margin: 0;
}

.blog-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: transparent;
  transition: all 0.18s ease;
}

.blog-cat-link:hover {
  background: #f8fafc;
  color: #0f172a;
  padding-left: 15px;
}

.blog-cat-link.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 750;
  border-left: 3px solid #2563eb;
}

.blog-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.blog-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.blog-cat-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-cat-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}

.blog-cat-link.active .blog-cat-pill {
  background: #dbeafe;
  color: #1e40af;
}

/* Popular Posts Widget */
.blog-popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.blog-popular-item:hover {
  background: #f8fafc;
}

.blog-popular-thumb {
  width: 68px;
  height: 50px;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

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

.blog-popular-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
}

.blog-popular-meta {
  flex: 1;
  min-width: 0;
}

.blog-popular-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  transition: color 0.15s ease;
}

.blog-popular-item:hover .blog-popular-title {
  color: #2563eb;
}

.blog-popular-date {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Promotional CTA Widget */
.blog-widget-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border: none;
  border-radius: 16px;
  padding: 22px 18px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
}

.blog-widget-cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #ffffff;
}

.blog-widget-cta h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}

.blog-widget-cta p {
  font-size: 12.5px;
  color: #dbeafe;
  line-height: 1.5;
  margin: 0 0 14px;
}

.blog-widget-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 38px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 12.5px;
  font-weight: 750;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, background 0.15s ease;
}

.blog-widget-cta .btn-cta:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

/* Blog Listing Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

@media (max-width: 640px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
}

.blog-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.blog-post-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

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

.blog-post-card:hover .blog-post-cover img {
  transform: scale(1.03);
}

.blog-post-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.blog-post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-post-title {
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.4;
}

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

.blog-post-title a:hover {
  color: #2563eb;
}

.blog-post-summary {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.blog-post-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-post-readmore {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s ease;
}

.blog-post-card:hover .blog-post-readmore {
  gap: 8px;
}

/* Filter Active Bar */
.blog-filter-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.blog-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.blog-filter-tag strong {
  color: #0f172a;
}

.blog-filter-clear {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fef2f2;
}

.blog-filter-clear:hover {
  background: #fee2e2;
}

/* Blog Detail Page */
.blog-breadcrumb {
  margin-bottom: 20px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-breadcrumb a:hover {
  color: #2563eb;
}

.blog-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.blog-detail-inner {
  padding: clamp(24px, 4vw, 44px);
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: #64748b;
}

.blog-detail-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 850;
  color: #0f172a;
  line-height: 1.28;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.blog-lead {
  font-size: 16.5px;
  color: #334155;
  line-height: 1.68;
  font-weight: 500;
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.blog-detail-media {
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}

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

/* Prose Typography */
.prose-content {
  font-size: 16px;
  color: #1e293b;
  line-height: 1.82;
}

.prose-content h2 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  color: #0f172a;
  margin: 36px 0 16px;
  line-height: 1.35;
}

.prose-content h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 750;
  color: #1e293b;
  margin: 28px 0 12px;
  line-height: 1.4;
}

.prose-content p {
  margin: 0 0 20px;
}

.prose-content ul, .prose-content ol {
  margin: 0 0 24px 20px;
  padding-left: 10px;
}

.prose-content li {
  margin-bottom: 8px;
}

.prose-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #334155;
  font-size: 16.5px;
}

.prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.prose-content table th, .prose-content table td {
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  text-align: left;
}

.prose-content table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

/* Share Bar */
.blog-share-card {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-share-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.blog-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-share:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

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

.btn-share-whatsapp:hover {
  background: #20ba59;
  color: #ffffff;
}

.btn-share-twitter {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-share-twitter:hover {
  background: #1e293b;
  color: #ffffff;
}

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

.btn-share-facebook:hover {
  background: #0c63d4;
  color: #ffffff;
}

/* Author Box */
.blog-author-box {
  margin-top: 32px;
  padding: 20px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
  flex-shrink: 0;
}

.blog-author-info strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 2px;
}

.blog-author-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Related Posts Section */
.blog-related-section {
  margin-top: 48px;
}

.blog-related-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 20px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
