/* Upply SEO Pages Styling */
/* Change this file to update all generated pages instantly */

:root {
  --primary-purple: #7c3aed;
  --primary-pink: #db2777;
  --gradient-start: #7c3aed;
  --gradient-end: #db2777;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-light-purple: #f5f3ff;
  --border-gray: #e5e7eb;
  --border-purple: #c4b5fd;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-gray);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-gray);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-purple);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--bg-light-purple) 0%, var(--bg-white) 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-gray);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gray);
  font-weight: 500;
}

.stat-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-purple);
}

.stat-value {
  color: var(--primary-purple);
  font-weight: 700;
}

/* Insights Section */
.insights-section {
  padding: 2rem 0;
  background: var(--bg-white);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.insight-card {
  background: var(--bg-gray);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border-gray);
}

.insight-card h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-card h3 svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-purple);
}

/* Skills List */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--bg-light-purple);
  color: var(--primary-purple);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Companies List */
.companies-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-gray);
}

.company-item:last-child {
  border-bottom: none;
}

.company-name {
  font-weight: 500;
}

.company-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Job Listings */
.jobs-section {
  padding: 2rem 0;
}

.jobs-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.job-card:hover {
  border-color: var(--border-purple);
  box-shadow: var(--shadow-md);
}

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

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.job-salary {
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

.job-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.job-meta svg {
  width: 1rem;
  height: 1rem;
}

.job-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Apply Button */
.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.apply-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Related Searches */
.related-section {
  padding: 2rem 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-gray);
}

.related-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-gray);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.related-link:hover {
  background: var(--bg-light-purple);
  border-color: var(--border-purple);
  color: var(--primary-purple);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.75rem;
  }
  
  .stats-bar {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .stat-item {
    width: 100%;
  }
  
  .job-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .job-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-gray);
  border-top-color: var(--primary-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* =================================
   SINGLE JOB PAGE STYLES
   ================================= */

/* SVG Icon sizing */
svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Single Job Hero */
.single-job-hero {
  background: linear-gradient(135deg, var(--bg-light-purple) 0%, var(--bg-white) 100%);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-gray);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-purple);
  text-decoration: none;
}

.breadcrumb svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--text-muted);
}

.single-job-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.single-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.single-job-meta > span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.single-job-salary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #166534;
}

/* Single Job Content */
.single-job-content {
  padding: 2rem 0;
}

.job-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.job-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.job-skills h3,
.job-description-full h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.description-content {
  line-height: 1.7;
  color: var(--text-primary);
}

.description-content p {
  margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.description-content li {
  margin-bottom: 0.5rem;
}

.description-content strong {
  font-weight: 600;
}

/* Sidebar */
.job-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.apply-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gray);
  position: sticky;
  top: 1rem;
}

.apply-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.apply-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.job-alerts-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary-purple);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.job-alerts-link:hover {
  color: var(--primary-pink);
}

.job-alerts-link svg {
  width: 1rem;
  height: 1rem;
}

.apply-btn-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
  color: white;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s;
}

.apply-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.apply-direct {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.apply-direct:hover {
  color: var(--primary-purple);
}

.job-details-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border-gray);
}

.job-details-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.job-details-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.job-details-card dt {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.job-details-card dd {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Related Jobs */
.related-jobs-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-gray);
}

.related-jobs-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.related-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.related-job-link {
  text-decoration: none;
}

.related-job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: all 0.2s;
}

.related-job-card:hover {
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-md);
}

.related-job-card h4 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.related-job-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Responsive for single job */
@media (max-width: 1024px) {
  .job-layout {
    grid-template-columns: 1fr;
  }
  
  .apply-card {
    position: static;
  }
  
  .job-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .single-job-title {
    font-size: 1.5rem;
  }
  
  .single-job-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

