/* InfinityCraft Official Live Events Hub (/eventos) */
body[data-ic-events-active="1"] .premium-events > .event-empty {
  display: none !important;
}

#ic-live-events-hub {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 8px 24px 0;
  color: #eef2ff;
  font-family: inherit;
}

.ic-ev-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 24px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(172, 107, 255, 0.28);
  background: linear-gradient(120deg, rgba(29, 19, 48, 0.92), rgba(18, 25, 44, 0.9));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.ic-ev-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9d5ff;
}

.ic-ev-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
  animation: icEvPulse 2.2s infinite ease-in-out;
}

.ic-ev-dot[data-hot="1"] {
  background: #ec4899;
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.28);
}

@keyframes icEvPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.78; }
}

.ic-ev-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ic-ev-filter-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ic-ev-filter-btn:hover {
  border-color: rgba(242, 182, 50, 0.55);
  color: #fff7ed;
}

.ic-ev-filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(135, 76, 230, 0.45), rgba(242, 182, 50, 0.28));
  border-color: rgba(242, 182, 50, 0.75);
  color: #ffffff;
}

.ic-ev-section {
  margin-bottom: 34px;
}

.ic-ev-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ic-ev-section-head h2 {
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.ic-ev-section-head span {
  font-size: 12px;
  color: #94a3b8;
}

.ic-ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.ic-ev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(172, 107, 255, 0.25);
  background: radial-gradient(circle at top right, rgba(135, 76, 230, 0.16), transparent 58%),
              linear-gradient(160deg, rgba(24, 18, 38, 0.95), rgba(15, 21, 36, 0.95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.ic-ev-card[data-phase="running"] {
  border-color: rgba(236, 72, 153, 0.65);
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 60%),
              linear-gradient(160deg, rgba(34, 16, 44, 0.96), rgba(17, 22, 39, 0.96));
}

.ic-ev-card[data-phase="registration"],
.ic-ev-card[data-phase="scheduled"] {
  border-color: rgba(172, 107, 255, 0.68);
}

.ic-ev-card[data-phase="completed"] {
  border-color: rgba(242, 182, 50, 0.42);
  background: radial-gradient(circle at top right, rgba(242, 182, 50, 0.14), transparent 58%),
              linear-gradient(160deg, rgba(28, 22, 34, 0.95), rgba(15, 20, 33, 0.95));
}

.ic-ev-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ic-ev-server-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.25);
}

.ic-ev-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ic-ev-badge[data-phase="running"] {
  background: rgba(236, 72, 153, 0.22);
  color: #fbcfe8;
  border: 1px solid rgba(236, 72, 153, 0.55);
}

.ic-ev-badge[data-phase="registration"],
.ic-ev-badge[data-phase="scheduled"] {
  background: rgba(135, 76, 230, 0.28);
  color: #e9d5ff;
  border: 1px solid rgba(172, 107, 255, 0.55);
}

.ic-ev-badge[data-phase="completed"] {
  background: rgba(242, 182, 50, 0.2);
  color: #fde68a;
  border: 1px solid rgba(242, 182, 50, 0.5);
}

.ic-ev-card h3 {
  margin: 2px 0 0;
  font-size: 20px;
  color: #ffffff;
}

.ic-ev-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.ic-ev-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(9, 12, 22, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ic-ev-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ic-ev-meta small {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.ic-ev-meta strong {
  font-size: 13px;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ic-ev-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(135, 76, 230, 0.14);
  border: 1px dashed rgba(172, 107, 255, 0.42);
  font-size: 12.5px;
  color: #e9d5ff;
}

.ic-ev-cmd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: #fde68a;
}

.ic-ev-podium {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(242, 182, 50, 0.1);
  border: 1px solid rgba(242, 182, 50, 0.32);
}

.ic-ev-podium-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #fef3c7;
}

.ic-ev-standby {
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(172, 107, 255, 0.24);
  background: radial-gradient(ellipse at 15% 20%, rgba(135, 76, 230, 0.2), transparent 55%),
              linear-gradient(125deg, rgba(26, 18, 42, 0.92), rgba(16, 24, 40, 0.92));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ic-ev-standby h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: #fff7ed;
}

.ic-ev-standby p {
  margin: 0;
  max-width: 720px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #cbd5e1;
}

.ic-ev-portal-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.ic-ev-portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(242, 182, 50, 0.34);
  background: linear-gradient(135deg, rgba(35, 22, 50, 0.95), rgba(19, 29, 48, 0.95));
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.ic-ev-portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 182, 50, 0.78);
}

.ic-ev-portal-card small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fcd34d;
}

.ic-ev-portal-card h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  color: #ffffff;
}

.ic-ev-portal-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

.ic-ev-portal-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: #fde68a;
}

@media (max-width: 720px) {
  #ic-live-events-hub {
    padding: 4px 16px 0;
  }
  .ic-ev-toolbar {
    padding: 12px 14px;
  }
  .ic-ev-meta {
    grid-template-columns: 1fr;
  }
}

/* Layout only: preserve the published Frontier palette, content and handlers.
   These cards are rendered by the active public experience on /eventos.
   The legacy hub rules above do not enable its disabled JavaScript loader. */
[data-cosmic-view="eventos"] .ic-c-trio-grid > *,
[data-cosmic-view="eventos"] .ic-c-feature-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

[data-cosmic-view="eventos"] .ic-c-feature-body {
  display: flex;
  flex-direction: column;
}

[data-cosmic-view="eventos"] .ic-c-feature-body :is(h3, p) {
  white-space: normal;
  overflow-wrap: anywhere;
}

