/* ─────────────────────────────────────────────────────────
   connect.css — /connect page styles
   ───────────────────────────────────────────────────────── */

/* ── Button variant ── */
.btn-purple { border-color: var(--purple); color: var(--purple); }
.btn-purple:hover { background: rgba(155,89,255,0.08); }

/* ── Stream panel ── */
.stream-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--text-ghost);
}
.stream-panel.is-live { border-top-color: var(--red); }

/* ── OFFLINE STATE ── */
.offline-body {
  display: grid;
  grid-template-columns: 1fr 300px;
}
.offline-left { padding: 24px; }
.offline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-ghost);
}
.offline-label {
  font-size: 10px;
  color: var(--text-ghost);
  letter-spacing: .12em;
}
.channel-name {
  font-size: 26px;
  color: var(--text);
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.channel-name span { color: var(--cyan); }
.channel-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 520px;
}
.stream-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 20px;
}
.sstat-val {
  font-size: 20px;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 3px;
}
.sstat-label {
  font-size: 8px;
  color: var(--text-ghost);
  letter-spacing: .12em;
}
.stream-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.offline-right {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.aria-card {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  flex: 1;
}
.aria-card-label {
  font-size: 8px;
  color: var(--cyan);
  letter-spacing: .15em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.aria-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
.aria-card-text {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.8;
}
.schedule-card { padding: 16px; }
.sched-label {
  font-size: 8px;
  color: var(--text-ghost);
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.sched-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}
.sched-row:last-child { border-bottom: none; }
.sched-day { color: var(--cyan); width: 30px; font-size: 9px; }
.sched-time { color: var(--text-dim); }
.sched-type { font-size: 9px; color: var(--text-ghost); margin-left: auto; }

/* ── LIVE STATE ── */
.live-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--red);
  letter-spacing: .12em;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 1.2s ease-in-out infinite;
}
.live-title { font-size: 13px; color: var(--text); flex: 1; }
.live-viewers {
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-body { display: grid; grid-template-columns: 1fr 280px; }
.live-embed {
  background: #000;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-embed iframe { width: 100%; height: 100%; border: none; }
.live-chat {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.chat-hdr {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  color: var(--text-ghost);
  letter-spacing: .1em;
}
.chat-msgs {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-msg { font-size: 10px; line-height: 1.5; }
.cm-user { color: var(--cyan); margin-right: 4px; }
.cm-text { color: var(--text-dim); }
.chat-msg.aria-msg .cm-user { font-weight: 700; }
.chat-msg.aria-msg .cm-text { color: var(--text); }
.chat-in {
  padding: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
}
.chat-input {
  flex: 1;
  font-family: var(--font);
  font-size: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 8px;
}
.chat-input::placeholder { color: var(--text-ghost); }
.chat-input:focus { outline: none; border-color: var(--cyan); }
.chat-send {
  font-family: var(--font);
  font-size: 9px;
  background: var(--cyan);
  color: #000;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: .08em;
  font-weight: 700;
}

/* ── SOCIAL GRID ── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 16px;
}
.social-card {
  background: var(--bg2);
  padding: 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  position: relative;
}
.social-card:hover { background: var(--bg3); }
.sc-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-shrink: 0;
  background: var(--bg3);
  transition: all .15s;
  letter-spacing: 0;
}
.social-card:hover .sc-icon { border-color: var(--cyan); color: var(--cyan); }
.sc-icon.twitch { color: var(--purple); border-color: rgba(155,89,255,0.25); }
.sc-icon.kick { color: var(--cyan); border-color: var(--border-bright); }
.sc-icon.discord { color: var(--blue); border-color: rgba(0,170,255,0.25); }
.sc-body { flex: 1; min-width: 0; }
.sc-name { font-size: 12px; color: var(--text); margin-bottom: 3px; }
.sc-url { font-size: 9px; color: var(--cyan); letter-spacing: .04em; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-desc { font-size: 9px; color: var(--text-ghost); line-height: 1.6; margin-bottom: 5px; }
.sc-meta { font-size: 9px; color: var(--text-ghost); }
.sc-meta b { color: var(--text-dim); font-weight: 400; }
.sc-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-ghost); transition: all .15s; }
.social-card:hover .sc-arrow { color: var(--cyan); right: 10px; }

/* ── COMMUNITY GRID ── */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 16px;
}
.community-card { background: var(--bg2); padding: 22px; }
.cc-eyebrow { font-size: 9px; color: var(--text-ghost); letter-spacing: .15em; margin-bottom: 10px; }
.cc-title { font-size: 16px; color: var(--text); margin-bottom: 10px; letter-spacing: .03em; }
.cc-title span { color: var(--cyan); }
.cc-desc { font-size: 11px; color: var(--text-dim); line-height: 1.8; margin-bottom: 16px; }
.cc-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cc-stat-val { font-size: 18px; color: var(--cyan); line-height: 1; margin-bottom: 3px; }
.cc-stat-label { font-size: 8px; color: var(--text-ghost); letter-spacing: .1em; }
.cc-actions { display: flex; gap: 8px; }

/* ── SPONSOR STRIP ── */
.sponsor-strip {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sponsor-label {
  font-size: 9px;
  color: var(--text-ghost);
  letter-spacing: .12em;
  border: 1px solid var(--border);
  padding: 2px 8px;
  white-space: nowrap;
}
.sponsor-text { font-size: 11px; color: var(--text-dim); flex: 1; line-height: 1.5; }
.sponsor-text b { color: var(--text); font-weight: 400; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .offline-body { grid-template-columns: 1fr; }
  .offline-right { border-left: none; border-top: 1px solid var(--border); }
  .live-body { grid-template-columns: 1fr; }
  .live-chat { border-left: none; border-top: 1px solid var(--border); }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .community-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .social-grid { grid-template-columns: 1fr; }
  .sc-arrow { display: none; }
}
