/* ==========================================================================
   SHRAMIK PORTAL - MEMBERS & DIRECTORY UPGRADE STYLES
   ========================================================================== */

:root {
  --sh-mem-primary: #0b2545;
  --sh-mem-primary-light: #134074;
  --sh-mem-accent: #e06d10;
  --sh-mem-accent-hover: #c45a05;
  --sh-mem-gold: #ffb703;
  --sh-mem-success: #10b981;
  --sh-mem-success-bg: #ecfdf5;
  --sh-mem-bg-soft: #f4f6fa;
  --sh-mem-card-bg: #ffffff;
  --sh-mem-border: #e2e8f0;
  --sh-mem-border-light: #f1f5f9;
  --sh-mem-text: #0f172a;
  --sh-mem-text-muted: #64748b;
  --sh-mem-radius-sm: 8px;
  --sh-mem-radius-md: 14px;
  --sh-mem-radius-lg: 20px;
  --sh-mem-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --sh-mem-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --sh-mem-shadow-hover: 0 18px 30px -8px rgba(11, 37, 69, 0.16);
}

/* --------------------------------------------------------------------------
   1. HERO BANNER
   -------------------------------------------------------------------------- */
.sh-members-hero {
  position: relative;
  background: linear-gradient(135deg, #07192f 0%, #0b2545 60%, #134074 100%);
  color: #ffffff;
  padding: 44px 0 54px;
  overflow: hidden;
  border-bottom: 3px solid var(--sh-mem-accent);
}

.sh-members-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(224, 109, 16, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(255, 183, 3, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.sh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.sh-hero-badge i {
  color: var(--sh-mem-gold);
}

.sh-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.sh-hero-title span {
  color: var(--sh-mem-gold);
}

.sh-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin: 0 auto 18px;
  line-height: 1.6;
}

.sh-hero-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 16px;
  border-radius: 20px;
}

.sh-hero-breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sh-hero-breadcrumbs a:hover {
  color: var(--sh-mem-gold);
}

.sh-hero-breadcrumbs span.sep {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   2. FLOATING SEARCH CONSOLE
   -------------------------------------------------------------------------- */
.sh-search-section {
  position: relative;
  margin-top: -32px;
  z-index: 20;
}

.sh-search-console {
  background: #ffffff;
  border-radius: var(--sh-mem-radius-lg);
  box-shadow: var(--sh-mem-shadow-md);
  border: 1px solid var(--sh-mem-border);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.sh-search-console::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sh-mem-accent) 0%, var(--sh-mem-gold) 100%);
}

.sh-search-field-wrapper {
  position: relative;
  margin-bottom: 0;
}

.sh-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sh-mem-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.sh-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.sh-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.sh-search-input {
  width: 100%;
  height: 48px;
  padding: 10px 14px 10px 42px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sh-mem-text);
  background-color: var(--sh-mem-bg-soft);
  border: 1.5px solid var(--sh-mem-border);
  border-radius: var(--sh-mem-radius-sm);
  transition: all 0.25s ease;
  outline: none;
}

.sh-search-input:focus {
  background-color: #ffffff;
  border-color: var(--sh-mem-accent);
  box-shadow: 0 0 0 4px rgba(224, 109, 16, 0.12);
}

.sh-search-input:focus + .sh-input-icon,
.sh-input-group:focus-within .sh-input-icon {
  color: var(--sh-mem-accent);
}

.sh-search-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 100%;
}

.sh-btn-search {
  flex: 1;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sh-mem-accent) 0%, #d05f08 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--sh-mem-radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(224, 109, 16, 0.32);
  transition: all 0.25s ease;
}

.sh-btn-search:hover {
  background: linear-gradient(135deg, var(--sh-mem-accent-hover) 0%, #b85002 100%);
  box-shadow: 0 6px 18px rgba(224, 109, 16, 0.42);
  transform: translateY(-1px);
  color: #ffffff;
}

.sh-btn-reset {
  height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #f1f5f9;
  color: var(--sh-mem-text-muted);
  border: 1px solid var(--sh-mem-border);
  border-radius: var(--sh-mem-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sh-btn-reset:hover {
  background-color: #e2e8f0;
  color: var(--sh-mem-primary);
  border-color: #cbd5e1;
}

/* Filter Feedback Bar */
.sh-filter-summary-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--sh-mem-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sh-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sh-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sh-mem-bg-soft);
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--sh-mem-primary);
  font-weight: 600;
}

.sh-filter-badge i {
  color: var(--sh-mem-accent);
}

.sh-result-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sh-mem-success-bg);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.sh-result-counter-badge i {
  color: var(--sh-mem-success);
}

/* --------------------------------------------------------------------------
   3. SECTION HEADERS & LAYOUT
   -------------------------------------------------------------------------- */
.sh-members-main-section {
  padding: 46px 0 70px;
  background-color: var(--sh-mem-bg-soft);
}

.sh-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.sh-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh-section-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--sh-mem-primary) 0%, var(--sh-mem-primary-light) 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(11, 37, 69, 0.2);
}

.sh-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--sh-mem-primary);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.sh-section-subtitle {
  font-size: 13px;
  color: var(--sh-mem-text-muted);
  margin-bottom: 0;
}

.sh-count-pill {
  background: #ffffff;
  border: 1.5px solid var(--sh-mem-border);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sh-mem-primary);
  box-shadow: var(--sh-mem-shadow-sm);
}

/* --------------------------------------------------------------------------
   4. MEMBER CARDS
   -------------------------------------------------------------------------- */
.sh-member-card {
  background: #ffffff;
  border-radius: var(--sh-mem-radius-md);
  border: 1px solid var(--sh-mem-border);
  box-shadow: var(--sh-mem-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.sh-member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-mem-shadow-hover);
  border-color: #cbd5e1;
}

/* Card Header Strip */
.sh-card-top-strip {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 10px 14px;
  border-bottom: 1px solid var(--sh-mem-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sh-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sh-form-no-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sh-mem-text-muted);
  background: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Avatar Section */
.sh-card-avatar-wrap {
  padding: 18px 16px 12px;
  text-align: center;
  position: relative;
}

.sh-avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.12);
  background-color: var(--sh-mem-bg-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sh-member-card:hover .sh-avatar-img {
  transform: scale(1.06);
}

/* Initials Avatar Fallback */
.sh-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b2545 0%, #1a4980 100%);
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sh-avatar-initials-sub {
  font-size: 10px;
  color: var(--sh-mem-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

.sh-avatar-status-dot {
  position: absolute;
  bottom: 4px;
  right: calc(50% - 44px);
  width: 18px;
  height: 18px;
  background: var(--sh-mem-success);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 9px;
  z-index: 2;
}

/* Card Body Details */
.sh-card-body {
  padding: 6px 18px 16px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sh-member-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--sh-mem-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-member-meta-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  text-align: left;
  border-top: 1px solid var(--sh-mem-border-light);
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--sh-mem-text);
  flex-grow: 1;
}

.sh-member-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.sh-member-meta-item:last-child {
  margin-bottom: 0;
}

.sh-meta-icon {
  width: 16px;
  color: var(--sh-mem-accent);
  margin-top: 2px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
}

.sh-meta-val {
  color: var(--sh-mem-text);
  font-weight: 500;
  word-break: break-word;
}

.sh-meta-val strong {
  color: var(--sh-mem-primary);
  font-weight: 600;
}

/* Card Actions */
.sh-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background-color: #fafbfc;
  border-top: 1px solid var(--sh-mem-border-light);
}

.sh-btn-view-profile {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  background-color: #ffffff;
  color: var(--sh-mem-primary);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--sh-mem-radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sh-btn-view-profile:hover {
  background-color: var(--sh-mem-primary);
  color: #ffffff;
  border-color: var(--sh-mem-primary);
}

.sh-btn-view-idcard {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  background: linear-gradient(135deg, var(--sh-mem-accent) 0%, #c45a05 100%);
  color: #ffffff;
  border: 1.5px solid transparent;
  border-radius: var(--sh-mem-radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(224, 109, 16, 0.25);
  white-space: nowrap;
}

.sh-btn-view-idcard:hover {
  background: linear-gradient(135deg, var(--sh-mem-accent-hover) 0%, #a84803 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(224, 109, 16, 0.35);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. EMPLOYEE CARDS SPECIAL VARIANT
   -------------------------------------------------------------------------- */
.sh-employee-card .sh-card-top-strip {
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
}

.sh-employee-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.sh-employee-card .sh-avatar-initials {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.sh-employee-post-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   6. EMPTY STATE CARD
   -------------------------------------------------------------------------- */
.sh-empty-state-card {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--sh-mem-radius-lg);
  padding: 50px 30px;
  text-align: center;
  max-width: 680px;
  margin: 30px auto;
  box-shadow: var(--sh-mem-shadow-sm);
}

.sh-empty-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff7ed;
  border: 2px solid #fed7aa;
  color: var(--sh-mem-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.sh-empty-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--sh-mem-primary);
  margin-bottom: 8px;
}

.sh-empty-desc {
  font-size: 14.5px;
  color: var(--sh-mem-text-muted);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.sh-empty-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. INFORMATION / VERIFICATION ADVISORY BANNER
   -------------------------------------------------------------------------- */
.sh-member-info-banner {
  background: #ffffff;
  border-radius: var(--sh-mem-radius-md);
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  padding: 20px 24px;
  margin-top: 40px;
  box-shadow: var(--sh-mem-shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.sh-info-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sh-info-banner-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--sh-mem-primary);
  margin-bottom: 4px;
}

.sh-info-banner-content p {
  font-size: 13.5px;
  color: var(--sh-mem-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .sh-hero-title {
    font-size: 26px;
  }
  
  .sh-search-console {
    padding: 20px;
  }
  
  .sh-search-field-wrapper {
    margin-bottom: 12px;
  }
  
  .sh-search-actions {
    margin-top: 4px;
  }
}

@media (max-width: 576px) {
  .sh-members-hero {
    padding: 30px 0 46px;
  }
  
  .sh-hero-title {
    font-size: 21px;
  }
  
  .sh-hero-subtitle {
    font-size: 13.5px;
  }
  
  .sh-search-console {
    padding: 16px 14px;
  }
  
  .sh-btn-search,
  .sh-btn-reset {
    height: 44px;
    font-size: 13px;
  }
  
  .sh-card-actions {
    grid-template-columns: 1fr;
  }
  
  .sh-member-info-banner {
    flex-direction: column;
    padding: 16px;
  }
}
