/* Modern Job Listing Styles - Following Company Theme */

/* Job Card Styles - Grid View */
.job-card-modern {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(36, 64, 52, 0.08);
  padding: 0;
  height: 100%;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.job-card-modern:hover {
  transform: translateY(-3px);
  border-color: #D2F34C;
}

.job-card-modern.featured {
  border: 1px solid rgba(210, 243, 76, 0.3);
}

/* Job Card Header */
.job-card-header {
  padding: 25px 25px 15px;
  background: linear-gradient(180deg, rgba(210, 243, 76, 0.03) 0%, transparent 100%);
}

/* Company Info Section */
.company-info-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.company-logo-wrapper {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.company-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(210, 243, 76, 0.2);
  background: white;
  padding: 3px;
}

.company-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #244034 0%, #4e8b71 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.company-info {
  flex-grow: 1;
  min-width: 0;
}

.company-name {
  font-size: 13px;
  color: rgba(36, 64, 52, 0.7);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-type-badge {
  display: inline-block;
  background: rgba(210, 243, 76, 0.15);
  color: #244034;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Job Card Body */
.job-card-body {
  padding: 0 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.job-title-modern {
  font-size: 17px;
  font-weight: 600;
  color: #244034;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 48px;
  transition: color 0.3s ease;
}

.job-title-modern:hover {
  color: #00BF58;
}

.job-meta-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(36, 64, 52, 0.7);
}

.job-meta-item i {
  font-size: 14px;
  color: #20392E;
  width: 16px;
  text-align: center;
}

.salary-info {
  font-weight: 600;
  color: #244034;
}

/* Job Card Footer */
.job-card-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(36, 64, 52, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-job-primary {
  background: #244034;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-job-primary:hover {
  background: #00BF58;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-save-job {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(36, 64, 52, 0.15);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-save-job:hover {
  border-color: #D2F34C;
  background: rgba(210, 243, 76, 0.1);
}

.btn-save-job.saved {
  background: #D2F34C;
  border-color: #D2F34C;
}

.btn-save-job i {
  font-size: 18px;
  color: #20392E;
}

/* List View Styles */
.job-list-modern {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(36, 64, 52, 0.08);
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.job-list-modern:hover {
  transform: translateX(5px);
  border-color: #D2F34C;
}

.job-list-modern.featured {
  border: 1px solid rgba(210, 243, 76, 0.3);
  position: relative;
}

/* List View Company Section */
.job-list-company-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.company-logo-list-wrapper {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.company-logo-list {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  border: 1px solid rgba(210, 243, 76, 0.15);
  background: white;
  padding: 4px;
}

.company-logo-list-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #244034 0%, #4e8b71 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.job-list-content {
  flex-grow: 1;
  min-width: 0;
}

.job-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.job-list-title {
  font-size: 18px;
  font-weight: 600;
  color: #244034;
  text-decoration: none;
  transition: color 0.3s ease;
}

.job-list-title:hover {
  color: #00BF58;
}

.company-name-list {
  font-size: 14px;
  color: rgba(36, 64, 52, 0.7);
  margin-bottom: 12px;
}

.job-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.job-list-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(36, 64, 52, 0.7);
}

.job-list-meta-item i {
  font-size: 14px;
  color: #20392E;
}

/* Featured Badge */
.badge-featured {
  background: linear-gradient(135deg, #D2F34C 0%, #98BD00 100%);
  color: #244034;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Filter Bar Modern */
.filter-bar-modern {
  background: linear-gradient(180deg, rgba(210, 243, 76, 0.03) 0%, transparent 100%);
  border: 1px solid rgba(36, 64, 52, 0.08);
  border-radius: 20px;
  padding: 20px 30px;
  margin-bottom: 30px;
}

.view-toggle-group {
  display: flex;
  background: rgba(36, 64, 52, 0.05);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 26px;
  padding: 8px 16px;
  color: #244034;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-toggle-btn:hover {
  background: rgba(210, 243, 76, 0.2);
}

.view-toggle-btn.active {
  background: #D2F34C;
  color: #244034;
}

/* Nice Select Modern Override */
.nice-select-modern {
  border: 1px solid rgba(36, 64, 52, 0.15) !important;
  border-radius: 25px !important;
  padding: 8px 20px !important;
  min-width: 120px;
}

.nice-select-modern:hover {
  border-color: #D2F34C !important;
}

/* Empty State */
.empty-state-modern {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, rgba(210, 243, 76, 0.03) 0%, transparent 100%);
  border-radius: 20px;
  border: 1px solid rgba(36, 64, 52, 0.08);
}

.empty-state-icon {
  font-size: 64px;
  color: #D2F34C;
  margin-bottom: 20px;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 700;
  color: #244034;
  margin-bottom: 10px;
}

.empty-state-text {
  font-size: 16px;
  color: rgba(36, 64, 52, 0.6);
}

/* Info Pills */
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(210, 243, 76, 0.1);
  border: 1px solid rgba(210, 243, 76, 0.2);
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 13px;
  color: #244034;
}

.info-pill-icon {
  font-size: 14px;
  color: #20392E;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .job-card-header,
  .job-card-body,
  .job-card-footer {
    padding: 20px;
  }
  
  .job-list-modern {
    padding: 20px;
  }
  
  .filter-bar-modern {
    padding: 15px 20px;
  }
  
  .job-list-meta {
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .job-list-company-section {
    flex-direction: column;
    text-align: center;
  }
  
  .job-list-meta {
    justify-content: center;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Micro-interactions */
.job-card-modern,
.job-list-modern,
.btn-job-primary,
.btn-save-job {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove all box-shadows */
.job-card-modern,
.job-list-modern,
.filter-bar-modern,
.empty-state-modern {
  box-shadow: none !important;
}