/* layout wrapper already from style.css: we just add dashboard-specific stuff */

.dashboard-main {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1.8fr) 340px;
  gap: 1.75rem;
  align-items: flex-start;
}

/* cards */

.channel-card,
.profile-card,
.pets-card {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
  border-radius: 24px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.channel-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.channel-sub {
  font-size: 0.85rem;
  color: var(--text-sub, #9ca3af);
  margin-bottom: 1rem;
}

/* profile */

.profile-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #4f46e5, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 1.2rem;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-name {
  font-weight: 600;
  font-size: 1rem;
}

.profile-rank {
  font-size: 0.78rem;
  color: #9ca3af;
}

.profile-xp {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* pets */

.pets-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.pets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
}

.pet-pill img {
  width: 18px;
  height: 18px;
}

/* tabs */

.channel-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.channel-tab {
  border: none;
  cursor: pointer;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.9rem;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.channel-tab.active {
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  color: #0f172a;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

/* panels */

.channel-panel {
  display: none;
}

.channel-panel.active {
  display: block;
}

/* forms + messages */

.form-group {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.55rem 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.85rem;
  outline: none;
}

.form-group textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 70px;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row .form-group {
  flex: 1;
}

.form-error {
  color: #fecaca;
  font-size: 0.8rem;
  min-height: 1rem;
}

.form-success {
  color: #bbf7d0;
  font-size: 0.8rem;
  min-height: 1rem;
}

.channel-messages {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 260px;
  overflow-y: auto;
}

/* general messages */

.general-message {
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.8);
  font-size: 0.85rem;
}

.general-author {
  font-weight: 600;
  margin-right: 0.4rem;
}

/* cards */

.card-message {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.84rem;
}

.card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.card-tagline {
  font-weight: 600;
  margin: 0.2rem 0;
}

.card-body {
  margin-top: 0.2rem;
}

.card-source a {
  color: #38bdf8;
  font-size: 0.75rem;
  word-break: break-all;
}

/* highlight colors */

.card-highlight-yellow {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.65);
}

.card-highlight-blue {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
}

.card-highlight-pink {
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.7);
}

/* members */

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.8);
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
}

.member-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #4f46e5, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 0.8rem;
  font-weight: 600;
}

.member-name {
  font-weight: 600;
}

.member-bio {
  font-size: 0.8rem;
  color: #9ca3af;
}

.member-badge {
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.6);
}

/* leaderboard – nudge right so it doesn’t overlap tabs */

.dash-right {
  margin-top: 0.35rem;
}

#leaderboard h2 {
  margin-bottom: 0.6rem;
}

.leader-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.83rem;
  margin-bottom: 0.3rem;
}

.leader-name {
  font-weight: 600;
}

/* settings */

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.4rem;
}

.settings-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
}

.settings-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.settings-note {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.4rem;
}

/* polls */

.poll-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.poll-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.7rem 0.8rem;
  font-size: 0.84rem;
}

.poll-question {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.poll-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.poll-btn {
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
  cursor: pointer;
}

.poll-btn.voted {
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  border-color: transparent;
  color: #0f172a;
}
