/* src/styles/group-sessions.css — Solstice Group Sessions */

.gs-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 12px; overflow-y: auto;
  backdrop-filter: blur(4px);
}
.gs-modal-overlay[hidden] { display: none !important; }
.gs-modal {
  background: #0e0b1e;
  border: 1px solid rgba(180,150,255,0.2);
  border-radius: 18px;
  width: min(560px, 96vw);
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}
.gs-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; background: #0e0b1e; z-index: 2;
}
.gs-modal-title { font-size: 1rem; font-weight: 700; color: #e8dcff; letter-spacing: 0.02em; }
.gs-modal-close {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.gs-modal-body { padding: 20px; }

.gs-btn {
  padding: 9px 16px; border-radius: 10px;
  border: 1px solid rgba(180,150,255,0.25);
  background: rgba(130,100,255,0.1);
  color: #d8c8ff; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.gs-btn:hover { background: rgba(130,100,255,0.22); }
.gs-btn.primary { background: linear-gradient(135deg,#5ec6ff,#a64fff); border: none; color: #fff; }
.gs-btn.small { padding: 6px 12px; font-size: 0.8rem; }
.gs-btn.large { padding: 12px 22px; font-size: 0.95rem; width: 100%; }
.gs-btn.danger { border-color: rgba(255,120,120,0.4); color: #ff9a9a; background: rgba(255,80,80,0.08); }

.gs-label { display: block; font-size: 0.78rem; color: rgba(200,185,255,0.6);
  margin: 14px 0 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.gs-input {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180,150,255,0.2);
  border-radius: 10px; color: #e8dcff; font-size: 0.9rem;
  box-sizing: border-box;
}
.gs-input:focus { outline: none; border-color: rgba(180,150,255,0.5); }

.gs-loading, .gs-empty, .gs-invite-empty { color: rgba(200,185,255,0.5); padding: 16px 0; font-size: 0.9rem; }
.gs-error { color: #ff9a9a; padding: 12px; background: rgba(255,80,80,0.08); border-radius: 10px; }

.gs-session-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gs-session-card {
  padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.gs-session-title { font-size: 0.95rem; font-weight: 600; color: #e8dcff; margin-bottom: 4px; }
.gs-session-meta { font-size: 0.78rem; color: rgba(200,185,255,0.5); margin-bottom: 10px; }
.gs-session-actions { display: flex; gap: 8px; }
.gs-status { text-transform: uppercase; font-size: 0.68rem; padding: 2px 8px; border-radius: 10px; letter-spacing: 0.05em; }
.gs-status-draft { background: rgba(150,150,150,0.2); color: #bbb; }
.gs-status-scheduled { background: rgba(94,198,255,0.18); color: #7dd3fc; }
.gs-status-live { background: rgba(125,232,176,0.2); color: #7de8b0; }
.gs-status-ended, .gs-status-cancelled { background: rgba(150,120,150,0.15); color: #a99; }

.gs-back { background: none; border: none; color: rgba(200,185,255,0.6); cursor: pointer; font-size: 0.85rem; padding: 0 0 8px; }
.gs-editor-title { font-size: 1.05rem; color: #e8dcff; margin: 4px 0 8px; }

.gs-segment { border: 1px solid rgba(180,150,255,0.15); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,0.02); }
.gs-segment-head { display: flex; gap: 8px; margin-bottom: 10px; }
.gs-seg-title { flex: 1; padding: 6px 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(180,150,255,0.2); border-radius: 8px; color: #e8dcff; font-weight: 600; }
.gs-seg-remove { background: none; border: none; color: rgba(255,120,120,0.6); font-size: 1.2rem; cursor: pointer; }
.gs-segment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gs-field label { display: block; font-size: 0.68rem; color: rgba(200,185,255,0.45); margin-bottom: 3px; }
.gs-field select, .gs-field input {
  width: 100%; padding: 7px 9px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180,150,255,0.18); border-radius: 8px; color: #e0d8f8; font-size: 0.82rem;
  box-sizing: border-box;
}

.gs-invite-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.gs-invite-add { display: flex; gap: 8px; }
.gs-invite-add .gs-input { flex: 1; }
.gs-invite-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.gs-invite-email { flex: 1; font-size: 0.85rem; color: #d8c8ff; }
.gs-invite-status { font-size: 0.72rem; color: rgba(200,185,255,0.5); text-transform: uppercase; }
.gs-invite-remove { background: none; border: none; color: rgba(255,120,120,0.5); font-size: 1.1rem; cursor: pointer; }

.gs-joinlink { margin-top: 16px; }
.gs-link-row { display: flex; gap: 8px; }
.gs-link-row .gs-input { flex: 1; font-size: 0.78rem; }
.gs-link-note { font-size: 0.72rem; color: rgba(200,185,255,0.4); margin-top: 6px; }

.gs-editor-actions { margin-top: 20px; }
.gs-editor-actions .gs-btn { width: 100%; }

/* Live room */
.gs-live { text-align: center; padding: 10px 0; }
.gs-live-title { font-size: 1.2rem; font-weight: 700; color: #e8dcff; margin-bottom: 20px; }
.gs-now-playing { padding: 24px; border-radius: 16px;
  background: radial-gradient(ellipse at 50% 40%, rgba(130,100,255,0.15), rgba(20,14,38,0.4));
  border: 1px solid rgba(180,150,255,0.2); margin-bottom: 20px; }
.gs-np-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(200,185,255,0.5); margin-bottom: 8px; }
.gs-np-title { font-size: 1.3rem; font-weight: 700; color: #e8dcff; margin-bottom: 6px; }
.gs-np-detail { font-size: 0.82rem; color: rgba(200,185,255,0.55); }
.gs-np-guidance { margin-top: 12px; font-size: 0.9rem; color: rgba(220,210,255,0.75); line-height: 1.5; font-style: italic; }

.gs-agenda-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.gs-prog-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: background 0.3s; }
.gs-prog-dot.active { background: #a64fff; box-shadow: 0 0 10px rgba(166,79,255,0.6); }
.gs-prog-dot.done { background: rgba(125,232,176,0.6); }

.gs-host-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gs-participant-note { font-size: 0.95rem; color: rgba(200,185,255,0.7); padding: 16px; }
.gs-live-ended { font-size: 1rem; color: rgba(200,185,255,0.7); padding: 30px; line-height: 1.6; }

.gs-join-gate { text-align: center; padding: 20px 0; }
.gs-join-gate p { color: rgba(220,210,255,0.75); line-height: 1.5; margin-bottom: 12px; }
.gs-join-note { font-size: 0.85rem; color: rgba(200,185,255,0.5); }

@media (max-width: 600px) {
  .gs-segment-grid { grid-template-columns: 1fr; }
  .gs-modal { width: 100%; }
}
