/* Physics SciEd Student Dashboard — Production Quick Tools & Header Polish v1.0
   Scope: compact quick-tool navigation cards and Research-style gold header edge.
   This stylesheet intentionally overrides existing student-dashboard card presentation
   without changing navigation targets or dashboard behavior. */

:root {
  --psc-dashboard-navy: #10233F;
  --psc-dashboard-gold: #F7C928;
  --psc-dashboard-cream: #FFFDF0;
  --psc-dashboard-soft: #FFF9C4;
  --psc-dashboard-border: #E9E2C8;
  --psc-dashboard-muted: #6B7280;
}

/* Match the Research workspace header treatment:
   navy header + 3px Physics SciEd gold edge + subtle inner highlight. */
.student-navbar {
  border-bottom: 3px solid var(--psc-dashboard-gold) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Tighten the dashboard introduction so navigation becomes the focal point. */
.student-welcome-panel {
  padding: 1.35rem 1.5rem !important;
}

.student-welcome-copy > div:last-child > p {
  max-width: 760px;
  margin-bottom: 0 !important;
}

/* Four equal production navigation cards on wide screens. */
.student-feature-links {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  margin-top: 1rem !important;
  align-items: stretch;
}

/* Normalize all quick tools. No permanent "featured" yellow cards. */
.student-feature-link,
.student-feature-link.student-library-feature-link,
.student-feature-link.student-assessment-feature-link,
.student-feature-link.student-research-feature-link {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.7rem !important;
  min-width: 0;
  min-height: 76px !important;
  padding: 0.75rem 0.85rem !important;
  border: 1px solid var(--psc-dashboard-border) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--psc-dashboard-navy) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease !important;
}

.student-feature-link:hover,
.student-feature-link:focus-visible,
.student-feature-link.student-library-feature-link:hover,
.student-feature-link.student-assessment-feature-link:hover,
.student-feature-link.student-research-feature-link:hover {
  border-color: var(--psc-dashboard-gold) !important;
  background: #FFFEF7 !important;
  color: var(--psc-dashboard-navy) !important;
  transform: translateY(-1px);
  outline: none;
}

/* Smaller, quieter icon treatment. */
.student-feature-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #EFE4B7 !important;
  background: #FFFDF4 !important;
  color: var(--psc-dashboard-navy) !important;
}

.student-feature-icon i {
  font-size: 1rem !important;
}

/* Keep the quick tools intentionally minimal. */
.student-feature-link > span:not(.student-feature-icon) {
  min-width: 0;
  display: block !important;
}

.student-feature-link strong {
  display: block !important;
  margin: 0 !important;
  color: var(--psc-dashboard-navy) !important;
  font-size: 0.88rem !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}

/* Descriptive copy and right-side arrows were creating unnecessary visual density.
   The links remain fully functional and keyboard accessible. */
.student-feature-link small,
.student-feature-link > i:last-child {
  display: none !important;
}

/* Responsive: 2 × 2 on medium displays, single column on phones. */
@media (max-width: 1050px) {
  .student-feature-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .student-welcome-panel {
    padding: 1rem !important;
  }

  .student-feature-links {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  .student-feature-link,
  .student-feature-link.student-library-feature-link,
  .student-feature-link.student-assessment-feature-link,
  .student-feature-link.student-research-feature-link {
    min-height: 66px !important;
    padding: 0.65rem 0.75rem !important;
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .student-feature-link {
    transition: none !important;
  }

  .student-feature-link:hover,
  .student-feature-link:focus-visible {
    transform: none !important;
  }
}
