/* Modern Jobs Page Styles */
/* Using consistent design system */

:root {
  --primary: #0073e6;
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--gray-50);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo a {
  display: block;
  text-decoration: none;
}

.navbar .logo img {
  height: 70px;
  transition: transform 0.3s ease;
}

.navbar .logo img:hover {
  transform: scale(1.05);
}

.navbar .menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar .menu li a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
}

.navbar .menu li a:hover {
  color: #facc15;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  color: var(--white);
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-title i {
  color: #facc15;
  font-size: 2rem;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.stats-summary {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #facc15;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Search Section */
.search-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-input-group {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1.1rem;
}

#searchInput {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

.filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  background: var(--white);
  font-size: 0.9rem;
  min-width: 200px;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.clear-filters {
  padding: 0.75rem 1.5rem;
  background: var(--danger);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-filters:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Jobs Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Job Cards */
.job-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.job-card:hover::before {
  transform: scaleX(1);
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.job-title {
  flex: 1;
  margin-right: 1rem;
}

.job-title a {
  color: var(--gray-800);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.job-title a:hover {
  color: var(--primary);
}

.job-id {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.job-company {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}

.job-company i {
  font-size: 1.1rem;
}

.job-details {
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-600);
}

.detail-item i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.job-tags {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-fulltime {
  background: var(--success);
  color: var(--white);
}

.tag-skill {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.tag-skill:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.job-actions {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* No Jobs State */
.no-jobs {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
  grid-column: 1 / -1;
}

.no-jobs i {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.no-jobs h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

.no-jobs p {
  font-size: 1rem;
  color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .page-header {
    padding: 2rem 0;
    margin-bottom: 1.5rem;
  }

  .page-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .stats-summary {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem 1.5rem;
  }

  .search-section {
    padding: 1.5rem;
  }

  .filter-group {
    flex-direction: column;
  }

  .filter-select {
    min-width: auto;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .job-card {
    padding: 1.5rem;
  }

  .job-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .job-id {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .navbar .menu {
    gap: 1rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .search-section {
    padding: 1rem;
  }

  .job-card {
    padding: 1rem;
  }

  .job-title a {
    font-size: 1.2rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.job-card {
  animation: fadeInUp 0.5s ease-out;
}

.job-card:nth-child(2) {
  animation-delay: 0.1s;
}

.job-card:nth-child(3) {
  animation-delay: 0.2s;
}

.job-card:nth-child(4) {
  animation-delay: 0.3s;
}

.job-card:nth-child(5) {
  animation-delay: 0.4s;
}

.job-card:nth-child(6) {
  animation-delay: 0.5s;
}

/* Focus States for Accessibility */
.btn:focus,
.job-title a:focus,
.filter-select:focus,
#searchInput:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .search-section,
  .btn {
    display: none;
  }

  .job-card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
    page-break-inside: avoid;
  }
}
