/*
 * UAV Ticket Counters — Frontend Card Styles
 * Scoped to .uav-tc* classes to avoid theme collisions.
 */

.uav-tc {
  position: relative;
  display: block;
  /* Fixed, compact card width by default (prevents "banner" cards in wide sections).
   * Elementor puede posicionarla, pero la tarjeta mantiene su propio tamaño (sin estirarse).
   * Ancho por defecto compacto; override opcional por sección.
   *
   * Puedes sobre-escribir el ancho por sección con Elementor Custom CSS:
   *   selector { --uav-tc-max-width: 420px; }
   */
  width: 100%;
  max-width: var(--uav-tc-max-width, 360px);
  margin-left: 0;
  margin-right: 0;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 20, 0.62);
  color: #ffffff;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Glow layer */
.uav-tc::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: linear-gradient(135deg, rgba(159, 78, 245, 0.85), rgba(70, 178, 224, 0.78), rgba(255, 221, 110, 0.68));
  filter: blur(18px);
  opacity: 0.55;
  z-index: 0;
}

/* Dark overlay to keep text readable */
.uav-tc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.70);
  z-index: 0;
}

.uav-tc > * {
  position: relative;
  z-index: 1;
}

.uav-tc__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  gap: 12px;
  margin-bottom: 8px;
}

.uav-tc__title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: none;

  /* Center the title text (without centering the whole card).
   * Reserves space so the optional badge can sit on the right without
   * pushing the title off-center.
   */
  width: 100%;
  text-align: center;
  padding-left: 44px;
  padding-right: 44px;


  /* Clamp to max 3 lines to keep the card compact */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uav-tc__subtitle {
  font-size: 12.5px;
  line-height: 1.2;
  opacity: 0.82;
  margin-bottom: 14px;
}

.uav-tc__badge {
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 221, 110, 0.16);
  border: 1px solid rgba(255, 221, 110, 0.30);
  color: rgba(255, 221, 110, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;

  position: absolute;
  top: 0;
  right: 0;
}

.uav-tc__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.uav-tc__count {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.uav-tc__label {
  font-size: 12.5px;
  line-height: 1.2;
  opacity: 0.9;
  padding-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

/* Compact layout for narrow columns */
@media (max-width: 480px) {
  .uav-tc {
    padding: 16px 16px 14px;
    border-radius: 16px;
  }

  .uav-tc__count {
    font-size: 38px;
  }
}
