/* ── TOOLBAR ── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
 
.search-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 30px;
  padding: 8px 14px;
  gap: 8px;
  width: 380px;
  transition: border-color 0.2s;
}
.search-wrapper:focus-within {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(21,144,138,0.15);
}
 
.search-icon { font-size: 16px; color: #888; flex-shrink: 0; }
 
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: #333;
  background: transparent;
}
 
.search-clear {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
}
.search-clear:hover { color: #333; }
 
.btn-create {
  background: var(--teal-dark);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 11px 26px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.btn-create:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.rarity-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0d4a4a;
  margin: 24px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #dce8e8;
}

/* ── EVENTS GRID ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}
 
/* ── EVENT CARD ── */
.event-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  height: 220px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s;
}
.event-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
 
.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.event-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.0) 100%);
}
 
.event-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
 
/* Badge "New Update" */
.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}