/* ============================================
   1. EZ TOC plugin overrides
   ============================================ */
#ez-toc-sticky-container a:visited {
  color: #000;
}
#ez-toc-container a:visited {
  color: #444;
}


/* ============================================
   2. Timeline Query Loop (Archive page)
   ============================================ */
.timeline-query {
  position: relative;
  padding-left: 24px;
  max-width: 860px;
}
.timeline-query::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #d0d0d0;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0 32px 28px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 26px;
  width: 10px;
  height: 10px;
  background: #aaa;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px #aaa;
}
.item-date {
  min-width: 160px;
  font-size: 0.88rem;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}
.item-thumb {
  width: 180px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #eee;
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-thumb.no-image {
  display: none;
}
.item-title {
  flex: 1;
  margin: 0;
}
.item-title a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.item-title a:hover {
  color: #6c63ff;
}
@media (max-width: 600px) {
  .timeline-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  .item-date {
    min-width: 100%;
    padding-top: 0;
  }
  .item-thumb {
    width: 120px;
  }
}
.entry-excerpt p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================
   3. Pretty Pagination
   ============================================ */
.pretty-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding: 0;
}
.pretty-pagination .wp-block-query-pagination-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pretty-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
}
.pretty-pagination .page-numbers:hover {
  background: #e5e7eb;
}
.pretty-pagination .page-numbers.current {
  background: var(--theme-palette-color-1, #7c3aed);
  color: #fff;
}
.pretty-pagination .page-numbers.dots {
  background: transparent;
}
.pretty-pagination .wp-block-query-pagination-previous,
.pretty-pagination .wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}
.pretty-pagination .wp-block-query-pagination-previous:hover,
.pretty-pagination .wp-block-query-pagination-next:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.pretty-pagination .wp-block-query-pagination-previous {
  margin-right: 12px;
}
.pretty-pagination .wp-block-query-pagination-next {
  margin-left: 12px;
}


/* ============================================
   4. Blog Home (page-id-2952) only
   - Hide page title / breadcrumbs / sidebar
   - Full-width CONTENT area only
   - Header and Footer untouched
   ============================================ */

/* Hide page title and breadcrumbs */
.page-id-2952 .entry-header,
.page-id-2952 .page-title,
.page-id-2952 h1.entry-title,
.page-id-2952 .ct-page-title,
.page-id-2952 .ct-breadcrumbs {
  display: none !important;
}

/* Hide sidebar */
.page-id-2952 .ct-sidebar,
.page-id-2952 aside.ct-sidebar,
.page-id-2952 aside[class*="sidebar"],
.page-id-2952 #left-sidebar,
.page-id-2952 #right-sidebar,
.page-id-2952 .sidebar {
  display: none !important;
  width: 0 !important;
  visibility: hidden !important;
}

/* Force single-column layout (no sidebar grid) */
.page-id-2952 [data-side="right"],
.page-id-2952 [data-side="left"],
.page-id-2952 .ct-container[data-sidebar],
.page-id-2952 .content-area-wrapper {
  grid-template-columns: 1fr !important;
  display: block !important;
}

/* ONLY the content area (article + entry-content + main) goes full-width.
   The Blocksy  element is left COMPLETELY untouched. */
.page-id-2952 article.page,
.page-id-2952 article.post-2952,
.page-id-2952 .entry-content,
.page-id-2952 .ct-page-content,
.page-id-2952 main#main,
.page-id-2952 main.site-main {
  max-width: 100% !important;
  width: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* First/last child: no top/bottom gap */

/* ========== cc-hero 流动玻璃动效 ========== */

/* 流动光泽层（加强版） */
.cc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 10%,
    rgba(255, 255, 255, 0.10) 35%,
    rgba(167, 139, 250, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 90%
  );
  background-size: 220% 220%;
  animation: ccGlassFlow 5s ease-in-out infinite;
  z-index: 1;
}

@keyframes ccGlassFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 标题缓慢悬浮动画 */
.cc-hero-title {
  position: relative;
  z-index: 2;
  animation: ccTitleFloat 6s ease-in-out infinite;
}

@keyframes ccTitleFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

/* 副标题和标签稍慢一点，错开节奏 */
.cc-hero-eyebrow {
  position: relative;
  z-index: 2;
  animation: ccTitleFloat 6s ease-in-out infinite;
  animation-delay: 0.5s;
}

.cc-hero-desc {
  position: relative;
  z-index: 2;
  animation: ccTitleFloat 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* ========== cc-card hover 上浮 + 边框发光 ========== */

/* 基础过渡：所有卡片统一 */
.cc-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1.5px solid transparent;
  will-change: transform;
}

/* Tutorials — 紫色发光 */
.cc-card--tutorials:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.18), 0 2px 8px rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.35);
}

/* Featured Creators — 橙色发光 */
.cc-card--featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.16), 0 2px 8px rgba(234, 88, 12, 0.10);
  border-color: rgba(234, 88, 12, 0.32);
}

/* Showcases — 绿色发光 */
.cc-card--showcases:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.16), 0 2px 8px rgba(5, 150, 105, 0.10);
  border-color: rgba(5, 150, 105, 0.32);
}

/* Deep Dives — 蓝色发光 */
.cc-card--deepdives:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.16), 0 2px 8px rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.32);
}