/* ==========================================================================
   Kazi Nazrul Academy - Dedicated Stylesheet for Faculty & Teachers (teachers.html)
   Scope: Page-specific styles only (Base/header/footer loaded via style.css)
   ========================================================================== */

/* Page Wrapper */
.teachers-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero / Lead Banner */
.teachers-lead-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 6px solid var(--brand, #0ea5e9);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}

.teachers-lead-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.teachers-lead-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.teachers-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.teachers-lead-box p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
}

/* Status / Count Strip */
.teachers-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #475569;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.teachers-count-text strong {
  color: #0284c7;
  font-weight: 700;
}

/* Teachers Grid */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Teacher Card */
.teacher-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.14);
  border-color: #bae6fd;
}

/* Photo Frame */
.teacher-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.teacher-card:hover .teacher-photo {
  transform: scale(1.03);
}

/* Fallback Initials Avatar */
.teacher-initials-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  letter-spacing: 2px;
  user-select: none;
}

/* Card Content Body */
.teacher-card-content {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.teacher-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-role-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 9999px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.teacher-degrees {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-degrees i {
  color: #0ea5e9;
  flex-shrink: 0;
}

.teacher-degrees span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shimmer Loading Skeleton */
.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.teacher-card-skeleton {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skel-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.skel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skel-line {
  height: 16px;
  border-radius: 4px;
}

.skel-line.w-75 { width: 75%; }
.skel-line.w-50 { width: 50%; height: 22px; border-radius: 9999px; }
.skel-line.w-40 { width: 40%; height: 14px; margin-top: 6px; }

/* Empty / Fallback State */
.teachers-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
}

.teachers-empty-icon {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.teachers-empty h3 {
  font-size: 1.25rem;
  color: #1e293b;
  margin: 0 0 8px;
  font-weight: 700;
}

.teachers-empty p {
  margin: 0 auto 20px;
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .teachers-lead-box {
    padding: 20px 18px;
  }
  .teachers-lead-title {
    font-size: 1.2rem;
  }
  .teachers-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .teachers-lead-box {
    padding: 16px 14px;
    border-left-width: 4px;
  }
  .teachers-lead-title {
    font-size: 1.15rem;
  }
  .teachers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .teacher-photo-frame {
    aspect-ratio: 4 / 3;
  }
  .teacher-card-content {
    padding: 16px 16px 18px;
  }
}
