@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --panel-bg: rgba(30, 41, 59, 0.45);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  --danger-color: #ef4444;
  --success-color: #22c55e;
}

body.hireremote-theme {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .search-title, .hr-brand, .job-title, .empty-title, .pricing-title {
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

/* Glassmorphism Panel */
.glass-panel, .job-card, .pricing-card {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  padding: 30px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover, .pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

/* Navbar */
.hr-navbar {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hr-brand {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none !important;
}

.hr-brand span {
  font-weight: 300;
  color: var(--text-secondary);
  -webkit-text-fill-color: initial;
}

/* Hero Section */
.search-hero {
  padding: 80px 0 60px 0;
  text-align: center;
}

.search-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn-primary-custom, .btn-apply, .btn-checkout {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff !important;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover, .btn-apply:hover, .btn-checkout:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  text-decoration: none;
}

.btn-reset-custom {
  display: inline-block;
  color: var(--text-secondary);
  padding: 12px 20px;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.btn-reset-custom:hover {
  color: #fff;
  text-decoration: none;
}

/* Forms */
.form-group-custom {
  margin-bottom: 25px;
}

.form-label-custom {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.input-custom {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-custom:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

/* Suggestions Dropdown */
.suggest-box {
  position: relative;
}

.suggest-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  margin-top: 8px;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
}

.suggest-item {
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: var(--text-primary);
}

.suggest-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Pills / Checkboxes */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-checkbox {
  display: none;
}

.pill-label {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.pill-checkbox:checked + .pill-label {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pill-label:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Results Info */
.results-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 0 10px;
}

.results-count {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.results-count strong {
  color: #fff;
  font-weight: 600;
}

/* Job Cards */
.job-card {
  margin-bottom: 20px;
  padding: 30px;
}

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

.job-title {
  font-size: 1.5rem;
  margin: 0 0 5px 0;
}

.job-company {
  font-size: 1.1rem;
  color: var(--accent-color) !important;
  font-weight: 500;
  margin: 0;
}

.job-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.badge-custom {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-location {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-type {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-comp {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.job-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
}

.job-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 30px;
}

.empty-title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.empty-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Pricing Page */
.pricing-container {
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  text-align: center;
  padding: 40px;
}

.pricing-price {
  font-size: 4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #fff;
  margin: 20px 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.pricing-features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: bold;
  margin-right: 15px;
}

/* Job Detail Page */
.job-detail-header {
  padding: 60px 0;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 40px;
  background: rgba(15, 23, 42, 0.3);
}

.job-detail-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.job-detail-content h2, .job-detail-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.job-detail-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.job-detail-content li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

/* Fix user avatar image */
.search-img-3 {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-hover);
}
