/* Careers Page Specific Styles */

/* Hero Section */
.careers-hero {
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.careers-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotate(45deg);
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

#viewOpenPositions {
  background: white;
  color: var(--neon-orange);
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

#viewOpenPositions:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Admin Controls Section */
.admin-controls-section {
  background: var(--bg-secondary);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-controls h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Filters Section */
.careers-filters {
  background: var(--bg-primary);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.filters-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--neon-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-btn {
  padding: 10px 20px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--neon-orange);
}

/* Careers Section */
.careers-section {
  padding: 60px 0;
  background: var(--bg-primary);
  min-height: 400px;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
}

/* Loading and Empty States */
.loading-state,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--neon-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.empty-icon {
  font-size: 4rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
}

/* Career Card */
.career-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.career-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--neon-orange);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.career-card:hover::before {
  transform: scaleY(1);
}

.career-header {
  margin-bottom: 20px;
}

.career-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.career-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.career-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.career-meta-item i {
  color: var(--neon-orange);
}

.career-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.career-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-type {
  background: rgba(255, 107, 53, 0.1);
  color: var(--neon-orange);
}

.badge-level {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.career-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.career-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.career-deadline {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.view-details-btn {
  color: var(--neon-orange);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.view-details-btn:hover {
  gap: 10px;
}

/* Admin Actions */
.career-admin-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
}

.admin-action-btn {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.edit-btn {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
}

.edit-btn:hover {
  background: #2196F3;
  color: white;
}

.delete-btn {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
}

.delete-btn:hover {
  background: #F44336;
  color: white;
}

/* Career Details Modal */
.career-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.career-detail-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.career-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.career-detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.career-section {
  margin-bottom: 30px;
}

.career-section h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.career-list {
  list-style: none;
  padding: 0;
}

.career-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.career-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--neon-orange);
  font-weight: bold;
}

.salary-range {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neon-orange);
  margin-bottom: 10px;
}

.apply-section {
  background: var(--bg-tertiary);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 30px;
}

.apply-btn {
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.deadline-warning {
  color: #F44336;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Form Styles */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.admin-textarea {
  min-height: 120px;
  resize: vertical;
}

.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.list-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.list-item input {
  flex: 1;
}

.btn-remove {
  width: 35px;
  height: 35px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: #F44336;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-remove:hover {
  background: #F44336;
  color: white;
  border-color: #F44336;
}

.btn-add {
  align-self: flex-start;
  padding: 8px 16px;
  background: var(--bg-secondary);
  color: var(--neon-orange);
  border: 1px solid var(--neon-orange);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-add:hover {
  background: var(--neon-orange);
  color: white;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-primary);
  margin: 5% auto;
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .filters-wrapper {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .careers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .career-detail-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 95%;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .careers-hero {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  }
  
  .filter-select,
  .filter-input {
    background: var(--bg-secondary);
  }
  
  .career-card {
    background: var(--bg-secondary);
  }
  
  .modal-content {
    background: var(--bg-secondary);
  }
}