/* ============================================================
   Church Word Cloud — CSS v1.0.0
   Aesthetic: Refined dark luxury with amber accents
   ============================================================ */

/* ── Reset scope ─────────────────────────────────────────── */
.church-wc-card *,
.church-wc-card *::before,
.church-wc-card *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Card ────────────────────────────────────────────────── */
.church-wc-card {
  position: relative;
  background: var(--cwc-card-gradient, var(--cwc-card-bg, #0f0f1a));
  border-radius: 24px;
  padding: 36px 32px 28px;
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;

  /* Fill the full height of the Elementor column */
  height: 100%;
  display: flex;
  flex-direction: column;
}



/* ── Decorative background orbs ─────────────────────────── */
.church-wc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.church-wc-orb-1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(79,70,229,0.18) 0%, transparent 70%);
  top: -80px; right: -60px;
}

.church-wc-orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cwc-accent, #f59e0b) 12%, transparent) 0%, transparent 70%);
  bottom: -40px; left: 10%;
}

.church-wc-orb-3 {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  top: 50%; left: -40px;
}

/* ── Header ──────────────────────────────────────────────── */
.church-wc-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
}

.church-wc-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.12) 20%,
    rgba(255,255,255,0.12) 80%,
    transparent
  );
}

.church-wc-header-line {
  position: absolute;
  left: 0; top: 6px;
  width: 3px; height: 36px;
  background: linear-gradient(to bottom, var(--cwc-accent, #f59e0b), transparent);
  border-radius: 2px;
  margin-left: -32px;
}

.church-wc-header-text {
  padding-left: 4px;
}

.church-wc-subtitle {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cwc-sub-color, #f59e0b);
  margin-bottom: 5px;
  font-family: inherit;
}

.church-wc-title {
  font-size: clamp(18px, 3cqi, 26px);
  font-weight: 800;
  color: var(--cwc-title-color, #fff);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: inherit;
}

/* Count badge */
.church-wc-count-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.church-wc-count-badge span {
  font-size: 18px;
  font-weight: 800;
  color: var(--cwc-accent, #f59e0b);
  line-height: 1;
  font-family: Georgia, serif;
}

.church-wc-count-badge small {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ── Cloud ───────────────────────────────────────────────── */
.church-wc-cloud {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  align-items: flex-start;
  justify-content: flex-start;
  align-content: flex-start;
  padding: 8px 0 20px;
  min-height: 120px;
  flex: 1;
}

/* ── Tags ────────────────────────────────────────────────── */
.church-wc-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 14px;
  background: var(--cwc-tag-bg, #1e1b4b);
  color: var(--cwc-tag-color, #a5b4fc);
  border: 1px solid var(--cwc-tag-border, rgba(165,180,252,0.15));
  border-radius: 30px;
  font-size: 13px !important; /* uniform — weight shown via opacity only */
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  overflow: hidden;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.25s ease,
    opacity 0.25s ease;
  will-change: transform;
}

.church-wc-tag:hover,
.church-wc-tag:focus-visible {
  background: var(--cwc-hover-bg, #4f46e5);
  color: var(--cwc-hover-color, #fff);
  border-color: transparent;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 24px rgba(79,70,229,0.35);
  z-index: 2;
  outline: none;
}

.church-wc-tag:active {
  transform: translateY(0) scale(0.98);
}

/* Progress bar inside tag (show_counts mode) */
.church-wc-tag-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--cwc-accent, #f59e0b);
  border-radius: 0 0 30px 30px;
  opacity: 0.5;
  transition: width 0.3s ease;
}

/* ── Animated entrance ───────────────────────────────────── */
.church-wc-animated .church-wc-tag {
  animation: cwcTagIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes cwcTagIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(10px);
  }
  to {
    opacity: inherit;
    transform: scale(1) translateY(0);
  }
}

.church-wc-animated .church-wc-header {
  animation: cwcFadeUp 0.4s ease both;
}

.church-wc-animated .church-wc-footer {
  animation: cwcFadeUp 0.4s 0.1s ease both;
}

@keyframes cwcFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ──────────────────────────────────────────────── */
.church-wc-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}

.church-wc-footer-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.church-wc-dot {
  display: inline-block;
  border-radius: 50%;
}

.church-wc-dot:nth-child(1) { width:8px; height:8px; background:var(--cwc-accent,#f59e0b); opacity:0.9; }
.church-wc-dot:nth-child(2) { width:5px; height:5px; background:var(--cwc-accent,#f59e0b); opacity:0.5; }
.church-wc-dot:nth-child(3) { width:4px; height:4px; background:rgba(255,255,255,0.2); }
.church-wc-dot:nth-child(4) { width:3px; height:3px; background:rgba(255,255,255,0.12); }
.church-wc-dot:nth-child(5) { width:2px; height:2px; background:rgba(255,255,255,0.07); }

.church-wc-footer-label { display: none; }

/* ── Empty state ─────────────────────────────────────────── */
.church-wc-empty {
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  font-size: 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.1);
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .church-wc-animated .church-wc-tag,
  .church-wc-animated .church-wc-header,
  .church-wc-animated .church-wc-footer {
    animation: none !important;
  }
  .church-wc-tag {
    transition: background 0.15s, color 0.15s !important;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@container (max-width: 360px) {
  .church-wc-card { padding: 24px 20px 20px; }
  .church-wc-title { font-size: 18px; }
}

/* ── Elementor column stretch ────────────────────────────── */
/* Makes the widget fill the full column height in Elementor  */
.elementor-widget-church_word_cloud,
.elementor-widget-church_word_cloud .elementor-widget-container {
  height: 100%;
}
