/* Staff Page Styles */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--nw-silver);
}

.page-header h1 {
  color: var(--nw-blue);
  margin-bottom: 1rem;
}

.header-actions {
  text-align: center;
  margin-top: 1.5rem;
}

/* Staff Login Button */
.staff-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--nw-blue);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid var(--nw-blue);
}

.staff-login-btn:hover {
  background: var(--nw-blue);
  color: var(--nw-white);
  text-decoration: none;
}

.staff-login-btn:focus {
  outline: 2px solid var(--nw-blue);
  outline-offset: 2px;
}

.login-icon {
  font-size: 0.85rem;
}

.login-text {
  font-family: var(--font-heading);
}

.lead {
  font-size: 1.25rem;
  color: var(--nw-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Staff Grid */
.staff-section {
  margin-bottom: 4rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 500px);
  gap: 3rem;
  align-items: stretch;
  justify-content: center;
}

.staff-card {
  background: var(--nw-white);
  border: 1px solid var(--nw-silver);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 500px;
  max-width: 100%;
  height: 100%;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.staff-photo-container {
  background: linear-gradient(
    135deg,
    var(--nw-blue) 0%,
    var(--nw-blue-dark) 100%
  );
  padding: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.staff-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--nw-white);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease;
}

.staff-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 4px solid var(--nw-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease;
}

.initials {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--nw-white);
  font-family: var(--font-heading);
}

.staff-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.staff-name {
  color: var(--nw-blue);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.staff-title {
  color: var(--nw-gray);
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
}

.staff-info h3 {
  color: var(--nw-blue);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--nw-silver);
  padding-bottom: 0.5rem;
}

.staff-info h3:first-of-type {
  margin-top: 0;
}

/* Ensembles */
.ensemble-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 1px;
  margin-bottom: 1rem;
}

.ensemble-tag:not(:last-child) {
  border-right: 1px solid var(--nw-white);
}

.ensemble-tag {
  background: var(--nw-blue);
  color: var(--nw-white);
  padding: 0.5rem 0.9rem;
  border-radius: 0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.ensemble-tag:hover {
  background: var(--nw-blue-dark);
  color: var(--nw-white);
  text-decoration: none;
}

/* Staff Details */
.staff-detail {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.staff-detail h3 {
  color: var(--nw-blue);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--nw-silver);
  padding-bottom: 0.25rem;
}

.education-content,
.philosophy-content,
.schedule-content,
.bio-content {
  line-height: 1.6;
  color: var(--nw-black);
  font-size: 0.95rem;
}

.philosophy-content {
  font-style: italic;
  background: rgba(41, 64, 137, 0.05);
  padding: 1rem;
  border-radius: 4px;
  border-left: 3px solid var(--nw-blue);
}

.fun-fact {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 4px;
  font-style: italic;
  color: var(--nw-blue-dark);
}

.schedule-content {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
}

/* Contact */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-icon {
  font-size: 1.125rem;
  width: 24px;
  flex-shrink: 0;
}

.contact-link {
  color: var(--nw-blue);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-info {
  color: var(--nw-black);
}

.no-contact {
  color: var(--nw-gray);
  font-style: italic;
}

/* Empty State */
.no-staff {
  padding: 4rem 0;
}

.empty-state {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h2 {
  color: var(--nw-blue);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--nw-gray);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  margin: 4rem 0;
}

.contact-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid var(--nw-silver);
}

.contact-card h2 {
  color: var(--nw-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info h3,
.office-hours h3 {
  color: var(--nw-blue);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.contact-info .contact-item {
  margin-bottom: 1rem;
}

.contact-info .contact-item span:last-child {
  line-height: 1.4;
}

/* Quick Links */
.quick-links {
  margin: 4rem 0;
}

.quick-links h2 {
  color: var(--nw-blue);
  text-align: center;
  margin-bottom: 2rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.link-card {
  background: var(--nw-white);
  border: 1px solid var(--nw-silver);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--nw-black);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--nw-black);
}

.link-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.link-card h3 {
  color: var(--nw-blue);
  margin-bottom: 0.5rem;
}

.link-card p {
  color: var(--nw-gray);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 1180px) {
  .staff-login-btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
  }

  .staff-photo,
  .staff-photo-placeholder {
    width: 120px;
    height: 120px;
  }

  .initials {
    font-size: 2rem;
  }

  .staff-name {
    font-size: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hours-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}

/* Daubitz Speech Bubble */
.daubitz-speech-bubble {
  position: absolute;
  background: var(--nw-blue);
  color: var(--nw-white);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  max-width: 400px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateX(-50%) translateY(-100%) scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  line-height: 1.4;
  word-wrap: break-word;
}

.daubitz-speech-bubble.show {
  transform: translateX(-50%) translateY(calc(-100% - 15px)) scale(1);
  opacity: 1;
  animation: bubbleWiggle 0.5s ease-in-out 0.3s;
}

/* Speech bubble tail */
.daubitz-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--nw-blue);
}

/* Wiggle animation */
@keyframes bubbleWiggle {
  0%,
  100% {
    transform: translateX(-50%) translateY(calc(-100% - 15px)) scale(1)
      rotate(0deg);
  }
  25% {
    transform: translateX(-50%) translateY(calc(-100% - 15px)) scale(1.05)
      rotate(-3deg);
  }
  75% {
    transform: translateX(-50%) translateY(calc(-100% - 15px)) scale(1.05)
      rotate(3deg);
  }
}

/* Make Daubitz cards have a subtle hint */
.staff-card[data-daubitz-card="true"] {
  position: relative;
}

.staff-card[data-daubitz-card="true"]:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Gold border on photo for Daubitz cards on Whover */
.staff-card[data-daubitz-card="true"]:hover .staff-photo,
.staff-card[data-daubitz-card="true"]:hover .staff-photo-placeholder {
  border-color: #ffd700;
}

/* Print Styles */
@media print {
  .quick-links,
  .contact-section {
    display: none;
  }

  .staff-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
    margin-bottom: 2rem;
  }

  .staff-photo-container {
    background: none !important;
    border-bottom: 1px solid #000;
  }

  .ensemble-tag {
    background: none !important;
    color: #000 !important;
    border: 1px solid #000;
  }

  .daubitz-speech-bubble {
    display: none;
  }
}
