/* CMS ön yüz — İçerikler, kategori, detay */

.vp-cms-public-page {
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 2rem;
  animation: vpFrontIn 0.45s ease-out;
}

.vp-cms-page-head {
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(15, 40, 80, 0.06);
  position: relative;
  overflow: hidden;
}

.vp-cms-page-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #6366f1, #8b5cf6);
}

.vp-cms-page-head h1 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  background: linear-gradient(120deg, #1e3a8a, #4f46e5 55%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vp-cms-page-head .vp-cms-lead {
  margin: 0;
  color: var(--vp-muted, #64748b);
  font-size: 0.95rem;
}

.vp-cms-section {
  margin-bottom: 2.25rem;
}

.vp-cms-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 1rem;
}

.vp-cms-section-title i {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Kategori kartları */
.vp-cms-cat-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 1.15rem !important;
  border: 1px solid rgba(215, 222, 231, 0.65) !important;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
  box-shadow: 0 4px 16px rgba(15, 40, 80, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
}

.vp-cms-cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0.85;
}

.vp-cms-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.14) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  color: inherit;
}

.vp-cms-cat-card .card-body {
  padding: 1.1rem 1.15rem !important;
}

.vp-cms-cat-card h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.vp-cms-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.vp-cms-cat-col.vp-cms-cat-depth-1 .vp-cms-cat-card::before {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.vp-cms-cat-col.vp-cms-cat-depth-2 .vp-cms-cat-card::before {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

/* Son yayınlar listesi */
.vp-cms-recent-panel {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(215, 222, 231, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(15, 40, 80, 0.07);
}

.vp-cms-recent-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.vp-cms-recent-item:last-child {
  border-bottom: none;
}

.vp-cms-recent-item:hover {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.6));
  padding-left: 1.4rem;
  color: inherit;
}

.vp-cms-recent-item strong {
  display: block;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.vp-cms-recent-meta {
  font-size: 0.8rem;
  color: var(--vp-muted, #64748b);
}

.vp-cms-recent-date {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

.vp-cms-recent-item:hover .vp-cms-recent-date {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: #4338ca;
}

.vp-cms-recent-chevron {
  display: none;
}

@media (min-width: 576px) {
  .vp-cms-recent-main {
    flex: 1;
    min-width: 0;
  }

  .vp-cms-recent-item::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: #cbd5e1;
    align-self: center;
    transition: color 0.15s, transform 0.15s;
  }

  .vp-cms-recent-item:hover::after {
    color: #6366f1;
    transform: translateX(3px);
  }
}

/* Breadcrumb */
.vp-cms-public-page .breadcrumb {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(215, 222, 231, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(15, 40, 80, 0.04);
}

.vp-cms-public-page .breadcrumb a {
  text-decoration: none;
  font-weight: 600;
  color: #4f46e5;
}

/* Makale detay */
.vp-cms-article {
  border-radius: 1.35rem !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 20px 50px rgba(15, 40, 80, 0.08) !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95) !important;
}

.vp-cms-article .vp-cms-article-head {
  padding: 1.75rem 1.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.6), transparent);
  border-bottom: 1px solid #f1f5f9;
}

.vp-cms-article .vp-cms-article-head h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.vp-cms-article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--vp-muted, #64748b);
}

.vp-cms-article-meta .vp-cms-pill {
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  color: #4338ca;
  font-size: 0.75rem;
}

.vp-cms-article .cms-body {
  padding: 0 1.75rem 1.75rem;
  line-height: 1.65;
}

.vp-cms-back-btn {
  border-radius: 999px !important;
  font-weight: 600 !important;
  border-width: 2px !important;
}

.vp-cms-empty {
  border-radius: 1rem;
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
