/**
 * Student Directory Block Styles
 * Differentiated from Faculty Directory
 */

/* Student Directory Search Form */
.Student-search-form {
  margin-bottom: 2rem;
}

.ucla-main-nav__search-form.Student-search-form {
  padding: 0;
}

.Student-search-form .ucla-main-nav__search-field {
  border-color: #2774AE; /* UCLA Blue instead of gold */
}

.Student-search-form .ucla-main-nav__search-submit {
  background-color: #2774AE; /* UCLA Blue */
  border-color: #2774AE;
}

.Student-search-form .ucla-main-nav__search-submit:hover {
  background-color: #1e5a96;
  border-color: #1e5a96;
}

/* Student Results Grid */
.Student-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 2.5rem;
}

/* Student Card Styling */
.student-post {
  /*border-left: 4px solid #2774AE; Blue accent instead of gold*/
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 116, 174, 0.15); /* Blue shadow */
}

.student-post .ucla-card__title {
  color: #2774AE; /* Blue title */
}

.student-post .ucla-card__person-department {
  color: #666;
  font-style: italic;
}

.student-post .ucla-card__person-department.student-program-unitalicized {
  font-style: normal;
}

.student-post .ucla-card__person-graduation {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Fix student card image heights */
.student-post .ucla-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Student Actions */
.Student-actions {
  text-align: center;
  margin-top: 2rem;
}

.Student-actions .ucla-btn--primary {
  background-color: #2774AE;
  border-color: #2774AE;
}

.Student-actions .ucla-btn--primary:hover {
  background-color: #1e5a96;
  border-color: #1e5a96;
}

/* Student Profile Page Styles - Match Faculty exactly */
.Student-member {
  margin-top: 4.6875rem;
  margin-bottom: 4.6875rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1224px;
}
@media only screen and (max-width: 767px) {
  .Student-member {
    margin-top: 2.34375rem;
    margin-bottom: 2.34375rem;
  }
}
@media (min-width: 768px) and (max-width: 1223px) {
  .Student-member {
    margin-top: 2.34375rem;
    margin-bottom: 2.34375rem;
  }
}
.Student-member article {
  display: grid;
  gap: 1.5rem;
}
@media only screen and (min-width: 1223px) {
  .Student-member article {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}
.Student-member .post-thumbnail img {
  width: 100%;
  height: auto;
}

.Student-member--contact {
  border-top: none !important;
  margin-top: 1.5rem;
  /* Default background with dark blue text */
  background-color: #00598c !important;
  color: #fff !important;
}
.Student-member--contact .aux {
  margin: 0.2rem 0 1rem;
}
.Student-member--contact .aux p {
  margin: 0;
}
.Student-member--contact a {
  color: #fff !important;
}
.Student-member--contact a:hover {
  background-color: #fff !important;
  color: #0079bf !important;
}

.Student-member--contact a.Student-member--social.student-linkedin-white:hover,
.Student-member--contact a.Student-member--social.student-google-scholar-white:hover,
.Student-member--contact a.Student-member--social.student-orcid-white:hover {
  background-color: transparent !important;
  color: #0079bf !important;
}

.Student-member--contact a.Student-member--social.student-google-scholar-white:hover g {
   color: #0079bf !important;
   fill: #0079bf !important;
}

/* ORCiD hover effect for students */
.Student-member--contact a.Student-member--social.student-orcid-white:hover .cls-1 {
   fill: #0079bf !important;
}

.Student-member--contact .ucla-card__title {
  color: #fff !important;
}
.Student-member--contact p {
  color: #fff !important;
}
.Student-member--contact strong {
  color: #fff !important;
}

.Student-member--social svg {
  fill: #fff;
  width: 2rem;
  height: auto;
}
.Student-member--social:hover svg {
  fill: #0079bf;
}

.Student-member--about h1{
  color: #00598c;
}

.Student-member--about header .Student-member--title {
  margin: 1.5rem 0;
}

.Student-member--taxonomy {
  margin-top: 2rem;
}
.Student-member--taxonomy h4 {
  margin-bottom: 0.75rem;
}
.Student-member--taxonomy ul,
.Student-member--taxonomy li {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.Student-member--taxonomy ul + h4 {
  margin-top: 1.5rem;
}

.Student-member--resume section + section {
  margin-top: 2rem;
}
.Student-member--resume li {
  line-height: 1.5rem;
}

/* Student CV link styling */
a.student-member-card-link {
  text-decoration: underline;
}

a.student-member-card-link:hover,
.Student-member--google-scholar a:hover strong,
.Student-member--cv a:hover strong {
  color: #0079bf !important;

}

/* Responsive Design */
@media (max-width: 768px) {
  .Student-member--overview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .Student-results {
    grid-template-columns: 1fr;
  }

  .Student-member {
    padding: 1rem;
  }
}

/* Loading Animation */
.Student-member .masthead-loading {
  text-align: center;
  padding: 2rem;
  color: #2774AE;
}

.Student-member .masthead-loading .dot {
  background-color: #2774AE;
}

/* Differentiation from Faculty */
.Student-member--contact,
.Student-member h1,
.Student-member h3,
.student-post .ucla-card__title {
  /* Ensure blue theme throughout */
}

/* Print Styles */
@media print {
  .Student-member--contact {
    background: white !important;
    border: 1px solid #ccc !important;
  }

  .Student-member--social {
    display: none !important;
  }
}


/* Loading indicator styles */
#student-loading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
  margin: 50px auto;
  background-color: rgba(0, 89, 140, 0.9); /* UCLA blue with higher opacity */
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: white;
  font-weight: bold;
  font-size: 16px;
  width: fit-content;
}

#student-loading .loading-text {
  margin-right: 12px;
}

#student-loading .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: #ffffff; /* White dots */
  animation: faculty-dot-pulse 1.4s infinite ease-in-out;
}

#student-loading .dot:nth-child(1) {
  animation-delay: 0s;
}

#student-loading .dot:nth-child(2) {
  animation-delay: 0.2s;
}

#student-loading .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes faculty-dot-pulse {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}
