/* ==========================================================================
   HOURLYJOBS — PRODUCTION DESIGN SYSTEM (main.css)
   Powered by ORODANA | hourlyjobs.orodana.com
   FIND WORK. FIND PEOPLE.
   ========================================================================== */

:root {
  /* Core Color Palette - Smooth, Premium Dark Theme */
  --bg-dark: #070a12;
  --bg-darker: #04060a;
  --bg-surface: #0e1424;
  --bg-card: rgba(15, 22, 38, 0.88);
  --bg-card-hover: rgba(22, 33, 56, 0.96);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-active: rgba(255, 255, 255, 0.08);
  --bg-glass-strong: rgba(255, 255, 255, 0.14);

  /* Brand Colors */
  --worker-primary: #10b981;
  --worker-secondary: #06b6d4;
  --worker-light: #34d399;
  --worker-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --worker-glow: rgba(16, 185, 129, 0.25);
  --worker-border: rgba(16, 185, 129, 0.35);

  --employer-primary: #3b82f6;
  --employer-secondary: #6366f1;
  --employer-light: #60a5fa;
  --employer-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --employer-glow: rgba(59, 130, 246, 0.25);
  --employer-border: rgba(59, 130, 246, 0.35);

  --accent-time: #f59e0b;
  --accent-time-light: #fbbf24;
  --accent-time-glow: rgba(245, 158, 11, 0.2);
  --accent-cyan: #38bdf8;
  --accent-rose: #f43f5e;

  /* Neutrals & Text */
  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;
  
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --border-active: rgba(255, 255, 255, 0.3);

  /* 2030 Next-Gen Futuristic Typography Tokens */
  --font-main: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font-main);
  --font-accent: 'Space Grotesk', monospace;

  /* Layout Spacing Tokens */
  --section-pad-y: 4.5rem;
  --container-max-w: 1240px;
  --card-pad: 1.75rem;
  --card-pad-sm: 1.25rem;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);

  /* Transitions */
  --trans-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #121a2d 0%, var(--bg-dark) 40%, var(--bg-darker) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Light Orbs */
body::before, body::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.12;
}

body::before {
  top: 2%;
  left: -100px;
  background: var(--worker-primary);
}

body::after {
  top: 15%;
  right: -100px;
  background: var(--employer-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

button, input, select, textarea {
  font-family: var(--font-main);
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
  font-family: var(--font-display);
}

/* Accessible Focus Visible System */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Typography Hierarchy - Sora 2030 Futuristic Proportions */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-white);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* Global Container System */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Section Header Shared Styles */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-highlight);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.section-tag.worker-theme {
  color: var(--worker-primary);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.section-tag.employer-theme {
  color: var(--employer-primary);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

.section-tag.time-theme {
  color: var(--accent-time);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.section-title {
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* Utility Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-urgent {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

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

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

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

.badge-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
}

/* Pulsing live dot */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  display: inline-block;
}

.live-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-ring 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--trans-normal);
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.02rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-worker {
  background: var(--worker-gradient);
  color: #022c22;
  box-shadow: 0 4px 16px var(--worker-glow);
}

.btn-worker:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  color: #000;
}

.btn-employer {
  background: var(--employer-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--employer-glow);
}

.btn-employer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}

.btn-glass {
  background: var(--bg-glass);
  color: var(--text-white);
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--bg-glass-active);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-subtle {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-subtle);
}

.btn-subtle:hover {
  color: #ffffff;
  border-color: var(--border-highlight);
  background: var(--bg-glass);
}

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

.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}
