/**
 * @file
 * Student navigation bar styles.
 * Extracted from inline styles + new section menu & governance sub-nav.
 */

/* =============================================
   Row 1: Breadcrumb bar
   ============================================= */
.student-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  font-size: 14px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* When there is no section menu below, round the bottom too */
.student-nav--standalone {
  border-radius: 8px;
  margin-bottom: 20px;
}

.student-nav__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.student-nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-nav__home {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  transition: background 0.2s;
}

.student-nav__home:hover {
  background: rgba(255,255,255,0.25);
  color: white;
  text-decoration: none;
}

.student-nav__home-icon {
  font-size: 16px;
}

.student-nav__sep {
  color: rgba(255,255,255,0.5);
  margin: 0 2px;
}

.student-nav__crumb {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.student-nav__crumb:hover {
  color: white;
  text-decoration: underline;
}

.student-nav__current {
  color: white;
  font-weight: 500;
}

.student-nav__identity {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  padding: 4px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  transition: background 0.2s;
}

.student-nav__identity:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
}

.student-nav__avatar {
  font-size: 18px;
  display: flex;
  align-items: center;
}

.student-nav__username {
  font-weight: 500;
}

.student-nav__student {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

.student-nav__logout {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.student-nav__logout:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
}

.student-nav__logout-icon {
  font-size: 14px;
}

/* Avatar image styles */
.marsh-avatar-img {
  border-radius: 50%;
  object-fit: cover;
}

.marsh-avatar-img--nav {
  width: 24px;
  height: 24px;
}

.marsh-avatar-img--sm {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.marsh-avatar-img--md {
  width: 48px;
  height: 48px;
}

.marsh-avatar-img--lg {
  width: 80px;
  height: 80px;
}

/* =============================================
   Row 2: Section menu
   ============================================= */
.student-nav__sections {
  display: flex;
  background: #1e3a5f;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.student-nav__sections::-webkit-scrollbar {
  display: none;
}

.student-nav__sections a {
  flex: 1 0 auto;
  padding: 10px 20px;
  text-align: center;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.student-nav__sections a:last-child {
  border-right: none;
}

.student-nav__sections a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
  text-decoration: none;
}

.student-nav__sections a.is-active {
  background: rgba(255,255,255,0.15);
  color: white;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #63b3ed;
}

/* =============================================
   Row 3: Governance sub-navigation
   ============================================= */
.student-nav__gov-sub {
  display: flex;
  background: #2d4a6f;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 20px;
  border-radius: 0 0 8px 8px;
}

.student-nav__gov-sub::-webkit-scrollbar {
  display: none;
}

.student-nav__gov-sub a {
  flex: 1 0 auto;
  padding: 8px 16px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.student-nav__gov-sub a:last-child {
  border-right: none;
}

.student-nav__gov-sub a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
  text-decoration: none;
}

.student-nav__gov-sub a .gov-icon {
  display: inline;
  margin-right: 4px;
}

.student-nav__gov-sub a.is-active {
  background: rgba(255,255,255,0.12);
  color: white;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #90cdf4;
}

/* Section menu bottom radius when no gov sub-nav follows */
.student-nav__sections--terminal {
  border-radius: 0 0 8px 8px;
  margin-bottom: 20px;
}

/* =============================================
   Mobile responsive
   ============================================= */
@media (max-width: 768px) {
  .student-nav {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .student-nav__left,
  .student-nav__right {
    width: 100%;
    justify-content: center;
  }

  .student-nav__home-text,
  .student-nav__logout-text {
    display: none;
  }

  .student-nav__student {
    display: none;
  }

  .student-nav__sections a {
    padding: 8px 14px;
    font-size: 12px;
  }

  .student-nav__gov-sub a {
    padding: 6px 12px;
    font-size: 11px;
  }
}
