/* ===================================================================
   Catalunyaar — Upcoming Events Weekly Roundup
   Fixed royal jewel-tone palette. Scoped under .cyr-events-post.
   =================================================================== */

.cyr-events-post {
  --cyr-bg-1: #0a0a18;
  --cyr-bg-2: #171235;
  --cyr-bg-3: #241247;
  --cyr-gold: #f0a202;
  --cyr-gold-light: #ffd873;
  --cyr-violet: #8b5cf6;
  --cyr-blue: #4c6ef5;
  --cyr-rose: #e64980;
  --cyr-free: #22c55e;
  --cyr-text: #e9e6f7;
  --cyr-text-dim: #b9b3d6;

  font-family: 'Space Grotesk', sans-serif;
  color: var(--cyr-text);
  background: linear-gradient(160deg, var(--cyr-bg-1) 0%, var(--cyr-bg-2) 55%, var(--cyr-bg-3) 100%);
  padding: 48px 24px 64px;
  border-radius: 18px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.cyr-events-post * {
  box-sizing: border-box;
}

/* -------------------------------------------------------------
   MANDATORY DEFENSIVE RESET — host theme applies gradient / clipped
   text (-webkit-text-fill-color: transparent + background-clip: text)
   to h1/h3 and other heading levels globally. A plain `color:` on our
   own class cannot beat that once the host sets fill-color, so we
   force it back to currentColor here BEFORE any specific color rule.
   ------------------------------------------------------------- */
.cyr-events-post h1,
.cyr-events-post h2,
.cyr-events-post h3,
.cyr-events-post h4,
.cyr-events-post p {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-fill-color: currentColor !important;
}

/* ---------------- HERO ---------------- */
.cyr-hero {
  position: relative;
  text-align: center;
  padding: 24px 12px 40px;
  overflow: hidden;
}

.cyr-hero-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cyr-eyebrow {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--cyr-gold-light) !important;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.cyr-hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--cyr-gold) !important;
  text-shadow: 0 2px 18px rgba(240, 162, 2, 0.35);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.cyr-hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cyr-text-dim) !important;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------------- SECTIONS ---------------- */
.cyr-section {
  margin: 56px 0 0;
}

.cyr-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cyr-section-intro {
  color: var(--cyr-text-dim) !important;
  font-size: 15px;
  margin: 0 0 24px;
  max-width: 640px;
}

.cyr-section--violet .cyr-section-title { color: var(--cyr-violet) !important; }
.cyr-section--blue   .cyr-section-title { color: var(--cyr-blue) !important; }
.cyr-section--rose   .cyr-section-title { color: var(--cyr-rose) !important; }

/* ---------------- GRID & CARDS ---------------- */
.cyr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cyr-card {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid transparent;
  border-radius: 14px;
  padding: 22px 20px 20px;
  backdrop-filter: blur(2px);
}

.cyr-card--violet { border-left-color: var(--cyr-violet); }
.cyr-card--blue   { border-left-color: var(--cyr-blue); }
.cyr-card--rose   { border-left-color: var(--cyr-rose); }

.cyr-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cyr-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cyr-card--violet .cyr-card-icon { background: rgba(139, 92, 246, 0.18); color: var(--cyr-violet); }
.cyr-card--blue   .cyr-card-icon { background: rgba(76, 110, 245, 0.18); color: var(--cyr-blue); }
.cyr-card--rose   .cyr-card-icon { background: rgba(230, 73, 128, 0.18); color: var(--cyr-rose); }

.cyr-chip {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.cyr-chip--free {
  background: rgba(34, 197, 94, 0.16);
  color: var(--cyr-free) !important;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.cyr-chip--paid {
  background: rgba(240, 162, 2, 0.16);
  color: var(--cyr-gold) !important;
  border: 1px solid rgba(240, 162, 2, 0.4);
}

.cyr-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--cyr-text) !important;
  margin: 0 0 8px;
  padding-right: 70px;
}

.cyr-card-meta {
  font-size: 13px;
  color: var(--cyr-text-dim) !important;
  margin: 0 0 4px;
}

.cyr-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cyr-text) !important;
  margin: 10px 0 14px;
}

.cyr-card-link {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--cyr-gold) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 162, 2, 0.4);
  padding-bottom: 2px;
}

.cyr-card-link:hover {
  color: var(--cyr-gold-light) !important;
  border-bottom-color: var(--cyr-gold-light);
}

/* ---------------- CTA ---------------- */
.cyr-cta {
  margin-top: 64px;
  text-align: center;
  padding: 36px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cyr-cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--cyr-gold) !important;
  margin: 0 0 10px;
}

.cyr-cta-text {
  color: var(--cyr-text-dim) !important;
  font-size: 15px;
  margin: 0 0 22px;
}

.cyr-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cyr-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #10121f !important;
  -webkit-text-fill-color: #10121f !important;
}

.cyr-cta-btn--whatsapp { background: #22c55e; }
.cyr-cta-btn--site { background: linear-gradient(90deg, var(--cyr-gold), var(--cyr-gold-light)); }

/* ---------------- SOCIAL FOOTER ---------------- */
.cyr-social-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.cyr-social-footer a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cyr-text) !important;
  font-size: 18px;
  text-decoration: none;
}

.cyr-social-footer a:hover {
  background: rgba(240, 162, 2, 0.18);
  color: var(--cyr-gold) !important;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 700px) {
  .cyr-events-post { padding: 32px 16px 48px; }
  .cyr-grid { grid-template-columns: 1fr; }
  .cyr-hero { padding: 12px 4px 28px; }
  .cyr-card-title { padding-right: 0; }
  .cyr-chip { position: static; display: inline-block; margin-bottom: 10px; }
  .cyr-cta-buttons { flex-direction: column; align-items: stretch; }
}