/* ==========================================================================
   SQLForge page components. Ported from the legacy standalone page so the
   rebuilt page renders; shared furniture stays in migryx-core.css.
   ========================================================================== */

/* Two tints these components need that migryx-core.css does not define. */
:root {
  --accent: #E8F7FF;
  --surface2: #F0F7FC;
}

.hc-label {
  font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--brand2); margin-bottom: 12px;
}

.arrow-row {
  display: flex; align-items: center; gap: 8px; margin: 8px 0;
}

.arrow-row .dl-tag {
  background: var(--accent); color: var(--brand2); font-weight: 700; font-size: .82rem; border-radius: 8px; padding: .3rem .7rem; flex-shrink: 0;
}

.arrow-row .arrow-icon {
  color: var(--brand); font-size: 1.1rem; font-weight: 900;
}

.arrow-row .tgt-tag {
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-weight: 700; font-size: .82rem; border-radius: 8px; padding: .3rem .7rem; flex-shrink: 0;
}

.dialect-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

@media (max-width: 900px) {
  .dialect-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .dialect-grid {
    grid-template-columns: 1fr;
  }
}

.dialect-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
      padding: 24px; box-shadow: 0 4px 16px rgba(10,37,64,.05);
      transition: box-shadow .2s, transform .15s;
      position: relative; overflow: hidden;
}

.dialect-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand2));
}

.dialect-card:hover {
  box-shadow: 0 10px 32px rgba(10,37,64,.1); transform: translateY(-2px);
}

.dialect-card .dc-name {
  font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 6px;
}

.dialect-card .dc-vendor {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand2); margin-bottom: 12px;
}

.dialect-card .dc-features {
  list-style: none; padding: 0; margin: 0 0 16px;
}

.dialect-card .dc-features li {
  font-size: .83rem; color: var(--ink2); padding: 3px 0 3px 16px; position: relative;
}

.dialect-card .dc-features li::before {
  content: "▸"; position: absolute; left: 0; color: var(--brand); font-size: .7rem; top: 4px;
}

.dc-modernize {
  display: inline-block; font-size: .78rem; font-weight: 800; color: var(--brand2); background: var(--accent); border-radius: 999px; padding: .28rem .8rem; letter-spacing: .04em;
}

.caps-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}

@media (max-width: 900px) {
  .caps-split {
    grid-template-columns: 1fr; gap: 40px;
  }
}

.cap-list {
  list-style: none; padding: 0; margin: 0;
}

.cap-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .93rem; color: var(--ink2);
}

.cap-list li:last-child {
  border-bottom: none;
}

.cap-list li .check {
  width: 20px; height: 20px; background: linear-gradient(135deg, var(--brand), var(--brand2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}

.cap-list li .check svg {
  width: 10px; height: 10px; fill: #fff;
}

.target-chip .tc-dot {
  width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand2)); flex-shrink: 0;
}

.fn-table-wrap {
  overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(10,37,64,.06);
}

.fn-table {
  width: 100%; border-collapse: collapse; font-size: .87rem;
}

.fn-table thead tr {
  background: linear-gradient(90deg, var(--ink) 0%, var(--brand2) 100%);
}

.fn-table thead th {
  color: #fff; font-weight: 700; padding: 12px 16px; text-align: left;
}

.fn-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.fn-table tbody tr:last-child {
  border-bottom: none;
}

.fn-table tbody tr:hover {
  background: var(--accent);
}

.fn-table td {
  padding: 10px 16px; color: var(--ink2); vertical-align: top;
}

.fn-table td code {
  background: #f0f7fc; border-radius: 4px; padding: 2px 6px; font-family: "Courier New", monospace; font-size: .82rem; color: var(--ink);
}

.method-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

@media (max-width: 900px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; position: relative; overflow: hidden; box-shadow: 0 4px 16px rgba(10,37,64,.05);
}

.method-card .phase-num {
  width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(41,181,232,.3);
}

.method-card h3 {
  font-size: 1.1rem; margin-bottom: 10px;
}

.method-card ul {
  list-style: none; padding: 0; margin: 0;
}

.method-card ul li {
  font-size: .87rem; color: var(--ink2); padding: 5px 0 5px 18px; border-bottom: 1px dashed var(--border); position: relative;
}

.method-card ul li:last-child {
  border-bottom: none;
}

.method-card ul li::before {
  content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}

.platform-rail {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

.pl-badge {
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 18px; font-size: .88rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(10,37,64,.04);
}

.pl-badge.source {
  border-color: #ffa94d;
}

.pl-badge.source .dot {
  background: #0E7A4E;
}

.pl-badge.target {
  border-color: var(--brand);
}

.pl-badge.target .dot {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.pl-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

.pilot-card {
  background: linear-gradient(135deg, var(--ink) 0%, #0d3353 100%); border-radius: 20px; padding: 52px 48px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; box-shadow: 0 20px 50px rgba(4,26,44,.35);
}

@media (max-width: 768px) {
  .pilot-card {
    grid-template-columns: 1fr; padding: 32px 24px;
  }
}

.pilot-card h2 {
  color: #fff; margin-bottom: .5rem;
}

.pilot-card p {
  color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 1.5rem;
}

.pilot-features {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;
}

.pilot-features li {
  display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.85);
}

.pilot-features li::before {
  content: "✓"; width: 20px; height: 20px; background: var(--brand); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 900; color: #fff; flex-shrink: 0;
}

.price-card {
  background: #fff; border-radius: 16px; padding: 28px 32px; text-align: center; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.price-card .price-label {
  font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); margin-bottom: 8px;
}

.price-card .price-value {
  font-size: 2.4rem; font-weight: 900; color: var(--ink); line-height: 1;
}

.price-card .price-sub {
  font-size: .8rem; color: var(--ink3); margin-top: 4px;
}

.price-card .btn-primary {
  margin-top: 16px; width: 100%; justify-content: center;
}

.contact-cta-box {
  background: var(--accent); border: 1.5px solid rgba(41,181,232,.3); border-radius: 14px; padding: 24px; margin-top: 24px;
}

.contact-cta-box h4 {
  font-size: .95rem; margin-bottom: .4rem; color: var(--ink);
}

.contact-cta-box p {
  font-size: .87rem; margin-bottom: 12px;
}

.prefooter {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%); padding: 60px 0; text-align: center;
}

.prefooter h2 {
  color: #fff; margin-bottom: .75rem; font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.prefooter p {
  color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 1.8rem; font-size: 1rem;
}

.prefooter-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

.parser-visual {
  background: var(--ink); border-radius: 16px; padding: 28px; font-family: "Courier New", monospace; font-size: .82rem; color: #8ecfee; box-shadow: 0 10px 32px rgba(4,26,44,.5); line-height: 2;
}

.parser-visual .pv-comment {
  color: #4d7a90;
}

.parser-visual .pv-kw {
  color: #29B5E8;
}

.parser-visual .pv-out {
  color: #5be8a2;
}

.parser-visual .pv-arrow {
  color: #ff9940; font-weight: 700;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
      padding: 24px; box-shadow: 0 4px 16px rgba(10,37,64,.05);
      transition: box-shadow .2s, transform .15s;
      position: relative; overflow: hidden;
}

.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand2));
}

.feature-card:hover {
  box-shadow: 0 10px 32px rgba(10,37,64,.1); transform: translateY(-2px);
}

.feature-card .fc-icon {
  font-size: 1.75rem; margin-bottom: 10px; line-height: 1;
}

.feature-card h3 {
  font-size: 1.08rem; margin-bottom: 8px;
}

.feature-card p {
  font-size: .88rem; color: var(--ink2); margin-bottom: 12px;
}

.feature-card ul {
  list-style: none; padding: 0; margin: 0;
}

.feature-card ul li {
  font-size: .82rem; color: var(--ink2); padding: 4px 0 4px 14px; position: relative;
}

.feature-card ul li::before {
  content: "▸"; position: absolute; left: 0; color: var(--brand); font-size: .65rem; top: 5px;
}

.api-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

@media (max-width: 768px) {
  .api-grid {
    grid-template-columns: 1fr;
  }
}

.api-tile {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
      padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px;
}

.api-tile .method {
  flex-shrink: 0; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--brand2); padding: .25rem .5rem; border-radius: 6px;
}

.api-tile .method.get {
  background: #0d8050;
}

.api-tile code {
  font-family: "Courier New", monospace; font-size: .82rem; color: var(--ink); word-break: break-all;
}

.api-tile p {
  font-size: .85rem; margin: 4px 0 0;
}

/* migryx-core.css styles .btn-outline-white for light backgrounds (ink text,
   grey border), which disappears on the prefooter's brand fill. */
.prefooter .btn-outline-white {
  color: #fff; border-color: rgba(255, 255, 255, .8);
}

.prefooter .btn-outline-white:hover {
  background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff;
}
