@import './variables.css';

* {
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, var(--bg-gradient-start) 0, var(--bg-gradient-mid) 40%, var(--bg-gradient-end) 100%);
  color: var(--text-main);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */
.top-bar {
  padding: 0.8rem 1.2rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(14px);
  color: var(--text-light);
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, var(--success), var(--info), #6366f1, var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.9);
}

.logo-text h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.logo-text p {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 118, 110, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  font-size: 0.78rem;
  color: var(--success-light);
}

.top-pill strong {
  color: #4ade80;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
}

/* CONTENT LAYOUT */
.content {
  flex: 1;
  max-width: var(--max-width);
  margin: 2rem auto 3rem auto;
  padding: 0 1rem;
}

.app-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
}

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

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-info-card {
  background: radial-gradient(circle at top left, #e0f2fe 0, var(--card-bg) 40%);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid #bae6fd;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  font-size: 0.9rem;
}

.user-info-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.user-info-card span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.sidebar-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--card-border);
}

.sidebar-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.channel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.channel {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  transition: background 0.15s;
}

.channel:hover {
  background: var(--card-border);
}

.channel.active {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 500;
}

.tips-box {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tip-line {
  margin: 0.15rem 0;
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
