/**
 * HK Event Import for Luma — Frontend CSS
 * @package HK_Event_Import_For_Luma
 */

:root {
  --hkeif-accent: #4f46e5;
  --hkeif-cols: 3;
}

/* ── Event Grid / List ──────────────────────────────────────────────────── */
.hkeif-events-wrap {
  font-family: "Inter", "Outfit", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
}

.hkeif-events-wrap a {
  text-decoration: none !important;
}

.hkeif-layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--hkeif-cols), 1fr);
  gap: 24px;
}

.hkeif-layout-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hkeif-layout-minimal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.hkeif-event-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.03);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.hkeif-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

/* List layout card */
.hkeif-layout-list .hkeif-event-card {
  display: flex;
  flex-direction: row;
}

.hkeif-layout-list .hkeif-card-image {
  width: 200px;
  flex-shrink: 0;
}

/* ── Minimal Layout ─────────────────────────────────────────────────────── */
.hkeif-minimal-event {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.03);
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}
.hkeif-minimal-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.05);
}
.hkeif-minimal-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--hkeif-accent);
  color: #fff;
  border-radius: 14px;
  flex-shrink: 0;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hkeif-minimal-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.hkeif-minimal-day {
  font-size: 22px;
  font-weight: 800;
}
.hkeif-minimal-details {
  flex: 1;
  min-width: 0;
}
.hkeif-minimal-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hkeif-minimal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #6b7280;
}
.hkeif-minimal-dot {
  opacity: 0.4;
  font-size: 10px;
}
.hkeif-minimal-action {
  color: #d1d5db;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.hkeif-minimal-event:hover .hkeif-minimal-action {
  color: var(--hkeif-accent);
  transform: translateX(4px);
}

/* ── Card Image ─────────────────────────────────────────────────────────── */
.hkeif-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f3f4f6;
}

.hkeif-layout-list .hkeif-card-image {
  aspect-ratio: unset;
  min-height: 160px;
}

.hkeif-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hkeif-event-card:hover .hkeif-card-img {
  transform: scale(1.03);
}

/* Badges */
.hkeif-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 24px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(12px);
}

.hkeif-badge-free {
  background: rgba(16,185,129,0.9);
  color: #fff;
}

.hkeif-badge-paid {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

.hkeif-badge-online {
  background: rgba(124,58,237,0.85);
  color: #fff;
}

/* ── Card Body ──────────────────────────────────────────────────────────── */
.hkeif-card-body {
  padding: 16px 18px 18px;
  flex: 1;
}



.hkeif-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hkeif-accent);
  margin-bottom: 7px;
  line-height: 1;
}

.hkeif-card-tz {
  font-size: 11px;
  opacity: 0.6;
  font-weight: 400;
}

.hkeif-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
  line-height: 1.35;
}

.hkeif-card-title a {
  color: inherit;
  text-decoration: none;
}

.hkeif-card-title a:hover {
  color: var(--hkeif-accent);
}

.hkeif-card-venue,
.hkeif-card-host {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 6px;
  line-height: 1.4;
}

.hkeif-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.hkeif-card-rsvp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hkeif-accent);
  text-decoration: none;
  transition: gap 0.15s ease;
}

.hkeif-card-rsvp:hover { gap: 8px; }

/* ── No events ──────────────────────────────────────────────────────────── */
.hkeif-no-events {
  font-size: 14px;
  color: #9ca3af;
  text-align: center;
  padding: 40px;
}

/* ── Single event details (CPT) ──────────────────────────────────────────── */
.hkeif-event-details {
  margin: 32px 0;
  padding: 0;
}

.hkeif-event-details-inner {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.hkeif-event-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}

.hkeif-event-meta-row:last-of-type { border-bottom: none; }

.hkeif-meta-icon-wrap {
  width: 36px;
  height: 36px;
  background: var(--hkeif-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.hkeif-meta-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.hkeif-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hkeif-meta-value {
  font-size: 14.5px;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.5;
}

.hkeif-meta-value a { color: var(--hkeif-accent); }

.hkeif-online-badge {
  color: #4f46e5;
}

.hkeif-tz {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

.hkeif-event-cta {
  margin-top: 20px;
}

.hkeif-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--hkeif-accent);
  color: #fff !important;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}

.hkeif-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hkeif-layout-grid { --hkeif-cols: 2; }
}

@media (max-width: 600px) {
  .hkeif-layout-grid  { --hkeif-cols: 1; }
  .hkeif-layout-list .hkeif-event-card { flex-direction: column; }
  .hkeif-layout-list .hkeif-card-image { width: 100%; min-height: 0; aspect-ratio: 16/9; }
  .hkeif-event-details-inner { padding: 16px; }
}
