/* THE COLLECTIVE (EXPLORE > THE COLLECTIVE): spotlight, member grid, feed, intro submission and review */
.co-page {
  position: fixed;
  z-index: 16;
  top: 110px;
  right: 26px;
  bottom: 76px;
  left: 248px;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.co-page.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.co-inner {
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 22px 28px;
  background: linear-gradient(rgba(8, 8, 10, 0.94), rgba(8, 8, 10, 0.94)), url("assets/images/member-medallions.jpg") center / cover no-repeat;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  font-family: Arial, sans-serif;
  color: #f0e6c8;
}

.co-inner::-webkit-scrollbar { display: none; }

.co-kicker {
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #5fc8ff;
  text-align: center;
  margin-bottom: 18px;
}

.co-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 20px;
}

.co-h {
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: #f3d77a;
  margin: 0 0 12px;
}

.co-card {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.35);
  padding: 16px;
  margin-bottom: 18px;
}

/* Spotlight */
.co-spot-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.co-spot-media iframe,
.co-spot-media .co-novideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.co-novideo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6b8;
}

.co-spot-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.co-spot-nav button,
.co-btn {
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #f7e7b4;
  background: linear-gradient(180deg, #1d2a44, #0c1322);
  border: 1px solid #c9a24a;
  padding: 7px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.co-spot-nav button:hover,
.co-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(255, 210, 110, 0.55);
}

.co-spot-name {
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #fff3cc;
  margin: 0 0 10px;
}

.co-qa { margin: 0 0 12px; }
.co-qa dt { color: #f3d77a; font-weight: 700; margin-top: 8px; font-size: 14px; }
.co-qa dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }

/* Member grid: squares that animate in and react on hover */
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.co-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 50% 35%, rgba(60, 120, 220, 0.3), transparent 65%), #0b0d14;
  opacity: 0;
  cursor: default;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.co-grid.is-entering .co-tile {
  animation: coIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes coIn {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Name stays bottom-left */
.co-tile-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  text-align: left;
  background: linear-gradient(to top, rgba(4, 6, 12, 0.95), rgba(4, 6, 12, 0.1));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.co-tile-text h4 {
  margin: 0;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #fff3cc;
}

/* Focus sits at the top-left */
.co-tile-focus {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px;
  text-align: left;
  background: linear-gradient(to bottom, rgba(4, 6, 12, 0.92), rgba(4, 6, 12, 0.1));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.co-tile-focus p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #c9d6ea;
  opacity: 0.9;
}

.co-tile-more {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
  color: #e6eefc;
  background: rgba(4, 6, 12, 0.88);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.co-tile:hover,
.co-tile:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(95, 200, 255, 0.4);
  border-color: #f3d77a;
  outline: none;
}

/* On hover the name and focus fade out and the bio fades in */
.co-tile:hover .co-tile-text,
.co-tile:focus-visible .co-tile-text,
.co-tile:hover .co-tile-focus,
.co-tile:focus-visible .co-tile-focus { opacity: 0; transform: translateY(8px); }
.co-tile:hover .co-tile-more,
.co-tile:focus-visible .co-tile-more { opacity: 1; }

/* Feed */
.co-feed { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; scrollbar-width: none; }
.co-feed::-webkit-scrollbar { display: none; }

.co-feed-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  animation: coFeedIn 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes coFeedIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.co-tag {
  display: inline-block;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #0b0d14;
  background: #f3d77a;
  padding: 2px 6px;
  margin-right: 6px;
}

.co-feed-item.is-discord .co-tag { background: #5fc8ff; }
.co-feed-item.is-intro .co-tag { background: #c9a24a; }
.co-feed-item a { color: #7fd6ff; }
.co-time { display: block; font-size: 11px; color: #8a96a8; margin-top: 2px; }

/* Forms and review */
.co-field { display: block; margin-bottom: 12px; }
.co-field span {
  display: block;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #f3d77a;
  margin-bottom: 4px;
}

.co-field input,
.co-field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  color: #f0e6c8;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #8a6a3a;
  padding: 7px 9px;
}

.co-field textarea { min-height: 70px; resize: vertical; }
.co-status { font-size: 13px; color: #c9d6ea; min-height: 18px; }
.co-review-item { border-top: 1px solid rgba(212, 175, 55, 0.25); padding: 12px 0; }
.co-review-item h4 { margin: 0 0 6px; font-family: "Cinzel", Arial, sans-serif; color: #fff3cc; }
.co-review-item .co-btn { margin-right: 8px; }

@media (max-width: 1100px) {
  .co-layout { grid-template-columns: 1fr; }
}
