/* EventList.css — Conferences & Events list page (browse list + My Events).
   Split out of LMSPortalEducationAndEventsstylesEducationAndEvents.css;
   every rule below is carried over from it unchanged.

   The shared card system (tokens, .education-card, the image container, the
   badge pill, the body, the date row, the footer buttons, the spinner and
   their responsive rules) is NOT here — it is in
   ACECAOPagesPortalSharedstylesacec-listing-base.css, which this page
   loads first. What stays here is what only this page draws: the main tab
   strip, the registered badge on the banner, the search box, the
   Registration Options and Booth Personnel modals, and the whole My Events
   row. */

/* Main Tabs Container */

.main-tabs-container .d-flex {
  margin-bottom: 0;
}

/* Tab Description Separator */
.tab-description-separator {
  border: 0;
  height: 1px;
  background-color: #d9dee2;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  opacity: 1;
}

/* Main Navigation Tabs (Browse All / My Downloads style) */
.nav-link {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  color: var(--acec-nav-link);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 2.5px solid transparent;
  border-radius: 0;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  color: var(--acec-navy);
}

.nav-link.active {
  color: var(--acec-navy);
  border-bottom: 2.5px solid var(--acec-gold);
  font-weight: 700;
  background: none;
}

.nav-link i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Tab Description */
#tabDescription {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

#tabDescription p {
  font-size: 1rem;
  color: var(--acec-navy);
  margin-bottom: 0;
}

/* CE banner: registered icon + event-type pill — one row, vertically centered */
.ce-banner-badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.ce-banner-badge-row .ce-registered-badge,
.ce-banner-badge-row .badge-type {
  pointer-events: auto;
}

/* Registered — black disc, acec-gold-dark check (Bootstrap Icons check-lg) */
.ce-registered-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: #000;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(33, 49, 56, 0.2);
  cursor: default;
  line-height: 1;
}

.ce-registered-badge__icon {
  color: var(--acec-gold-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.ce-banner-badge-row--registered .badge-type {
  max-width: calc(100% - 2.5rem);
}

@media (max-width: 991.98px) {
  /* Main tabs - Hide text on inactive tabs, show icon only */
  .main-tabs-container .nav-link:not(.active) .tab-text {
    display: none !important;
  }
  
  /* Main tabs - Show icon + text on active tab */
  .main-tabs-container .nav-link.active .tab-text {
    display: inline !important;
    margin-left: 0.35rem;
    font-size: 1.05rem;
  }
  
  /* Main tabs - Ensure icons are always visible */
  .main-tabs-container .nav-link i {
    margin-right: 0;
    font-size: 1.35rem;
    display: inline-block;
  }
  
  /* Main tabs - Active tab icon spacing */
  .main-tabs-container .nav-link.active i {
    margin-right: 0.35rem;
    font-size: 1.35rem;
  }
  
  /* Main tabs - Adjust padding and layout for icon-only tabs */
  .main-tabs-container .nav-link:not(.active) {
    padding: 10px 10px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
  }
  
  /* Main tabs - Active tab maintains normal padding */
  .main-tabs-container .nav-link.active {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
  }
  
  /* Main tabs - Override base gap for mobile */
  .main-tabs-container .nav-link {
    gap: 0;
  }
  
  /* Sub tabs - Hide text on inactive tabs, show icon only */
  #tabDescription p {
    font-size: 0.9rem;
  }
  
  /* My Learnings button - responsive font size */
}

@media (max-width: 768px) {
  .main-tabs-container .nav-link.active .tab-text {
    font-size: 0.95rem;
    margin-left: 0.3rem;
  }
  
  .main-tabs-container .nav-link i {
    font-size: 1.2rem;
  }
  
  .main-tabs-container .nav-link.active i {
    font-size: 1.2rem;
    margin-right: 0.3rem;
  }
  
  /* Main tabs - Adjust padding on smaller screens */
  .main-tabs-container .nav-link:not(.active) {
    padding: 10px 8px;
    min-width: 40px;
    margin-right: 0.4rem;
  }
  
  .main-tabs-container .nav-link.active {
    padding: 10px 12px;
    margin-right: 0.4rem;
  }

  /* Sub tabs - Tab button font size adjustment for smaller screens */
  #tabDescription p {
    font-size: 0.85rem;
  }
  
  /* My Learnings button - smaller font size */
  .tab-description-separator {
    margin-bottom: 0.5rem;
    margin-top: 0rem;
  }

  /* Education card title - smaller font size */
}

@media only screen and (max-width: 480px) {
  .main-tabs-container .nav-link.active .tab-text {
    font-size: 0.9rem;
    margin-left: 0.3rem;
  }
  
  .main-tabs-container .nav-link i {
    font-size: 1.15rem;
  }
  
  .main-tabs-container .nav-link.active i {
    font-size: 1.15rem;
    margin-right: 0.3rem;
  }
  
  /* Main tabs - Padding for very small screens */
  .main-tabs-container .nav-link:not(.active) {
    padding: 10px 6px;
    min-width: 38px;
    margin-right: 0.3rem;
  }
  
  .main-tabs-container .nav-link.active {
    padding: 10px 10px;
    margin-right: 0.3rem;
  }
  
  /* Sub tabs - Tabs for very small phones - slightly smaller but still readable */
  #tabDescription p {
    font-size: 0.85rem;
  }
  
  /* My Learnings button - smallest font size */
}

/* ============================================================
   CONFERENCES & EVENTS TAB
   ============================================================ */

/* Description */
.ce-tab-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

/* Search */
.ce-search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.ce-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--acec-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.ce-search-input {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid #dfdfdf;
  padding: 0 1rem 0 2.5rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  box-shadow: rgba(255, 255, 255, 0.2) 1px 1px 0px 0px inset, rgba(0, 0, 0, 0.05) 1px 1px 2px 1px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color: var(--acec-navy);
  background: #fff;
}

.ce-search-input:focus {
  border-color: var(--acec-gold);
  box-shadow: 0 0 0 3px rgba(247, 201, 93, 0.25);
}

.ce-search-input::placeholder {
  color: var(--acec-muted);
}

/* Modal Overlay */
.ce-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}

.ce-modal-overlay.open {
  display: flex;
}

.ce-modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}

.ce-modal-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--acec-navy);
  margin-bottom: 1rem;
}

.ce-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--acec-muted);
  line-height: 1;
}

.ce-modal-close:hover {
  color: var(--acec-navy);
}

/* Modal Option Card */
.ce-option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--acec-border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.ce-option-card:hover {
  border-color: var(--acec-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Options container — options render in DOM order (Manage first) */
#ceModalOptions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ce-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(247, 201, 93, 0.15);
  color: var(--acec-gold-dark);
  flex-shrink: 0;
}

.ce-option-icon svg {
  width: 22px;
  height: 22px;
}

.ce-option-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--acec-navy);
  line-height: 1.3;
}

.ce-option-desc {
  font-size: 0.8rem;
  color: var(--acec-muted);
  margin-top: 0.15rem;
}

/* Booth Personnel Validation Modal */
.ce-booth-modal-desc {
  font-size: 0.9rem;
  color: var(--acec-gray);
  margin-bottom: 1.25rem;
  font-family: var(--font-main);
}

.ce-booth-error {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-sm);
  color: #856404;
  font-size: 0.875rem;
  font-family: var(--font-main);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.ce-booth-input-row {
  margin-bottom: 1.25rem;
}

.ce-booth-input {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--acec-border);
  padding: 0 1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--acec-navy);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: 0.05em;
}

.ce-booth-input:focus {
  border-color: var(--acec-gold);
  box-shadow: 0 0 0 3px rgba(247, 201, 93, 0.25);
}

.ce-booth-input::placeholder {
  color: var(--acec-muted);
  letter-spacing: normal;
}

.ce-booth-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ce-booth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-btn);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  border: 1.5px solid var(--acec-gold);
}

/* Cancel — outline (mirrors view-btn) */
.ce-booth-btn--outline {
  background-color: transparent;
  color: var(--acec-navy);
  font-weight: 400;
}

.ce-booth-btn--outline:hover {
  background-color: var(--acec-gold);
  color: var(--acec-navy);
}

/* Validate — gold filled (mirrors purchase-btn / register-btn) */
.ce-booth-btn--filled {
  background-color: var(--acec-gold);
  color: var(--acec-navy);
  font-weight: 700;
}

.ce-booth-btn--filled:hover {
  background-color: var(--acec-btn-hover-bg);
  color: var(--acec-navy);
}

.ce-booth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}


/* ============================================================
   MY EVENTS TAB
   ============================================================
   The tab reuses the Conferences & Events search and sub-tab
   styles, but lists registrations as full-width rows rather
   than as a card grid: an event title needs the width to
   survive, and a member looking for one registration reads
   down a list faster than across a grid.

   The row is modelled on the Series overview class row in
   EducationDetail.css (.class-card-h). It is copied here under
   its own names rather than shared, so neither page's stylesheet
   depends on the other's — the two lists are free to diverge. */

.card-footer-section .d-grid--single {
  grid-template-columns: 1fr;
}

/* Filter pills, not sub-tabs. A tab claims you have moved to another view;
   these only narrow the one list, and looking like tabs said the wrong
   thing. Copied from MOPortal NationalDues.css .dues-pill so the two
   portals' filter rows read as the same control. */
/* First thing in the My Events pane now that the description line is gone,
   so it carries the gap the paragraph used to hold off the tab bar. */
.me-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.me-filter {
  padding: 6px 14px;
  border-radius: 999px;
  font: 500 12px var(--font-main);
  background: var(--acec-bg);
  color: var(--acec-navy);
  border: var(--border-width) solid var(--acec-gold);
  cursor: pointer;
  transition: all 0.15s;
}

.me-filter:hover {
  background: rgba(247, 201, 93, 0.1);
}

.me-filter.active {
  background: var(--acec-navy);
  color: var(--acec-gold);
  border-color: var(--acec-navy);
}

.me-filter__count {
  opacity: 0.8;
  margin-left: 4px;
}

.me-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.me-row {
  background: var(--acec-bg);
  border: var(--border-width-thin) solid var(--acec-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.me-row:hover {
  box-shadow: var(--acec-shadow-hover);
}

/* A cancelled registration is history, not an offer. Draining the row
   says so before the badge has to. */
.me-row--cancelled {
  opacity: 0.85;
}

.me-row__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: var(--sp-md);
}

.me-row__thumb {
  position: relative;
  width: 160px;
  flex-shrink: 0;
}

/* Padding-bottom rather than aspect-ratio: the thumbnail has to hold its
   16:9 shape in the browsers this portal still supports. */
.me-row__thumb-box {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--acec-light-gray);
}

.me-row__thumb-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-row__thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acec-light-gray);
}

.me-row__thumb-placeholder svg {
  width: 2rem;
  height: 2rem;
  color: var(--acec-muted);
}

/* Status badge — inside the thumbnail's top-left corner, where the browse
   card already puts its badges. It used to hang off the corner on negative
   offsets, which .me-row's overflow:hidden then clipped against the card
   edge. Icon only; the label is carried by the tooltip and by aria-label,
   so a screen reader is never left with just the icon. */
.me-row__status {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: var(--border-width) solid var(--acec-bg);
  box-shadow: var(--acec-shadow-card);
  color: var(--acec-bg);
  cursor: default;
}

/* A lucide glyph is an <svg>, which the flex box above centres exactly.
   The icon-font glyph this replaced carried its own baseline metrics and
   sat visibly off-centre in the circle. display:block removes the inline
   descender gap that would push it down again. */
.me-row__status svg {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 2.25px;
}

/* THE THREE STATUSES ARE ONE LADDER, warm to cool, and its order is the
   order a member can still act on them: upcoming is the only gold, past is
   brand navy, cancelled the palest. All three come from the ACEC scale —
   --acec-danger, the Bootstrap red this used to spend on cancelled, is not
   a brand colour and read as foreign next to the gold [Ahmet 09-08].

   Distinguished by COLOUR, not by opacity. Past and upcoming were briefly
   given the same palette with `opacity: .85` separating them; that is both
   too weak to see and already spoken for — .me-row--cancelled uses exactly
   that value to fade a cancelled row, so on this page .85 means cancelled. */

/* Upcoming takes the browse card's Registered badge colours
   (.ce-registered-badge above): black disc, acec-gold-dark ring and glyph. */
.me-row__status--upcoming {
  background: #000;
  border-color: var(--acec-gold-dark);
  color: var(--acec-gold-dark);
}

/* Past: brand navy, ringed in the warm cream so it still belongs to the
   gold-and-navy family without competing with upcoming for attention. */
.me-row__status--past {
  background: var(--acec-navy);
  border-color: var(--acec-border-light);
  color: var(--acec-border-light);
}

/* Cancelled: the palest of the three — the row itself is already faded, so
   the badge does not need to shout. Only the fill is set; the base rule's
   white ring and white glyph are already what this wants.

   --acec-muted, NOT --acec-light-gray: the thumbnail placeholder
   (.me-row__thumb-placeholder) is filled with light-gray, so a light-gray
   disc vanishes into it on every row that has no image and leaves the ring
   floating on its own. */
.me-row__status--cancelled { background: var(--acec-muted); }

.me-row__info {
  flex: 1;
  min-width: 0;
}

.me-row__title {
  font-family: var(--font-title);
  font-size: 0.975rem;
  font-weight: var(--fw-bold);
  color: var(--acec-navy);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.me-row__desc {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: var(--fw-normal);
  color: var(--acec-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.me-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-main);
  font-size: 0.83rem;
  font-weight: var(--fw-semibold);
  color: var(--acec-gray);
  margin-top: 0.4rem;
}

/* flex-start, not baseline: an <svg> has no baseline to align to, so a
   wrapping location would drag the icon down the block. The small top
   nudge is what lines it up with the first line of text instead. */
.me-row__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.me-row__meta-item svg {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.1rem;
  color: var(--acec-gold-dark);
}

/* Secondary to the date, but still a time a member has to read. --acec-muted
   is the placeholder grey and was far too faint against white for text that
   carries information; the weight drop alone is enough to rank it below the
   date. */
.me-row__meta-sub {
  color: var(--acec-gray);
  font-weight: var(--fw-normal);
}

/* Where the Series row puts its expand chevron. Two stacked icon buttons fit
   the same column, so the row keeps its shape and the title keeps the width.
   .education-card's button rules are scoped to that class and never reached
   this row, which is why these are restated rather than inherited. */
.me-row__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  flex-shrink: 0;
  width: 44px;
}

.me-row__action {
  display: block;
}

.me-row__actions .btn {
  width: 44px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s, border 0.2s;
  /* Icon only. The label stays in the DOM — collapsed, not removed — so it
     is still the button's accessible name and still the tooltip text
     meBuildRow lifts onto the wrapper. */
  font-size: 0;
  line-height: 0;
}

/* Sized in rem, so the font-size: 0 above (which collapses the label) has
   no effect on the glyph. */
.me-row__actions .btn svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}

/* THE SAME, FOR A GLYPH THAT IS A FONT AND NOT AN SVG. The cancelled row's
   action carries bi-receipt-cutoff, which meIconAction leaves as a real
   Bootstrap Icons glyph because lucide has no torn-edge receipt to convert
   it to. A font glyph inherits the button's font-size: 0 and would render
   at nothing, so it is sized here in rem exactly as the svg above is. */
.me-row__actions .btn i.bi::before {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.me-row__actions .view-btn {
  background-color: rgba(0, 0, 0, 0) !important;
  border: var(--border-width) solid var(--acec-gold) !important;
  color: var(--acec-navy) !important;
}

.me-row__actions .view-btn:hover {
  background-color: var(--acec-gold) !important;
}

.me-row__actions .purchase-btn {
  background-color: var(--acec-gold) !important;
  border: var(--border-width) solid var(--acec-gold) !important;
  color: var(--acec-navy) !important;
}

.me-row__actions .purchase-btn:hover {
  opacity: 0.85;
}

.me-row__actions .purchase-btn--disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

@media (max-width: 767.98px) {
  .me-row__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .me-row__thumb {
    width: 100%;
  }

  .me-row__actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
  }
}
