/* =========================================
   GLOBAL PAGE WRAPPER
========================================= */
.or-event-page {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 16px 16px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  color: #111;
}

/* =========================================
   FIXED iOS HEADER
========================================= */
.or-event-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.wrb-toast {
  left: 50%;
  bottom: 24px;
  background: #111 !important;
  color: #fff !important;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: all .25s ease;
}

.or-header-inner {
  max-width: 900px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Back button */
.or-back-btn {
  position: absolute;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border: none;
  background: none;
  color: #007aff;
  font-size: 17px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.or-back-btn svg {
  width: 13px;
  height: 21px;
}

.or-back-btn:active {
  opacity: 0.4;
}

/* header title */
.or-header-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* spacer */
.or-header-spacer {
  height: 56px;
}

@supports(padding: max(0px)) {
  .or-event-header {
    padding-top: max(0px, env(safe-area-inset-top));
    height: calc(56px + env(safe-area-inset-top));
  }
  .or-header-spacer {
    height: calc(56px + env(safe-area-inset-top));
  }
}

/* WP admin bar fix */
body.admin-bar .or-event-header {
  top: 32px;
}
body.admin-bar .or-header-spacer {
  height: calc(56px + 32px);
}

/* =========================================
   CHIPS
========================================= */

.or-event-top {
  margin-top: 50px;
}

.event-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 20px;
  padding-top: 12px;
}

.event-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 14px;
  font-weight: 600;
  color: #3c3c43;
  white-space: nowrap;
}

.event-chips .emoji {
  font-size: 15px;
}

/* =========================================
   COVER IMAGE
========================================= */

.event-cover {
  max-width: 850px;
  margin: 0 auto 22px;
}

.event-cover img {
  width: 100%;
  border-radius: 22px;
    max-height: 450px;
  object-fit: cover;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.06),
    0 12px 28px rgba(0,0,0,0.08);
}

/* =========================================
   CONTENT CARD
========================================= */
.or-event-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.06),
    0 12px 28px rgba(0,0,0,0.08);
  margin-bottom: 26px;
}

.or-event-content {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
}

.or-event-content p {
  margin-bottom: 14px;
}

/* =========================================
   CTA
========================================= */
.or-event-action {
  text-align: center;
}

.or-event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 14px 26px;

  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;

  font-size: 16px;
  font-weight: 600;

  background: linear-gradient(180deg,#ffffff 0%,#f5f6f8 45%,#eceef0 100%);
  color: #111;

  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);

  transition: all .2s ease;
}

.or-event-btn:hover {
  background: linear-gradient(180deg,#ffffff 0%,#f2f3f5 40%,#e6e8eb 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
}

.or-event-btn:active {
  transform: scale(0.97);
}

/* ended */
.or-event-ended {
  font-size: 16px;
  font-weight: 600;
  color: #ff3b30;
  text-align: center;
  margin-top: 8px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

  .event-chips {
    gap: 6px;
    padding-top: 0;
    margin-top: 4px;
  }

  .event-chips .chip {
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 14px !important;
  }

  .event-chips .emoji {
    font-size: 13px !important;
  }

  .event-cover img {
    border-radius: 18px;
  }

  .or-event-card {
    padding: 20px 16px;
  }
  .or-event-top {
  margin-top: 10px;
}
}