/* ===================================================================
   PayMethod Guide — countries directory hub
   This file is intentionally separate from country detail page styles.
   =================================================================== */

.countries-hub-hero .hero-inner {
  padding: 34px 0 42px;
}

.decision-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.decision-card h2 {
  margin: 8px 0 16px;
  font-size: 1.55rem;
  text-align: left;
}

.decision-label,
.section-label {
  display: inline-flex;
  color: var(--hero-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label + h2 {
  margin-top: 8px;
}

.decision-card ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.decision-card li {
  position: relative;
  margin: 10px 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
}

.decision-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

.decision-card a,
.text-link {
  font-weight: 800;
}

.editorial-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.editorial-bar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--muted);
  font-size: 13px;
}

.editorial-bar p {
  margin: 0;
}

.editorial-bar a {
  font-weight: 800;
}

.country-route-visual-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.country-route-visual-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  align-items: center;
  gap: 38px;
}

.country-route-visual-layout h2 {
  margin: 12px 0 var(--h2-content-gap);
  text-align: left;
}

.country-route-visual-layout p {
  color: var(--muted);
}

.country-route-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 57, 199, 0.14);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.country-route-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 853;
  object-fit: cover;
}

.country-route-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.country-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.country-hub-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.country-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 57, 199, 0.28);
  box-shadow: 0 18px 42px rgba(7, 31, 94, 0.12);
}

.country-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.country-code {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 57, 199, 0.12), rgba(17, 185, 204, 0.1));
  color: var(--hero-blue);
  font-size: 13px;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(35, 182, 138, 0.1);
  color: #147856;
  font-size: 12px;
  font-weight: 800;
}

.status-pill-warning {
  background: rgba(245, 195, 68, 0.16);
  color: #775c09;
}

.status-pill-info {
  background: rgba(17, 185, 204, 0.11);
  color: #08717e;
}

.country-hub-card h3 {
  font-size: 1.45rem;
}

.country-hub-card > p,
.country-facts {
  color: var(--muted);
}

.country-facts {
  margin: 8px 0 20px;
  padding-left: 20px;
  font-size: 14px;
}

.country-facts li {
  margin: 8px 0;
}

.country-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 800;
  text-decoration: none;
}

.country-hub-matrix {
  box-shadow: var(--shadow-sm);
}

.country-hub-matrix:focus-visible {
  outline: 3px solid rgba(17, 185, 204, 0.55);
  outline-offset: 4px;
}

.country-hub-matrix caption {
  padding: 12px 16px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.country-hub-matrix tbody th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  white-space: nowrap;
}

.country-hub-matrix td {
  font-size: 14px;
}

.table-swipe-hint {
  display: none;
  color: var(--muted);
  font-size: 13px;
}

.matrix-note {
  max-width: 920px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.direction-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.direction-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(35, 182, 138, 0.1);
  color: #147856;
  font-size: 12px;
  font-weight: 800;
}

.direction-label-out {
  background: rgba(6, 57, 199, 0.09);
  color: var(--hero-blue);
}

.direction-card h3 {
  font-size: 1.35rem;
}

.direction-card p {
  color: var(--muted);
}

.direction-card p:last-child {
  margin-bottom: 0;
}

.route-summary {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: rgba(17, 185, 204, 0.06);
  color: var(--muted);
}

.route-summary strong {
  flex-shrink: 0;
  color: var(--text);
}

.deposit-only-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deposit-only-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.deposit-only-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.same-method-layout,
.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.same-method-layout h2,
.research-layout h2 {
  margin-top: 8px;
  text-align: left;
}

.same-method-layout p,
.research-layout p {
  color: var(--muted);
}

.route-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-flow > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.route-flow span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: rgba(6, 57, 199, 0.09);
  color: var(--hero-blue);
  font-weight: 900;
}

.route-flow strong {
  display: block;
}

.route-flow p {
  margin: 5px 0 0;
  font-size: 14px;
}

.research-section {
  background: linear-gradient(135deg, #edf4fc, #f7f3ff);
}

.source-card {
  padding: 24px;
  border: 1px solid rgba(6, 57, 199, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.source-card ul {
  margin: 14px 0;
  padding-left: 20px;
}

.source-card li {
  margin: 9px 0;
}

.source-card a {
  font-weight: 700;
}

.source-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.country-responsible {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.55fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(6, 57, 199, 0.12);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(6, 57, 199, 0.035), rgba(17, 185, 204, 0.055));
}

.country-responsible h3 {
  margin: 3px 0 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.country-responsible p {
  padding: 0;
  font-size: 14px;
  line-height: 1.65;
}

.country-responsible a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border: 1px solid rgba(6, 57, 199, 0.18);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .deposit-only-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .countries-hub-hero .hero-inner {
    gap: 18px;
    padding: 18px 0 24px;
  }

  .countries-hub-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.85rem, 8.4vw, 2.1rem);
    line-height: 1.12;
  }

  .countries-hub-hero p {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .countries-hub-hero .trust-strip {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
  }

  .countries-hub-hero .hero-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .countries-hub-hero .decision-card {
    padding: 18px;
  }

  .countries-hub-hero .decision-card h2 {
    margin: 6px 0 10px;
    font-size: 1.2rem;
  }

  .countries-hub-hero .decision-card li {
    margin: 7px 0;
    font-size: 13px;
  }

  .country-hub-grid,
  .direction-grid,
  .deposit-only-grid,
  .country-route-visual-layout,
  .same-method-layout,
  .research-layout {
    grid-template-columns: 1fr;
  }

  .route-flow {
    grid-template-columns: 1fr;
  }

  .route-summary {
    display: block;
  }

  .route-summary strong {
    display: block;
    margin-bottom: 4px;
  }

  .editorial-bar-inner {
    align-items: flex-start;
    padding: 12px 0;
    flex-direction: column;
    gap: 4px;
  }

  .country-hub-card {
    padding: 20px;
  }

  .country-responsible {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 18px;
  }

  .country-responsible a {
    width: fit-content;
    white-space: normal;
  }

  .table-swipe-hint {
    display: block;
  }

  .country-hub-matrix table {
    min-width: 900px;
  }
}

@media (max-width: 400px) {
  .country-card-head {
    align-items: flex-start;
  }

  .status-pill {
    max-width: 150px;
    text-align: center;
  }
}
