/*
Theme Name: WebOfJobs AI Clean
Theme URI: https://webofjobs.com
Author: WebOfJobs
Description: Clean AI-style WebOfJobs landing theme with candidate and employer pages.
Version: 1.2.0
Requires at least: 6.0
Text Domain: webofjobs-ai-clean
*/

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

:root {
  --ink: #102033;
  --muted: rgba(16,32,51,.65);
  --blue: #2563eb;
  --cyan: #0ea5e9;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --card: rgba(255,255,255,.78);
  --border: rgba(37,99,235,.14);
  --shadow: 0 24px 70px rgba(31,74,130,.16);
}

html, body {
  width: 100%;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(14,165,233,.18), transparent 31%),
    radial-gradient(circle at 82% 18%, rgba(20,184,166,.14), transparent 30%),
    linear-gradient(180deg, #f7fbff, #edf7ff);
}

#radar-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}

.page, .scanlines, .vignette { position: relative; z-index: 1; }
.scanlines { display: none; }

.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), transparent 36%),
    radial-gradient(ellipse at center, transparent 54%, rgba(227,241,255,.66));
}

.site-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding: 1rem 1.25rem; display: flex; justify-content: center;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto; display: flex; align-items: center;
  gap: .25rem; padding: .4rem; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1px solid rgba(37,99,235,.12);
  box-shadow: 0 12px 40px rgba(31,74,130,.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

.site-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .62rem .9rem; border-radius: 999px;
  color: rgba(16,32,51,.68); text-decoration: none;
  font-size: .78rem; font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.site-nav a:hover { color: var(--blue); background: rgba(37,99,235,.08); transform: translateY(-1px); }
.site-nav .nav-home { color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 8px 22px rgba(37,99,235,.22); }

.page {
  position: relative; z-index: 10; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding: 6.4rem 1rem 3rem; gap: 2rem;
}

.header { text-align: center; max-width: 860px; animation: fadeDown .8s ease both; }
.logo { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 900; letter-spacing: -.07em; line-height: .95; color: var(--ink); }
.logo span { color: var(--blue); }
.tagline { max-width: 760px; margin: 1rem auto 0; color: var(--muted); font-size: clamp(.98rem, 2vw, 1.15rem); line-height: 1.7; }

.status-bar { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; color: rgba(16,32,51,.58); font-size: .78rem; font-weight: 700; }
.status-bar span { padding: .42rem .72rem; border-radius: 999px; background: rgba(255,255,255,.66); border: 1px solid rgba(37,99,235,.10); box-shadow: 0 8px 28px rgba(31,74,130,.06); }
.status-bar .pulse::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 999px; background: var(--teal); animation: softPulse 2.2s ease infinite; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; width: 100%; max-width: 940px; animation: fadeUp .8s ease .15s both; }

.panel-aura { position: relative; border-radius: 26px; }
.panel-aura::before { content: ""; position: absolute; inset: -1px; border-radius: 27px; z-index: 0; opacity: .9; }
#candidate-panel.panel-aura::before { background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(20,184,166,.22)); }
#employer-panel.panel-aura::before  { background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(37,99,235,.12)); }

.panel {
  position: relative; z-index: 1; background: var(--card);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 25px; padding: 1.8rem;
  border: 1px solid rgba(255,255,255,.78); box-shadow: var(--shadow); overflow: hidden;
}
.panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 0%, rgba(37,99,235,.10), transparent 28%), radial-gradient(circle at 90% 100%, rgba(20,184,166,.08), transparent 30%); pointer-events: none; }
.panel::after  { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%); pointer-events: none; }

.panel-header, .panel-sub, .shortcode-area, .form-page-header,
.content-panel h1, .content-panel h2, .content-panel p, .content-panel li, .content-panel ul { position: relative; z-index: 2; }

.panel-header { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; flex-wrap: wrap; }
.panel-sparkle { width: 30px; height: 30px; flex-shrink: 0; }
.panel-title { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.025em; line-height: 1.2; }
.panel-title em { font-style: normal; color: var(--blue); }
#employer-panel .panel-title em { color: var(--amber); }
.panel-badge { font-size: .7rem; font-weight: 800; padding: .34rem .66rem; border-radius: 999px; }
#candidate-panel .panel-badge { background: rgba(37,99,235,.08); color: var(--blue); border: 1px solid rgba(37,99,235,.15); }
#employer-panel .panel-badge  { background: rgba(245,158,11,.12); color: #b45309; border: 1px solid rgba(245,158,11,.18); }
.panel-sub { font-size: .96rem; color: var(--muted); margin-bottom: 1.15rem; line-height: 1.7; }

.shortcode-area { border-top: 1px solid rgba(37,99,235,.09); padding-top: 1.05rem; font-size: .92rem; color: var(--ink); line-height: 1.65; }
.shortcode-area .wpforms-container { margin-bottom: 0 !important; }
.shortcode-area .wpforms-field-label, .shortcode-area .wpforms-field-sublabel, .shortcode-area .wpforms-field-description { color: rgba(16,32,51,.78) !important; }
.shortcode-area input, .shortcode-area textarea, .shortcode-area select { max-width: 100%; background: rgba(255,255,255,.86) !important; border: 1px solid rgba(37,99,235,.14) !important; color: var(--ink) !important; border-radius: 14px !important; }
.shortcode-area input::placeholder, .shortcode-area textarea::placeholder { color: rgba(16,32,51,.36) !important; }

.shortcode-area button, .shortcode-area input[type="submit"], .shortcode-area .wpforms-submit,
.panel-link, .back-link, .back-to-home {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px !important; text-decoration: none;
  font-family: inherit !important; font-size: .86rem !important; font-weight: 800 !important;
  letter-spacing: 0 !important; text-transform: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.panel-link { margin-top: .35rem; padding: .82rem 1.08rem; }
#candidate-panel .panel-link, #candidate-panel .wpforms-submit, #candidate-panel button, #candidate-panel input[type="submit"] { color: white !important; border: 0 !important; background: linear-gradient(135deg, var(--blue), var(--cyan)) !important; box-shadow: 0 12px 26px rgba(37,99,235,.20) !important; }
#employer-panel .panel-link,  #employer-panel .wpforms-submit,  #employer-panel button,  #employer-panel input[type="submit"]  { color: #182033 !important; border: 0 !important; background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; box-shadow: 0 12px 26px rgba(245,158,11,.22) !important; }
.panel-link:hover, .shortcode-area button:hover, .shortcode-area input[type="submit"]:hover, .shortcode-area .wpforms-submit:hover, .back-link:hover, .back-to-home:hover { transform: translateY(-1px); }

.form-page { width: 100%; max-width: 780px; }
.form-panel { width: 100%; }
.form-page-header { margin-bottom: 1.25rem; }
.back-link, .back-to-home { margin-bottom: 1rem; color: var(--blue); background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.14); padding: .66rem .9rem; box-shadow: none; }

.form-page-title, .content-panel h1 { color: var(--ink); font-weight: 900; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: .72rem; }
.form-page-sub, .content-panel .lead { color: var(--muted); line-height: 1.75; font-size: 1.04rem; }
.content-page { width: 100%; max-width: 880px; }
.content-panel { padding: 2.1rem; }
.content-panel h2 { color: var(--ink); font-size: 1.25rem; font-weight: 800; margin: 1.45rem 0 .5rem; }
.content-panel p, .content-panel li { color: var(--muted); line-height: 1.8; font-size: 1rem; }
.content-panel ul { padding-left: 1.2rem; margin-top: .75rem; }

.footer { font-size: .82rem; font-weight: 700; color: rgba(16,32,51,.55); text-align: center; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(18px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes softPulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

@media (max-width: 720px) {
  .site-topbar { padding: .7rem; }
  .site-nav { width: 100%; overflow-x: auto; justify-content: flex-start; border-radius: 18px; }
  .site-nav a { white-space: nowrap; font-size: .72rem; padding: .56rem .72rem; }
  .page { padding-top: 5.9rem; }
  .cards { grid-template-columns: 1fr; }
  .panel { padding: 1.35rem; }
}

/* AI Assistant */
.ai-page { max-width: 1060px; margin: 0 auto; width: 100%; }
.ai-hero { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.ai-hero .eyebrow { display:inline-flex; padding:.45rem .8rem; border-radius:999px; background:rgba(37,99,235,.09); color:var(--blue); font-weight:800; font-size:.76rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:1rem; }
.ai-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.06em; margin-bottom: 1rem; }
.ai-hero p { color: var(--muted); font-size: 1.04rem; line-height: 1.75; max-width: 720px; margin: 0 auto; }
.ai-shell { position: relative; z-index: 2; width: min(100%, 920px); border-radius: 30px; padding: 1rem; background: rgba(255,255,255,.72); border: 1px solid rgba(37,99,235,.14); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.ai-chat-log { height: min(62vh, 620px); min-height: 390px; overflow-y: auto; padding: 1rem; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(239,248,255,.74)); border: 1px solid rgba(37,99,235,.10); }
.ai-message { display: flex; margin: .7rem 0; }
.ai-message.user { justify-content: flex-end; }
.ai-message.bot  { justify-content: flex-start; }
.ai-message .bubble { max-width: 78%; padding: .9rem 1rem; border-radius: 20px; line-height: 1.58; font-size: .95rem; box-shadow: 0 10px 28px rgba(31,74,130,.08); }
.ai-message.user .bubble { color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); border-bottom-right-radius: 7px; }
.ai-message.bot  .bubble { background: white; color: var(--ink); border: 1px solid rgba(37,99,235,.10); border-bottom-left-radius: 7px; }
.ai-message .bubble ul { margin: .5rem 0 .2rem 1.1rem; }
.ai-message .bubble li { margin: .5rem 0; }
.ai-message .bubble a  { color: var(--blue); font-weight: 800; }
.ai-chat-form { display: grid; grid-template-columns: 1fr auto; gap: .65rem; margin-top: .85rem; }
.ai-chat-form input { border: 1px solid rgba(37,99,235,.16); border-radius: 999px; padding: .95rem 1rem; font: inherit; background: white; color: var(--ink); outline: none; }
.ai-chat-form input:focus { border-color: rgba(37,99,235,.48); box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
.ai-chat-form button { border: 0; border-radius: 999px; padding: .95rem 1.25rem; font: inherit; font-weight: 900; color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); cursor: pointer; box-shadow: 0 12px 28px rgba(37,99,235,.20); }
.ai-chat-form button:hover { transform: translateY(-1px); }
@media (max-width: 700px) { .ai-chat-form { grid-template-columns: 1fr; } .ai-message .bubble { max-width: 92%; } }
