/* Staff Directory Styles */

/* =====================
   Layout & Container
   ===================== */

.directory-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 100vh;
}

/* =====================
   Navigation
   ===================== */

.directory-nav {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================
   Header
   ===================== */

.directory-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.directory-title {
  font-family: 'Fugaz One', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-color, #fff);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.directory-subtitle {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =====================
   Filters Section
   ===================== */

.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
}

.committee-select,
.name-search {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  font-family: 'Michroma', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.committee-select {
  min-width: 200px;
}

.name-search {
  min-width: 250px;
  flex: 1;
}

.committee-select:hover,
.name-search:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.committee-select:focus,
.name-search:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.7);
}

.committee-select option {
  background: #1a1a1a;
  color: #fff;
}

.staff-count {
  font-family: 'Michroma', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* =====================
   Staff Grid
   ===================== */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.staff-grid.hidden {
  display: none;
}

/* =====================
   Staff Card
   ===================== */

.staff-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.staff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* =====================
   Avatar
   ===================== */

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.staff-card:hover .staff-avatar {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.staff-initials {
  font-family: 'Fugaz One', sans-serif;
  font-size: 1.75rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* =====================
   Staff Info
   ===================== */

.staff-info {
  flex: 1;
  width: 100%;
  margin-bottom: 1rem;
}

.staff-name {
  font-family: 'Fugaz One', sans-serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.staff-role {
  font-family: 'Michroma', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.staff-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =====================
   Committee Badge
   ===================== */

.staff-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-family: 'Michroma', sans-serif;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Committee-specific badge colors */
.staff-badge.presbyterian-assembly {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
}

.staff-badge.visual-arts {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

.staff-badge.session {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.staff-badge.hermeneutics {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}

.staff-badge.archives {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

.staff-badge.prophecy {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
}

.staff-badge.translation {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.4);
}

.staff-badge.apologetics {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.staff-badge.congregation {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.4);
}

.staff-badge.syndicate {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

/* =====================
   Staff Link
   ===================== */

.staff-link {
  font-family: 'Michroma', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.staff-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* =====================
   Loading & Error States
   ===================== */

.directory-loading,
.directory-error {
  text-align: center;
  padding: 3rem 1rem;
}

.directory-loading.hidden,
.directory-error.hidden {
  display: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: 'Michroma', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.directory-error h3 {
  font-family: 'Fugaz One', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 1rem 0;
}

.directory-error p {
  font-family: 'Michroma', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem 0;
}

.error-return-link {
  display: inline-block;
  font-family: 'Michroma', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.error-return-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* =====================
   No Results Message
   ===================== */

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  font-family: 'Michroma', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =====================
   Responsive Design
   ===================== */

@media (max-width: 768px) {
  .directory-container {
    padding: 1rem;
  }
  
  .directory-header {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }
  
  .directory-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-controls {
    flex-direction: column;
  }
  
  .committee-select,
  .name-search {
    width: 100%;
    min-width: 0;
  }
  
  .staff-count {
    text-align: center;
  }
  
  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
  
  .directory-title {
    font-size: 1.75rem;
  }
  
  .directory-subtitle {
    font-size: 0.75rem;
  }
}
