/* Ticket Tailor WP Free — Frontend Styles */

.ttwpf-no-events {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary, #a8a3b3);
  font-size: 1.1rem;
}

.ttwpf-error {
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 92, 92, 0.3);
  color: #ff5c5c;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
}

/* Grid columns override */
.ttwpf-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.ttwpf-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.ttwpf-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }

@media (max-width: 768px) {
  .ttwpf-cols-2,
  .ttwpf-cols-3,
  .ttwpf-cols-4 {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ttwpf-cols-3,
  .ttwpf-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Next event inline layout */
.ttwpf-next-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.ttwpf-next-inline-label {
  color: var(--text-muted, #6b6578);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.ttwpf-next-inline a {
  color: var(--neon-coral, #ff5c5c);
  text-decoration: none;
  font-weight: 600;
}

.ttwpf-next-inline a:hover {
  text-decoration: underline;
}

/* Filter tabs (plugin-specific additions) */
.ttwpf-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  justify-content: center;
}

/* Category badge on event card image */
.ttwpf-event-image { position: relative; }
.ttwpf-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1.4;
  pointer-events: none;
}

/* "From £XX" price badge — overlaid on event card image (bottom-left) */
.ttwpf-price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgb(24 24 27);
    color: #f15757;
    line-height: 1.4;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    letter-spacing: 0.02em;
}

/* Inline variant (no image, or pill/inline layouts) */
.ttwpf-price-badge--inline {
  position: static;
  display: inline-block;
  margin: 4px 0 8px;
}

/* Featured card variant */
.ttwpf-price-badge--featured {
  position: static;
  display: inline-block;
  margin: 8px 0 4px;
  font-size: 0.9rem;
}

/* Plain-text price inside the next-event pill meta line */
.ttwpf-price-pill-text {
  color: #fff;
  font-weight: 600;
  margin-left: 4px;
}

/* Checkout iframe modal */
.ttwpf-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.ttwpf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}
.ttwpf-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #0f0f1a;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1;
}
.ttwpf-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 92, 92, 0.85);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.ttwpf-modal-close:hover {
  background: rgba(255, 92, 92, 1);
  transform: scale(1.05);
}
.ttwpf-modal-iframe {
  width: 100%;
  height: 85vh;
  min-height: 400px;
  border: none;
  display: block;
}
