/* ===============================
   BLOG (Vishnu Dijital) - eklenti
   =============================== */

.blog-page {
  padding-top: 110px; /* fixed header space */
  background: #f5f5f7;
  min-height: 100vh;
}

.blog-container {
  width: 92%;
  max-width: 1300px;
  margin: 0 auto;
}

.blog-hero {
  padding: 60px 0 28px;
  background: radial-gradient(
      1200px 400px at 20% 20%,
      rgba(74, 87, 245, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 320px at 80% 40%,
      rgba(245, 242, 74, 0.28),
      transparent 55%
    ),
    linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  color: #fff;
}

.blog-hero h1 {
  font-size: clamp(32px, 4vw, 56px);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.blog-hero p {
  margin: 0;
  max-width: 850px;
  font-size: clamp(14px, 1.2vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.blog-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: min(560px, 100%);
}

.blog-search i {
  opacity: 0.85;
}

.blog-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  width: 100%;
  font-size: 14px;
}

.blog-search input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

/* Categories */
.blog-categories {
  padding: 18px 0 8px;
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-pill {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.blog-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(74, 87, 245, 0.35);
}

.blog-pill.is-active {
  background: rgba(74, 87, 245, 0.12);
  border-color: rgba(74, 87, 245, 0.45);
}

/* List head */
.blog-list {
  padding: 18px 0 70px;
}

.blog-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}

.blog-list__head h2 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.01em;
}

.blog-count {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.62);
}

/* Cards grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.1);
}

.blog-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    135deg,
    rgba(74, 87, 245, 0.2),
    rgba(245, 242, 74, 0.18)
  );
}

.blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}

.blog-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.blog-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0b0b0b;
  line-height: 1.25;
}

.blog-excerpt {
  margin: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.74);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  padding: 0 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.blog-more {
  text-decoration: none;
  font-weight: 800;
  color: #4a57f5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.blog-more i {
  transition: transform 0.2s ease;
}

.blog-more:hover i {
  transform: translateX(4px);
}

.blog-tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

/* Empty state */
.blog-empty {
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  padding: 22px;
  margin-top: 18px;
}

/* ===== Blog Detail ===== */
.post-wrap {
  padding: 24px 0 70px;
}

.post-hero {
  margin-top: 18px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
}

.post-cover {
  aspect-ratio: 16 / 7;
  background: linear-gradient(
    135deg,
    rgba(74, 87, 245, 0.2),
    rgba(245, 242, 74, 0.18)
  );
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-head {
  padding: 18px 18px 14px;
}

.post-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.post-back {
  text-decoration: none;
  font-weight: 800;
  color: #4a57f5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-back:hover i {
  transform: translateX(-2px);
}

.post-title {
  margin: 10px 0 8px;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.02em;
}

.post-meta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.post-body {
  padding: 0 18px 18px;
}

.post-content {
  color: rgba(0, 0, 0, 0.78);
  line-height: 1.85;
  font-size: 16px;
}

.post-content h2 {
  color: #111;
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.post-content ul {
  margin: 10px 0 16px 18px;
}

.post-content li {
  margin: 6px 0;
}

.post-related {
  margin-top: 18px;
}

.post-related h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* responsive */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-page {
    padding-top: 96px;
  }
  .blog-hero {
    padding: 44px 0 22px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .blog-category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .blog-category-pills::-webkit-scrollbar {
    height: 6px;
  }
  .blog-category-pills::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
  }
}

/* ===============================
   BLOG HEADER (sadece blog sayfaları)
   =============================== */
.blog-nav {
  justify-content: flex-start;
  padding: 0 24px;
}

.blog-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-nav .blog-nav-logo img {
  height: 54px;
}

.blog-nav-title {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-nav-title:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===============================
   BLOG FOOTER (sadece blog sayfaları)
   =============================== */
.blog-footer {
  background: radial-gradient(
      1200px 400px at 20% 20%,
      rgba(74, 87, 245, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 320px at 80% 40%,
      rgba(245, 242, 74, 0.28),
      transparent 55%
    ),
    linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.blog-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
}

.blog-footer__brand img {
  height: 74px;
}

.blog-footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.blog-footer__links a:hover {
  color: #fff;
}

.blog-footer__copy {
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===============================
   BLOG MODE: Header + Hero uyumu
   =============================== */
.blog-mode .main-nav {
  height: 72px;
  padding: 0 24px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-mode .logo img {
  height: 150px; /* blog sayfasında daha temiz */
}

/* Blog sayfasında menüleri gizle */
.blog-mode .nav-menu,
.blog-mode .menu-toggle {
  display: none !important;
}

/* Ana sayfaya dön butonu */
.blog-home-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: #fff;

  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.blog-home-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Header ile hero arasındaki beyaz boşluğu kaldır */
.blog-page {
  padding-top: 0; /* eskisi 110px idi */
}

/* Hero’yu header altında okunur başlat */
.blog-hero {
  padding-top: 130px; /* 72px header + nefes alanı */
}

.footer-top-blog {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-blog {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobil */
@media (max-width: 600px) {
  .blog-mode .main-nav {
    padding: 0 16px;
    height: 68px;
  }
  .blog-mode .logo img {
    height: 56px;
  }
  .blog-hero {
    padding-top: 120px;
  }
}

.post-content h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.post-content p {
  margin: 0 0 14px;
  line-height: 1.75;
}

.post-content ol {
  margin: 10px 0 16px 18px;
  padding: 0;
}

.post-content blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid rgba(74, 87, 245, 0.6);
  background: rgba(74, 87, 245, 0.08);
  border-radius: 12px;
}
