/* Blog sayfası özgü stiller */

.blog-page {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #f8fafc 100%);
  min-height: 100vh;
  padding: 140px 0 40px;
  position: relative;
  overflow: hidden;
}

.blog-page::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -220px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 65%);
  pointer-events: none;
}

.blog-page::after {
  content: "";
  position: absolute;
  top: 240px;
  left: -180px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0) 70%);
  pointer-events: none;
}

.blog-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 36px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.blog-hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-hero .ui-title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #0f172a;
  margin: 0;
}

.blog-hero .ui-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: #374151;
  margin: 0;
  max-width: 560px;
}

.blog-hero .blog-search {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  width: 100%;
}

.blog-card.is-hidden {
  display: none;
}

.blog-empty {
  display: none;
  grid-column: 1 / -1;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px dashed #cbd5f5;
  background: #f8fafc;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.blog-empty.is-visible {
  display: block;
}

.blog-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.blog-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 50%, #0ea5e9 100%);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  border-color: #c7d2fe;
}

.blog-thumb {
  width: 100%;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

.blog-card h3 {
  font-size: 19px;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.blog-card p {
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.blog-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.blog-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15,23,42,0.22);
  background: #111827;
}

.blog-layout {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 1.1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

.blog-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 140px;
}

.blog-search label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.search-box {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 6px;
}

.search-box input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.search-box input:focus {
  box-shadow: none;
}

.search-box button {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15,23,42,0.18);
  background: #111827;
}

.blog-widget h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.blog-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-widget a {
  text-decoration: none;
  color: #374151;
  font-size: 14px;
}

.blog-widget a:hover {
  color: #111827;
  text-decoration: underline;
}

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

  .blog-sidebar {
    order: -1;
    position: static;
  }
}

@media (max-width: 900px) {
  .blog-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .blog-hero .ui-desc {
    max-width: none;
  }

  .blog-hero .blog-search {
    margin-top: 8px;
  }
}
