/* ============================================================
   CrownateStudio — Hire Professionals Marketplace CSS
   Aesthetic: Premium Enterprise-grade, Engineering-focused, Dark Mode
   ============================================================ */

:root {
  --industrial-bg: #0b0f19;
  --industrial-card-bg: rgba(15, 23, 42, 0.65);
  --industrial-border: rgba(255, 255, 255, 0.08);
  --accent-gold: #D4AF37;
  --accent-blue: #38bdf8;
  --status-available: #10b981;
  --status-busy: #f59e0b;
  --status-unavailable: #ef4444;
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Body Styling */
.hire-professionals-body {
  background-color: var(--industrial-bg) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'Roboto', sans-serif;
  overflow-x: hidden;
}

/* Text Muted Override for Visibility */
.hire-professionals-body .text-muted {
  color: var(--text-muted) !important;
}

/* Placeholder Visibility Enhancements */
.hire-professionals-body input::placeholder,
.hire-professionals-body textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

/* Glassmorphism Accents */
.glass-panel {
  background: var(--industrial-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--industrial-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

/* Badge System */
.badge-custom {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 50px;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Hero Section */
.hero-industrial {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interactive Search Engine Form */
.search-engine-box {
  border-radius: 20px;
  padding: 24px;
  position: relative;
  z-index: 30;
}

.search-input-group {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--industrial-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.search-input-group:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.search-input-group input {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
}

.search-filter-select {
  background: #0f172a !important;
  color: #fff !important;
  border: 1px solid var(--industrial-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

.search-filter-select:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: none !important;
}

/* Category Grid Cards */
.category-card {
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  height: 100%;
  cursor: pointer;
}

.category-card .icon-box {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--industrial-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-gold);
  font-size: 24px;
  transition: var(--transition-smooth);
}

.category-card:hover .icon-box {
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-5px);
}

/* Professional Profile Cards */
.profile-card {
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.05);
}

.profile-img-container {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #1e293b;
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.profile-card:hover .profile-img-container img {
  transform: scale(1.05);
}

.status-indicator-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-badge-available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-available);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-badge-available .dot-indicator {
  background-color: var(--status-available);
  box-shadow: 0 0 6px var(--status-available);
}

.status-badge-busy {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-busy);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-badge-busy .dot-indicator {
  background-color: var(--status-busy);
  box-shadow: 0 0 6px var(--status-busy);
}

.status-badge-unavailable {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-unavailable);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-badge-unavailable .dot-indicator {
  background-color: var(--status-unavailable);
  box-shadow: 0 0 6px var(--status-unavailable);
}

.skill-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.skill-tag:hover {
  border-color: var(--accent-blue);
  color: #fff;
  background: rgba(56, 189, 248, 0.05);
}

/* AI Recommendation Widget */
.ai-matching-box {
  border-radius: 20px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08) 0%, transparent 60%), var(--industrial-card-bg);
  position: relative;
  transition: var(--transition-smooth);
  pointer-events: auto !important;
}

.ai-matching-box::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), transparent, rgba(212, 175, 55, 0.1));
  z-index: -1;
  pointer-events: none;
}

/* Match Dashboard Styles */
.dashboard-card {
  border-radius: 16px;
  padding: 24px;
}

.status-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-pill-pending {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-pill-matched {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-pill-contacted {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-busy);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-available);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Detail Modal overrides */
.modal-industrial-content {
  background-color: #0f172a !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

/* Reviews and Projects Styles */
.rating-stars {
  color: var(--accent-gold);
  font-size: 14px;
}

.project-item {
  border-left: 2px solid var(--accent-blue);
  padding-left: 15px;
  margin-bottom: 15px;
  position: relative;
}

.project-item::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 6px;
}

/* Accordion overrides */
.hire-professionals-body section,
.hire-professionals-body .section {
  background-color: transparent !important;
  color: var(--text-primary) !important;
}

.hire-professionals-body h1,
.hire-professionals-body h2,
.hire-professionals-body h3,
.hire-professionals-body h4,
.hire-professionals-body h5,
.hire-professionals-body h6 {
  color: var(--text-primary) !important;
}

.hire-professionals-body .accordion-item {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background-color: transparent !important;
}

.hire-professionals-body .accordion-button {
  background-color: transparent !important;
  color: var(--text-primary) !important;
}

.hire-professionals-body .accordion-button:not(.collapsed) {
  color: var(--accent-gold) !important;
  box-shadow: none !important;
}

.hire-professionals-body .accordion-button::after {
  filter: invert(1) !important;
}

/* Drag and drop upload zone */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.upload-zone:hover {
  border-color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.02);
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1.5s linear infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* ============================================================
   Talent Onboarding Portal Custom Extensions
   ============================================================ */

/* Selector skill tags interactive state */
.selectable-skill {
  transition: var(--transition-smooth);
  user-select: none;
}

.selectable-skill:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: var(--accent-blue) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.selectable-skill.active {
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: var(--accent-gold) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Live Preview Card styling and anims */
#preview-profile-card {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

#preview-profile-card:hover {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.1);
  transform: translateY(-4px);
}

/* Dragover state for upload zones */
.upload-zone.dragover {
  border-color: var(--accent-gold) !important;
  background: rgba(212, 175, 55, 0.04) !important;
}

.progress {
  border-radius: 50px;
  overflow: hidden;
}
