/**
 * Bolsa Laboral IESTP Puerto Libre - Design System & Stylesheet
 * Modern, Responsive, Glassmorphism, Premium Polish
 */

:root {
  --bl-primary: #1e40af;
  --bl-primary-dark: #1e3a8a;
  --bl-primary-light: #3b82f6;
  --bl-accent: #0284c7;
  --bl-secondary: #0f172a;
  --bl-success: #10b981;
  --bl-warning: #f59e0b;
  --bl-danger: #ef4444;
  --bl-info: #06b6d4;
  
  --bl-bg-main: #f8fafc;
  --bl-bg-card: #ffffff;
  --bl-bg-card-hover: #f1f5f9;
  
  --bl-text-primary: #0f172a;
  --bl-text-secondary: #475569;
  --bl-text-muted: #94a3b8;
  --bl-border: #e2e8f0;
  --bl-border-focus: #3b82f6;
  
  --bl-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --bl-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --bl-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.09), 0 4px 6px -2px rgba(0,0,0,0.04);
  --bl-shadow-xl: 0 20px 35px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.03);
  
  --bl-radius-sm: 8px;
  --bl-radius-md: 12px;
  --bl-radius-lg: 18px;
  --bl-radius-full: 9999px;
  
  --bl-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
body.bolsa-body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bl-bg-main);
  color: var(--bl-text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--bl-radius-md);
  box-shadow: var(--bl-shadow-md);
  transition: var(--bl-transition);
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bl-shadow-xl);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Hero Section */
.bl-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
  color: white;
  padding: 70px 0 90px 0;
  position: relative;
  overflow: hidden;
}

.bl-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bl-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bl-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bl-hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 650px;
  line-height: 1.6;
}

/* Search Box Container */
.bl-search-container {
  background: white;
  border-radius: var(--bl-radius-lg);
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin-top: 35px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bl-search-input {
  border: none;
  background: transparent;
  padding: 12px 4px 12px 6px;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  color: var(--bl-text-primary);
}

.bl-search-input::placeholder {
  color: #94a3b8;
}

.bl-search-divider {
  width: 1px;
  height: 35px;
  background: #e2e8f0;
  margin: auto 8px;
}

/* Buttons */
.btn-bl-primary {
  background: linear-gradient(135deg, var(--bl-primary) 0%, var(--bl-primary-light) 100%);
  color: white !important;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--bl-radius-sm);
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: var(--bl-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-bl-primary:hover {
  background: linear-gradient(135deg, var(--bl-primary-dark) 0%, var(--bl-primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  color: white !important;
}

.btn-bl-outline {
  background: transparent;
  color: var(--bl-primary) !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--bl-radius-sm);
  border: 1.5px solid var(--bl-primary);
  transition: var(--bl-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-bl-outline:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--bl-primary-dark);
  color: var(--bl-primary-dark) !important;
  transform: translateY(-1px);
}

.btn-bl-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--bl-radius-sm);
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: var(--bl-transition);
  text-decoration: none;
}

.btn-bl-success:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Badges & Tags */
.bl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--bl-radius-full);
  line-height: 1;
}

.bl-badge-primary {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.bl-badge-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.bl-badge-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.bl-badge-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.bl-badge-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.bl-badge-gray {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Job Card */
.bl-job-card {
  background: white;
  border-radius: var(--bl-radius-md);
  border: 1px solid var(--bl-border);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--bl-transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.bl-job-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.bl-job-card.destacada {
  border-left: 4px solid var(--bl-primary-light);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.bl-company-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bl-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.bl-salary-tag {
  font-weight: 700;
  color: #047857;
  font-size: 0.95rem;
}

/* Portal Sidebar & Layout */
.bl-portal-wrapper {
  display: flex;
  min-height: calc(100vh - 70px);
}

.bl-sidebar {
  width: 270px;
  background: #0f172a;
  color: #94a3b8;
  padding: 24px 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.bl-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 18px 12px 8px 12px;
}

.bl-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--bl-radius-sm);
  transition: var(--bl-transition);
  margin-bottom: 4px;
}

.bl-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.bl-sidebar-link.active {
  background: linear-gradient(135deg, var(--bl-primary) 0%, var(--bl-primary-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.bl-portal-content {
  flex: 1;
  background: var(--bl-bg-main);
  padding: 32px;
  overflow-y: auto;
}

/* Stat Cards */
.bl-stat-card {
  background: white;
  border-radius: var(--bl-radius-md);
  border: 1px solid var(--bl-border);
  padding: 22px 24px;
  box-shadow: var(--bl-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--bl-transition);
}

.bl-stat-card:hover {
  box-shadow: var(--bl-shadow-md);
  transform: translateY(-2px);
}

.bl-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bl-stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--bl-text-primary);
  line-height: 1.1;
}

.bl-stat-lbl {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bl-text-secondary);
  margin-top: 4px;
}

/* Kanban / Pipeline */
.bl-pipeline-col {
  background: #f1f5f9;
  border-radius: var(--bl-radius-md);
  padding: 16px;
  min-height: 450px;
}

.bl-pipeline-header {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #334155;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .bl-portal-wrapper {
    flex-direction: column;
  }
  .bl-sidebar {
    width: 100%;
    padding: 16px;
  }
  .bl-portal-content {
    padding: 20px 16px;
  }
  .bl-hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .bl-hero {
    padding: 45px 0 60px 0;
  }
  .bl-hero-title {
    font-size: 1.85rem;
  }
  .bl-search-divider {
    display: none;
  }
  .bl-search-container {
    padding: 16px;
  }
}

@media (max-width: 576px) {
  .bl-hero-title {
    font-size: 1.6rem;
  }
  .bl-hero-subtitle {
    font-size: 0.92rem;
  }
}
