/* ── HUB DO ÁGORA (AGORA OBSCUR) — DESIGN SYSTEM ── */
:root {
  --bg-dark: #07070a;
  --bg-card: rgba(18, 18, 26, 0.85);
  --bg-card-hover: rgba(26, 26, 38, 0.95);
  --border-gold: rgba(201, 162, 39, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --gold-primary: #c9a227;
  --gold-bright: #facc15;
  --gold-glow: rgba(201, 162, 39, 0.5);
  --discord-purple: #5865f2;
  --discord-hover: #4752c4;
  --green-accent: #22c55e;
  --red-accent: #ef4444;
  --blue-accent: #3b82f6;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(201, 162, 39, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(88, 101, 242, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 3rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navbar */
.hub-navbar {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.04em;
}

.brand-logo span {
  color: var(--gold-bright);
}

.brand-badge {
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.5);
  color: #818cf8;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-discord-login {
  background: var(--discord-purple);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-discord-login:hover {
  background: var(--discord-hover);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

/* User Header Card */
.user-profile-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .user-profile-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 15px var(--gold-glow);
  object-fit: cover;
}

.avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--gold-bright);
  color: #000;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #000;
}

.user-info h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .user-info h2 {
    justify-content: center;
  }
}

.user-role-tag {
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.xp-bar-container {
  margin-top: 0.6rem;
  max-width: 450px;
}

.xp-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.xp-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a227, #facc15);
  width: 68%;
  border-radius: 10px;
  box-shadow: 0 0 10px var(--gold-glow);
  transition: width 0.5s ease;
}

.user-stats-grid {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 768px) {
  .user-stats-grid {
    justify-content: center;
  }
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-bright);
}

.stat-item .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tabs Navigation */
.hub-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #000;
  background: linear-gradient(135deg, #c9a227, #facc15);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Main Grid Layout */
.grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

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

/* Cards & Sections */
.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card-box:hover {
  border-color: var(--border-gold);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.badge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.badge-card.unlocked {
  border-color: var(--border-gold);
  background: rgba(201, 162, 39, 0.08);
}

.badge-card.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.badge-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.badge-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Event List */
.event-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--gold-bright);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.event-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.event-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.event-timer {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.kanban-col {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.kanban-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.kanban-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.kanban-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

/* Leaderboard */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.leader-rank {
  font-weight: 900;
  width: 24px;
  color: var(--gold-bright);
}

.leader-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.leader-xp {
  font-weight: 800;
  color: var(--gold-bright);
}

/* Notification Prompt Banner */
.notification-banner {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(201, 162, 39, 0.2));
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-push-enable {
  background: #fff;
  color: #000;
  font-weight: 800;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition);
}

.btn-push-enable:hover {
  background: var(--gold-bright);
}
