/* ==========================================================
   Candy Cloud — BLOG hub (dark + pink accents)
   Page: /blog/
   ========================================================== */

/* Defensive reset for WP auto <p>/<br> wrappers around custom HTML */
.cc-blogHub,
.cc-blogHub * {
  box-sizing: border-box;
}

.cc-blogHub {
  display: block;
  color: #e9e9ee;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(255, 62, 165, 0.12), transparent 55%),
    radial-gradient(900px 700px at 90% 10%, rgba(123, 92, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #07070a 0%, #0a0a10 55%, #07070a 100%);
}

.cc-blogHub > p {
  margin: 0;
}

.cc-blogHub p:empty {
  display: none;
}

.cc-blogHub main,
.cc-blogHub header,
.cc-blogHub section,
.cc-blogHub article,
.cc-blogHub figure,
.cc-blogHub nav,
.cc-blogHub div {
  display: block;
}

.cc-blogHub img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cc-blogHub a {
  color: inherit;
  text-decoration: none;
}

.cc-blogHub a:hover {
  text-decoration: none;
}

.cc-blogHub :is(a, button, summary):focus-visible {
  outline: 3px solid rgba(255, 62, 165, 0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Theme tokens */
.cc-blogHub {
  --cc-bg: #07070a;
  --cc-panel: rgba(255, 255, 255, 0.04);
  --cc-panel-2: rgba(255, 255, 255, 0.06);
  --cc-border: rgba(255, 255, 255, 0.10);
  --cc-border-2: rgba(255, 255, 255, 0.14);
  --cc-text: #e9e9ee;
  --cc-muted: rgba(233, 233, 238, 0.72);
  --cc-muted-2: rgba(233, 233, 238, 0.58);
  --cc-pink: #ff3ea5;
  --cc-pink-2: #ff5fb8;
  --cc-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  --cc-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.40);
  /* Match WooCommerce “product card” feel */
  --cc-radius: 20px;
  --cc-radius-sm: 14px;
  --cc-radius-lg: 28px;
  --cc-max: 1140px;
  --cc-pad: clamp(16px, 3vw, 28px);
}

/* Container compatibility with existing site */
.cc-blogHub .cc-container {
  width: min(100% - (var(--cc-pad) * 2), var(--cc-max));
  margin-inline: auto;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.cc-blogHero {
  position: relative;
  padding: clamp(40px, 6vw, 74px) 0 clamp(22px, 4vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cc-blogHero::before {
  content: "";
  position: absolute;
  inset: -140px -140px auto -140px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(255, 62, 165, 0.20), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

.cc-blogHero__inner {
  position: relative;
}

.cc-blogHero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cc-muted);
}

.cc-blogHero__kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cc-pink);
  box-shadow: 0 0 0 6px rgba(255, 62, 165, 0.16);
}

.cc-blogHero__title {
  margin: 0 0 10px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cc-blogHero__excerpt {
  margin: 0;
  max-width: 74ch;
  color: var(--cc-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
}

.cc-blogHero__meta p {
  margin: 16px 0 0;
  color: var(--cc-muted-2);
  font-size: 14px;
}

.cc-blogHero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

/* WP sometimes injects <br> between adjacent links; remove so buttons don’t stack */
.cc-blogHero__actions br {
  display: none !important;
}

.cc-blogBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 62, 165, 0.95), rgba(255, 62, 165, 0.82));
  color: #0a0a10;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 30px rgba(255, 62, 165, 0.20);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.cc-blogBtn:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 16px 40px rgba(255, 62, 165, 0.28);
}

.cc-blogBtn--ghost {
  background: transparent;
  color: var(--cc-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.cc-blogBtn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 62, 165, 0.35);
  box-shadow: 0 0 0 6px rgba(255, 62, 165, 0.10);
}

/* ----------------------------------------------------------
   Section + headings
   ---------------------------------------------------------- */
.cc-blogSection {
  padding: clamp(22px, 4vw, 46px) 0 clamp(48px, 6vw, 72px);
}

.cc-blogH2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.01em;
}

.cc-blogSub {
  margin: 0 0 20px;
  color: var(--cc-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   Grid + cards
   ---------------------------------------------------------- */
.cc-blogGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.cc-blogCard {
  grid-column: span 12;
  border-radius: var(--cc-radius);
  background: linear-gradient(135deg, rgba(25, 26, 35, 1) 0%, rgba(30, 31, 42, 0.95) 100%);
  border: 2px solid var(--cc-border);
  box-shadow: var(--cc-shadow-soft);
  overflow: hidden;
  padding: 20px;
}

/* WordPress wpautop often injects <p> wrappers; keep cards from becoming “chunky” */
.cc-blogCard > p {
  margin: 0;
}

@media (min-width: 720px) {
  .cc-blogCard {
    grid-column: span 6;
  }
}

@media (min-width: 1060px) {
  .cc-blogCard {
    grid-column: span 4;
  }
}

/* New, WP-safe card structure */
.cc-blogCard {
  display: flex;
  flex-direction: column;
}

.cc-blogCard:hover {
  border-color: rgba(255, 62, 165, 0.32);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(255, 62, 165, 0.22), 0 18px 46px rgba(0, 0, 0, 0.55);
}

.cc-blogCard__mediaLink {
  display: block;
  position: relative;
  /* Product cards are square — keep BLOG thumbnails consistent */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0b0b12;
  border-radius: var(--cc-radius-sm);
  margin: -8px -8px 10px -8px;
  width: calc(100% + 16px);
}

.cc-blogCard__mediaLink::after {
  content: "";
  position: relative;
  inset: 0;
  position: absolute;
  background: radial-gradient(70% 60% at 20% 0%, rgba(255, 62, 165, 0.20), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.42) 80%, rgba(0, 0, 0, 0.60) 100%);
  pointer-events: none;
}

.cc-blogCard__mediaLink img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 260ms ease;
}

.cc-blogCard:hover .cc-blogCard__mediaLink img {
  transform: scale(1.06);
}

.cc-blogCard__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cc-blogCard__tag {
  margin: 0;
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.20);
}

.cc-blogCard__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cc-blogCard__titleLink {
  color: var(--cc-text);
}

.cc-blogCard__titleLink:hover {
  color: rgba(255, 255, 255, 0.96);
}

.cc-blogCard__excerpt {
  margin: 0;
  color: var(--cc-muted);
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rectangular CTA button inside cards */
.cc-blogCard__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--cc-radius-sm);
  border: none;
  background: var(--cc-pink);
  color: #0b0b10;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.cc-blogCard__btn:hover {
  transform: translateY(-1px);
  background: #c77dff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(255, 62, 165, 0.18);
}

.cc-blogArrow {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 62, 165, 0.12);
  color: var(--cc-pink-2);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cc-blogCard:hover .cc-blogArrow {
  transform: translateX(2px);
  background: rgba(255, 62, 165, 0.18);
  border-color: rgba(255, 62, 165, 0.26);
}

/* ----------------------------------------------------------
   Note panel
   ---------------------------------------------------------- */
.cc-blogNote {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--cc-radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.24);
}

.cc-blogNote p {
  margin: 0;
  color: var(--cc-muted);
  line-height: 1.6;
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  .cc-blogHub * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}


