/* Student-facing hub shell — matches PulsePoint hub cards, tabs, and header */
html {
  scroll-padding-top: 120px;
}

.student-hub-body {
  font-family: "Inter", -apple-system, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  color: #e2e8f0;
  margin: 0;
}

.student-hub-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #ec4899 100%);
  padding: 28px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-hub-header h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.student-hub-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}

.student-hub-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.student-hub-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.student-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.student-hub-badge-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.student-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.student-hub-link:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(14, 165, 233, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.student-hub-link.primary {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.35), rgba(129, 140, 248, 0.25));
  border-color: rgba(45, 212, 191, 0.45);
  color: #fff;
}

.hub-tabs {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px;
  margin: 0 0 24px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hub-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.hub-tabs button:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(14, 165, 233, 0.5);
  color: #fff;
}

.hub-tabs button.active {
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  border-color: transparent;
  color: #fff;
}

.hub-tab-emoji {
  font-size: 1rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.student-hub-section {
  margin-bottom: 36px;
}

.student-hub-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-hub-section-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.student-hub-section-header .count {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cards-grid .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.cards-grid .card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cards-grid .card.completed {
  opacity: 0.88;
  border-color: rgba(34, 197, 94, 0.35);
}

.card-icon {
  font-size: 2em;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.85em;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75em;
  font-weight: 500;
}

.card-tag.assignment {
  background: rgba(20, 184, 166, 0.2);
  color: #14b8a6;
}

.card-tag.featured {
  background: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}

.card-tag.done {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.card-action {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  border: none;
  margin-top: 4px;
}

.featured-hub-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.featured-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.featured-hub-card h2 {
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.featured-hub-card p {
  color: #94a3b8;
  margin: 0 0 12px;
  line-height: 1.45;
}

.featured-hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.featured-hub-meta span {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.featured-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border: 1px solid rgba(251, 191, 36, 0.5);
  white-space: nowrap;
  transition: transform 0.15s;
}

.featured-hub-btn:hover {
  transform: scale(1.03);
}

.featured-hub-btn-watch {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: rgba(139, 92, 246, 0.5);
  justify-content: center;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.card-action-watch {
  background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
}

.catalog-status {
  text-align: center;
  color: #94a3b8;
  margin: -8px 0 18px;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
}

.empty-state-icon {
  display: block;
  font-size: 3.25rem;
  line-height: 1;
  margin-bottom: 12px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.empty-state-note {
  max-width: 36rem;
  margin: 10px auto 0;
  line-height: 1.5;
}

.empty-state-hint {
  max-width: 34rem;
  margin: 14px auto 0;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.empty-state-actions {
  margin-top: 18px;
}

.student-hub-main:has(.empty-state) .featured-hub-card {
  display: none !important;
}

@media (max-width: 768px) {
  .featured-hub-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .featured-hub-actions {
    width: 100%;
  }
  .featured-hub-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cards-grid .card:hover,
  .featured-hub-btn:hover,
  .student-hub-link:hover {
    transform: none;
  }
}
