/* ---- Public Events page (premium dark/gold, matches table-layout theme) ---- */

.ev-tabs {
  /* The page's decorative .background-overlay is position:absolute, so it
     paints above normal-flow content regardless of DOM order - without its
     own stacking context these buttons would render fine but be unclickable. */
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 40px;
  flex-wrap: wrap;
}

.ev-tab {
  background: transparent;
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #d8d0be;
  padding: 10px 28px;
  border-radius: 30px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ev-tab:hover {
  border-color: #ffd166;
  color: #ffd166;
}

.ev-tab.active {
  background: #ffd166;
  border-color: #ffd166;
  color: #171208;
  font-weight: 600;
}

.ev-pub-status {
  text-align: center;
  color: #a89c82;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 20px;
}

.ev-pub-empty {
  text-align: center;
  color: #8a8271;
  font-size: 14px;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.ev-pub-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.ev-pub-card {
  background: linear-gradient(155deg, #17130c 0%, #100d08 100%);
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ev-pub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.ev-pub-banner {
  height: 360px;
  background-size: cover;
  background-position: center;
  background-color: #1a1610;
  position: relative;
  display: flex;
  align-items: flex-end;
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.06);
}

.ev-pub-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(10, 8, 5, 0.9) 100%);
}

.ev-pub-banner-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  color: rgba(255, 209, 102, 0.25);
  font-size: 28px;
  letter-spacing: 4px;
}

.ev-pub-date-badge {
  position: relative;
  z-index: 1;
  margin: 16px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: #ffd166;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.ev-pub-gallery-badge {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  background: rgba(10, 8, 5, 0.55);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #ffd166;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.ev-pub-body {
  padding: 22px 24px 26px;
}

.ev-pub-body h3 {
  font-family: "Cinzel", serif;
  color: #ffd166;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.ev-pub-meta {
  color: #cfc7b6;
  font-size: 13.5px;
  margin: 0 0 10px;
}

.ev-pub-desc {
  color: #9a9282;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-pub-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.ev-pub-btn {
  display: inline-block;
}

.ev-pub-details-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: #ffd166;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ev-pub-details-btn:hover {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
}

@media (max-width: 600px) {
  .ev-pub-grid {
    grid-template-columns: 1fr;
  }

  .ev-pub-banner {
    height: 320px;
  }

  .ev-pub-body {
    padding: 20px 18px 22px;
  }

  .ev-pub-body h3 {
    font-size: 19px;
  }

  .ev-pub-btn-row {
    flex-direction: column;
  }

  .ev-pub-details-btn,
  .ev-pub-btn-row .ev-pub-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
