/* ============================================================
   MEXSAN — Katalog & Blog stilleri
   ============================================================ */

/* ---------- Katalog ---------- */
.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.catalog-info { display: flex; align-items: center; gap: 16px; }
.catalog-info .ic {
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 15px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--red-600), var(--red-400));
  box-shadow: 0 10px 22px rgba(176, 31, 36, 0.28);
}
.catalog-info .ic svg { width: 26px; height: 26px; }
.catalog-info b { display: block; font-size: 16px; color: var(--navy-800); }
.catalog-info span { font-size: 13.5px; color: var(--ink-600); }
.catalog-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.catalog-actions .btn { padding: 13px 24px; font-size: 14px; }

.catalog-viewer {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #525659;
}
.catalog-viewer iframe { display: block; width: 100%; height: min(85vh, 1100px); border: 0; }
.catalog-fallback {
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  background: var(--navy-800);
}
.catalog-fallback a { color: var(--red-400); font-weight: 700; }

/* ---------- Blog listesi ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.blog-media { position: relative; display: block; height: 220px; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .blog-media img { transform: scale(1.07); }
.blog-date {
  position: absolute;
  left: 18px; bottom: 18px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(5, 15, 36, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.blog-date b { font-size: 20px; color: var(--red-400); }
.blog-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-body h2 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.blog-body h2 a { color: var(--navy-800); transition: color 0.2s; }
.blog-body h2 a:hover { color: var(--red-600); }
.blog-body p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--ink-600); flex: 1; }
.blog-body .service-link { color: var(--red-600); margin-top: 18px; }

.blog-empty { text-align: center; padding: 60px 20px; color: var(--ink-600); }
.blog-empty b { display: block; font-size: 20px; color: var(--navy-800); margin-bottom: 8px; }

/* ---------- Sayfalama ---------- */
.blog-pagination { margin-top: 50px; display: flex; justify-content: center; }
.pager { display: flex; align-items: center; gap: 8px; }
.pager-btn {
  min-width: 44px; height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-600);
  background: #fff;
  border: 1.5px solid var(--line);
  transition: all 0.22s var(--ease);
}
.pager-btn:hover { color: var(--blue-600); border-color: var(--blue-500); transform: translateY(-2px); }
.pager-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(176, 31, 36, 0.3);
}
.pager-btn.disabled { opacity: 0.4; pointer-events: none; }
.pager-dots { padding: 0 6px; color: var(--ink-400); font-weight: 700; }

/* ---------- Blog detay ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 24px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-600);
}
.post-meta span { display: inline-flex; align-items: center; gap: 8px; }
.post-meta svg { width: 16px; height: 16px; color: var(--red-600); }
.post-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.post-body blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--red-600);
  background: var(--bg-light);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: var(--navy-800);
}
.post-body a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }
.post-body ol { margin: 18px 0 22px; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-600); font-size: 15.5px; line-height: 1.7; }

.post-share {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}
.post-share b { color: var(--navy-800); margin-right: 6px; }
.post-share a, .post-share button {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  color: var(--ink-600);
  background: var(--bg-light);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.post-share svg { width: 18px; height: 18px; }
.post-share a:hover, .post-share button:hover { color: #fff; transform: translateY(-3px); border-color: transparent; }
.post-share .share-wa:hover { background: #25d366; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35); }
.post-share .share-fb:hover { background: #1877f2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35); }
.post-share .share-in:hover { background: #0a66c2; box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35); }
.post-share .share-x:hover  { background: #0f1419; box-shadow: 0 8px 20px rgba(15, 20, 25, 0.35); }
.post-share .share-copy:hover { background: var(--red-600); box-shadow: 0 8px 20px rgba(176, 31, 36, 0.35); }
.post-share .share-copy.copied { background: #15803d; color: #fff; border-color: transparent; }

.related-posts { display: grid; gap: 14px; }
.related-post {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}
.related-post:hover { border-color: var(--blue-500); transform: translateX(4px); }
.related-post img { width: 70px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.related-post b { display: block; font-size: 13.5px; line-height: 1.35; color: var(--navy-800); }
.related-post span { font-size: 12px; color: var(--ink-400); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
  .catalog-viewer iframe { height: 70vh; }
  .catalog-actions { width: 100%; }
  .catalog-actions .btn { flex: 1; justify-content: center; }
}
