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

:root {
  --ocean-dark:   #0a1628;
  --ocean-mid:    #0d2137;
  --ocean-blue:   #0a4da3;
  --ocean-light:  #1a6fd4;
  --accent:       #00c6ff;
  --accent-warm:  #fbbf24;
  --text:         #e8edf5;
  --text-muted:   #8aa0be;
  --surface:      #112240;
  --surface-2:    #1a2f50;
  --border:       #1e3a5f;
  --success:      #22c55e;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --font:         'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ocean-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(
    160deg,
    var(--ocean-dark) 0%,
    var(--ocean-mid) 50%,
    #0c1e38 100%
  );
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,198,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1080px; margin: 0 auto; position: relative; }

.badge {
  display: inline-block;
  background: rgba(0,198,255,0.1);
  border: 1px solid rgba(0,198,255,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

/* ── Search Form ── */
.search-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.form-row--email {
  grid-template-columns: 1fr auto;
  align-items: flex-end;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--email { flex: 1; }

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.optional { font-weight: 400; opacity: 0.7; }

select, input[type="email"], input[type="text"] {
  background: var(--ocean-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%238aa0be' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 36px; }
select:focus, input:focus { outline: none; border-color: var(--accent); }
select option { background: var(--ocean-dark); }

.btn-search {
  background: var(--ocean-blue);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 24px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.btn-search:hover { background: var(--ocean-light); }
.btn-search:active { transform: scale(0.98); }

/* ── Results ── */
.results { padding: 48px 0; }

.results-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.results-header h2 { font-size: 1.4rem; font-weight: 700; }
.count-badge {
  background: var(--accent);
  color: var(--ocean-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.results-meta { color: var(--text-muted); font-size: 0.85rem; }

.results-list { display: flex; flex-direction: column; gap: 12px; }

.vacancy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  transition: border-color 0.2s;
}
.vacancy-card:hover { border-color: rgba(0,198,255,0.3); }
.vacancy-card.urgent { border-left: 3px solid var(--accent-warm); }

.vacancy-title { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.vacancy-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--text-muted); }
.vacancy-meta span::before { content: '· '; }
.vacancy-meta span:first-child::before { content: ''; }
.tag-urgent {
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.3);
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.vacancy-actions { display: flex; align-items: flex-start; gap: 10px; }
.btn-view {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 6px 14px;
  transition: border-color 0.2s;
}
.btn-view:hover { border-color: var(--accent); color: var(--accent); }
.source-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 2px;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ── */
.sources-section, .plugin-section { padding: 72px 0; }
.sources-section { background: var(--ocean-mid); }

h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.section-sub { color: var(--text-muted); margin-bottom: 40px; font-size: 1rem; }

/* Sources grid */
.sources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.source-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.source-card--tg { border-color: rgba(0,198,255,0.2); }
.source-icon { font-size: 1.8rem; margin-bottom: 12px; }
.source-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.source-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.source-card ul li { font-size: 0.88rem; color: var(--text-muted); }
.source-card ul li::before { content: '→ '; color: var(--accent); }
.source-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* Plugin steps */
.plugin-steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  background: var(--ocean-blue);
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 36px;
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.step-body h4 { font-size: 1rem; margin-bottom: 10px; }
pre {
  background: var(--ocean-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  overflow-x: auto;
}
pre code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  color: var(--accent);
  line-height: 1.7;
}

/* Alert section */
.alert-section { padding: 64px 0; }
.alert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.alert-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.alert-card > p { color: var(--text-muted); margin-bottom: 28px; }
.alert-form { display: flex; flex-direction: column; gap: 12px; }
.alert-row { display: flex; gap: 10px; flex-wrap: wrap; }
.alert-row select, .alert-row input { flex: 1; min-width: 160px; }
.btn-alert {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--ocean-dark);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 22px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-alert:hover { opacity: 0.85; }
.form-note { font-size: 0.78rem; color: var(--text-muted); }
.alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  margin-top: 16px;
  padding: 12px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--ocean-dark);
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 0.8rem; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row--email { grid-template-columns: 1fr; }
  .btn-search { width: 100%; justify-content: center; }
  .stats-inner { gap: 20px; }
  .stat-divider { display: none; }
  .nav-links { gap: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .alert-row { flex-direction: column; }
}
