/* ============================================================
   TRADE UP — Trades Directory + Individual Trade Pages
============================================================ */

/* ── TRADES HERO ── */
.trades-hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  text-align: center;
}
.trades-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(51,102,204,0.13) 0%, transparent 60%),
    radial-gradient(rgba(51,102,204,0.055) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  pointer-events: none;
}
.trades-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(51,102,204,0.22) 25%, rgba(51,102,204,0.22) 75%, transparent 100%);
}
.trades-hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.trades-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(51,102,204,0.08); border: 1px solid rgba(51,102,204,0.18);
  font-size: 12px; font-weight: 700; color: #7aa0db;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.trades-hero__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2bb574; flex-shrink: 0;
}
.trades-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 56px; font-weight: 800;
  color: #e6ecf5; letter-spacing: -0.02em; line-height: 1.07;
  max-width: 700px;
}
.trades-hero__title em { font-style: normal; color: #4a7de0; }
.trades-hero__sub {
  font-size: 16px; color: #8ba3c2; max-width: 480px;
  line-height: 1.65; margin-bottom: 4px;
}

/* ── DIRECTORY GRID ── */
.trades-section {
  padding: 48px 0 80px;
}
.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trade-card {
  display: flex; flex-direction: column;
  background: #0b1726;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px;
  gap: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.trade-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--trade-color, #3366cc);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s ease;
  opacity: 0.7;
}
.trade-card:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 8px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(-2px);
}
.trade-card:hover::before { transform: scaleX(1); }

.trade-card__icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--trade-bg, rgba(51,102,204,0.08));
  border: 1px solid var(--trade-br, rgba(51,102,204,0.18));
  color: var(--trade-color, #4a7de0);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.trade-card:hover .trade-card__icon {
  background: var(--trade-bg-hover, rgba(51,102,204,0.14));
  border-color: var(--trade-br-hover, rgba(51,102,204,0.3));
}
.trade-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.trade-card__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px; font-weight: 800;
  color: #e6ecf5; letter-spacing: -0.01em; line-height: 1;
  transition: color 0.16s ease;
}
.trade-card:hover .trade-card__name { color: #fff; }
.trade-card__desc {
  font-size: 13px; color: #8ba3c2; line-height: 1.55; font-weight: 400;
}
.trade-card__arrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700;
  color: var(--trade-color, #4a7de0);
  margin-top: 4px;
  transition: gap 0.18s ease;
}
.trade-card:hover .trade-card__arrow { gap: 8px; }

/* ── INDIVIDUAL TRADE PAGE ── */
.trade-hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}
.trade-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% -10%, var(--trade-glow, rgba(51,102,204,0.12)) 0%, transparent 55%),
    radial-gradient(rgba(51,102,204,0.04) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  pointer-events: none;
}
.trade-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--trade-line, rgba(51,102,204,0.22)) 25%, var(--trade-line, rgba(51,102,204,0.22)) 75%, transparent 100%);
}
.trade-hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 18px;
}
.trade-hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #8ba3c2;
  margin-bottom: 4px; transition: color 0.16s ease;
  text-decoration: none;
}
.trade-hero__back:hover { color: #e6ecf5; }
.trade-hero__header { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trade-hero__icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--trade-bg, rgba(51,102,204,0.08));
  border: 1px solid var(--trade-br, rgba(51,102,204,0.2));
  color: var(--trade-color, #4a7de0);
  flex-shrink: 0;
}
.trade-hero__titles { flex: 1; }
.trade-hero__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8ba3c2; margin-bottom: 6px;
}
.trade-hero__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px; font-weight: 800;
  color: #e6ecf5; letter-spacing: -0.02em; line-height: 1;
}
.trade-hero__tagline {
  font-size: 16px; color: #8ba3c2; line-height: 1.6; max-width: 600px;
}
.trade-hero__stat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: var(--trade-bg, rgba(51,102,204,0.08));
  border: 1px solid var(--trade-br, rgba(51,102,204,0.2));
}
.trade-hero__stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--trade-color, #4a7de0); line-height: 1;
}
.trade-hero__stat-label {
  font-size: 13px; font-weight: 600; color: #8ba3c2;
}

/* ── TRADE CONTENT ── */
.trade-content {
  padding: 48px 0 80px;
}
.trade-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.trade-main { display: flex; flex-direction: column; gap: 20px; }
.trade-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }

.trade-block {
  background: #0b1726;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
}
.trade-block__label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #4a6282;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.trade-block__label::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07);
}
.trade-block__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800;
  color: #e6ecf5; margin-bottom: 12px; line-height: 1.1;
}
.trade-block p {
  font-size: 14.5px; color: #8ba3c2; line-height: 1.7; margin-bottom: 16px;
}
.trade-block p:last-child { margin-bottom: 0; }

.trade-list {
  display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0;
}
.trade-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 14px; color: #8ba3c2; line-height: 1.55;
}
.trade-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--trade-color, #4a7de0);
  flex-shrink: 0; margin-top: 7px;
}

.cert-list {
  display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0;
}
.cert-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: #8ba3c2; line-height: 1.55;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
}
.cert-list li svg { flex-shrink: 0; margin-top: 1px; color: var(--trade-color, #4a7de0); }

/* ── JOBS PLACEHOLDER ── */
.jobs-placeholder {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
  padding: 48px 24px;
  background: rgba(51,102,204,0.03);
  border: 1.5px dashed rgba(51,102,204,0.18);
  border-radius: 12px;
}
.jobs-placeholder__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(51,102,204,0.08); border: 1px solid rgba(51,102,204,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #4a7de0; margin-bottom: 4px;
}
.jobs-placeholder h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 800; color: #e6ecf5;
}
.jobs-placeholder p { font-size: 13.5px; color: #4a6282; max-width: 320px; }

/* ── SIDEBAR CTA ── */
.trade-cta {
  background: linear-gradient(140deg, rgba(51,102,204,0.12) 0%, rgba(51,102,204,0.04) 100%);
  border: 1px solid rgba(51,102,204,0.22);
  border-radius: 14px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.trade-cta__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 800; color: #e6ecf5; line-height: 1.2;
}
.trade-cta__sub { font-size: 13px; color: #8ba3c2; line-height: 1.55; }
.trade-cta__btns { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.trade-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 9px;
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.trade-cta__btn:active { transform: translateY(1px); }
.trade-cta__btn--primary {
  background: #3366cc; color: #fff; border-color: #3366cc;
}
.trade-cta__btn--primary:hover { background: #4a7de0; border-color: #4a7de0; box-shadow: 0 4px 16px rgba(51,102,204,0.35); }
.trade-cta__btn--ghost {
  background: transparent; color: #8ba3c2; border-color: rgba(255,255,255,0.1);
}
.trade-cta__btn--ghost:hover { background: rgba(255,255,255,0.04); color: #e6ecf5; border-color: rgba(255,255,255,0.18); }

/* ── QUICK STATS SIDEBAR ── */
.trade-stats {
  background: #0b1726;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.trade-stats__label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #4a6282;
}
.trade-stats__grid { display: flex; flex-direction: column; gap: 12px; }
.trade-stats__item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
}
.trade-stats__item-label { font-size: 12.5px; color: #4a6282; font-weight: 500; }
.trade-stats__item-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800; color: #e6ecf5;
}

/* ── FOOTER ── */
.trades-footer {
  background: #0b1726;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}
.trades-footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.trades-footer__inner p { font-size: 12px; color: #4a6282; }
.trades-footer__links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.trades-footer__links a {
  font-size: 12px; color: #4a6282; text-decoration: none;
  transition: color 0.16s ease;
}
.trades-footer__links a:hover { color: #8ba3c2; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .trades-grid { grid-template-columns: repeat(2, 1fr); }
  .trade-layout { grid-template-columns: 1fr; }
  .trade-sidebar { position: static; }
  .trade-hero__name { font-size: 40px; }
  .trades-hero__title { font-size: 42px; }
}
@media (max-width: 680px) {
  .trades-grid { grid-template-columns: 1fr; }
  .trades-hero { padding: 48px 0 40px; }
  .trades-hero__title { font-size: 32px; }
  .trade-hero { padding: 40px 0 36px; }
  .trade-hero__name { font-size: 32px; }
  .trade-hero__icon { width: 50px; height: 50px; }
  .trade-block { padding: 20px; }
}
