/* WAVE home — full lookalike with integrated photo cards */
:root {
  --bg: #070f1c;
  --bg-elev: #0a1526;
  --bg-card: #0c1830;
  --rail-bg: #060d18;
  --gold: #c9b27a;
  --gold-bright: #d4af37;
  --gold-btn: #c9a84a;
  --text: #f5f2ea;
  --text-dim: rgba(245, 242, 234, 0.58);
  --text-mute: rgba(245, 242, 234, 0.42);
  --border: rgba(201, 178, 122, 0.18);
  --border-soft: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --rail: 232px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 72% -8%, rgba(201,178,122,0.055), transparent 55%),
    var(--bg);
}

/* ——— Left rail ——— */
.rail {
  background: linear-gradient(180deg, #050c16 0%, var(--rail-bg) 100%);
  border-right: 1px solid var(--border-soft);
  padding: 1.25rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0.55rem 0.65rem;
}
.brand-text {
  font-family: var(--serif);
  letter-spacing: 0.32em;
  font-size: 0.95rem;
  font-weight: 500;
}
.rail-nav { display: flex; flex-direction: column; gap: 0.12rem; flex: 1; }
.nav-section {
  margin: 0.95rem 0 0.28rem;
  padding: 0 0.65rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.52rem 0.65rem;
  border-radius: 10px;
  color: rgba(245,242,234,0.72);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item:hover { background: rgba(255,255,255,0.035); color: var(--text); }
.nav-item.active {
  background: rgba(201,178,122,0.12);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(201,178,122,0.35);
}
.nav-item.active .nav-ico { color: var(--gold); }
.nav-ico {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.85;
  color: inherit;
}
.rail-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.nav-item.muted { color: var(--text-dim); font-size: 0.76rem; }

/* ——— Main ——— */
.main {
  padding: 1.2rem 1.6rem 2rem;
  min-width: 0;
  max-width: 1280px;
}
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.greet h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.date-line {
  margin: 0.28rem 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 240px;
  width: min(340px, 36vw);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-size: 0.78rem;
}
.search-ico { display: grid; place-items: center; opacity: 0.75; }
.icon-btn, .lang-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border-radius: 10px;
  padding: 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
}
.icon-btn:hover, .lang-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.lang-btn {
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1a2a44, #0d1a2e);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
.avatar.sm { width: 32px; height: 32px; font-size: 0.62rem; }
.status-line {
  margin: 0 0 1.05rem;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  color: var(--text-mute);
  font-weight: 500;
}

/* ——— Workspace: main + right ——— */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.78fr);
  gap: 1rem;
  align-items: start;
}
.col-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.col-right { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.row-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
}
.stub {
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background:
    linear-gradient(155deg, rgba(201,178,122,0.05), transparent 48%),
    var(--bg-elev);
  min-height: 168px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-head.row { margin-bottom: 0.15rem; }
.card-ico.gold { color: var(--gold); display: grid; place-items: center; }
.stub-body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.32;
  color: var(--text);
  flex: 1;
}
.kicker {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
}
.kicker.muted { color: var(--text-dim); }

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  align-self: flex-start;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.solid {
  background: linear-gradient(180deg, #d4b45a, var(--gold-btn));
  color: #0a1628;
  box-shadow: 0 4px 14px rgba(201,178,122,0.28);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(245,242,234,0.32);
}
.btn.sm { padding: 0.42rem 0.95rem; font-size: 0.72rem; }

.nom-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
}
.avatar-stack {
  display: flex;
}
.avatar-stack span {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.5rem;
  font-weight: 700;
  background: #15233a;
  border: 1.5px solid var(--bg-elev);
  color: var(--gold);
  margin-left: -6px;
}
.avatar-stack span:first-child { margin-left: 0; }
.nom-foot-txt {
  font-size: 0.65rem;
  color: var(--text-mute);
}

/* ——— Photo cards: CSS backgrounds + scrims ——— */
.photo-card {
  isolation: isolate;
  background-color: #06101c;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 200px;
}
.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.experiences {
  min-height: 220px;
  background-image:
    linear-gradient(180deg, rgba(7,16,31,0.42) 0%, rgba(7,16,31,0.18) 32%, rgba(7,16,31,0.78) 72%, rgba(5,12,24,0.96) 100%),
    linear-gradient(90deg, rgba(7,16,31,0.55) 0%, rgba(7,16,31,0.15) 60%, transparent 100%),
    url("experience-stage.png");
  background-size: auto 100%;
  background-position: center center;
}
.event {
  min-height: 240px;
  background-image:
    linear-gradient(105deg, rgba(5,12,24,0.94) 0%, rgba(7,16,31,0.72) 34%, rgba(7,16,31,0.28) 62%, rgba(7,16,31,0.45) 100%),
    linear-gradient(180deg, rgba(7,16,31,0.15) 0%, rgba(5,12,24,0.72) 100%),
    url("event-farinetti.png");
  background-size: cover;
  background-position: 50% 18%;
}
.card-content {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  min-height: inherit;
}
.exp-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.star {
  color: var(--gold-bright);
  font-size: 0.95rem;
  filter: drop-shadow(0 0 6px rgba(212,175,55,0.45));
}
.exp-copy {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.32;
  max-width: 15ch;
  flex: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.experiences .btn { margin-top: auto; }

.event-content {
  max-width: 54%;
  justify-content: center;
  gap: 0.42rem;
  position: relative;
  padding-bottom: 2.6rem;
}
.event-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.event-meta {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: rgba(245,242,234,0.82);
  line-height: 1.45;
}
.carousel-ctrl {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dot-bar {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
}
.dot-bar.active {
  width: 18px;
  border-radius: 999px;
  background: var(--gold-btn);
}
.round-nav {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(7,16,31,0.45);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

/* Community composer */
.community-composer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.composer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.composer-ph {
  flex: 1;
  color: var(--text-mute);
  font-size: 0.82rem;
}

/* Right column lists */
.side-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}
.link-gold {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}
.link-gold:hover { text-decoration: underline; }
.nominees, .events-soon { min-height: auto; }
.nom-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nom-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nom-info { flex: 1; min-width: 0; }
.nom-info b { display: block; font-size: 0.84rem; font-weight: 600; }
.nom-info em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(201,178,122,0.12);
  border: 1px solid var(--border);
  color: var(--gold);
  flex-shrink: 0;
}
.badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.ok {
  background: rgba(46, 140, 90, 0.28);
  color: #7ee0a4;
}
.badge.pending {
  background: rgba(201, 160, 60, 0.22);
  color: #e2c46a;
}
.badge.outline {
  background: transparent;
  color: #7ee0a4;
  border: 1px solid rgba(126, 224, 164, 0.45);
}
.soon-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.35rem;
}
.date-block {
  width: 44px;
  height: 48px;
  border-radius: 10px;
  background: rgba(201,178,122,0.1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.date-block .mon {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}
.date-block .day {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}
.soon-info { flex: 1; min-width: 0; }
.soon-info b { display: block; font-size: 0.82rem; font-weight: 600; }
.soon-info em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .event-content { max-width: 70%; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .rail-nav { display: none; }
  .rail-foot { display: none; }
  .row-top { grid-template-columns: 1fr; }
  .event-content { max-width: 92%; }
  .search { width: 100%; min-width: 0; }
  .main { padding: 1rem 1rem 1.5rem; }
  .carousel-ctrl { position: static; margin-top: 0.75rem; }
  .event-content { padding-bottom: 1.15rem; }
}
