/* paymentsHub.css — mobile-first responsive design */

/* ================================
   PAYMENTS HUB — Base Styles
   ================================ */

/* Section container */
.section-one {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem 1rem;
}

/* Section tab */
.section-one .section-tab {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================
   HERO INTRODUCTION
   ================================ */

.hub-intro {
  width: 100%;
  margin-bottom: 3rem;
}

.hub-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink, #434343);
  text-align: center;
  font-family: "Roboto", sans-serif;
  margin: 0;
}

/* ================================
   CHOOSE YOUR ENTRY POINT
   ================================ */

.entry-point-container {
  width: 100%;
  margin-bottom: 4rem;
}

.entry-point-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-family: "Arsenal SC", sans-serif;
  font-weight: 400;
  color: var(--ink, #434343);
}

.entry-point-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.entry-point-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #eae8e3;
  text-decoration: none;
  color: var(--ink, #434343);
  transition: all 0.2s ease;
}

.entry-point-card:hover {
  border-color: #4d555b;
  background: #eae8e3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.entry-point-label {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.entry-point-time {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  color: #757575;
  white-space: nowrap;
}

/* ================================
   HUB SECTIONS (General)
   ================================ */

.hub-section {
  width: 100%;
  margin-bottom: 4rem;
}

.hub-section-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  font-family: "Arsenal SC", sans-serif;
  font-weight: 400;
  color: var(--ink, #434343);
}

/* ================================
   STANDARDS & SPECIFICATIONS
   ================================ */

.standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;  /* Ensure full width usage */
}

.standards-card {
  padding: 1.5rem;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #eae8e3;
}

.standards-card-title {
  font-size: 1.1rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 1rem;  /* Space between title and line */
  border-bottom: 1px solid #d4d4d4;  /* Separator line */
  color: var(--ink, #434343);
}

.standards-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.standards-list li {
  margin-bottom: 0.75rem;
}

.standards-list a {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: var(--ink, #434343);
  text-decoration: none;
  transition: color 0.2s ease;
}

.standards-list a:hover {
  color: #4BA3AD;
}

.standards-note {
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  color: #757575;
  font-style: italic;
  margin: 0;
}

/* ================================
   WALLET ECOSYSTEM
   ================================ */

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.wallet-column {
  padding: 0;
}

.wallet-column-title {
  font-size: 1.1rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink, #434343);
}

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

.wallet-list li {
  margin-bottom: 0.75rem;
}

.wallet-list a {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: var(--ink, #434343);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wallet-list a:hover {
  color: #4BA3AD;
}

.wallet-coming-soon {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  color: #757575;
  font-style: italic;
  margin: 0;
}

/* ================================
   REGULATORY LANDSCAPE
   ================================ */

.regulatory-search-container {
  width: 100%;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #eae8e3;
  padding: 1.5rem;
}

.search-header {
  margin-bottom: 1.5rem;
}

.search-title {
  font-size: 1.1rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  margin: 0;
  color: var(--ink, #434343);
}

.search-interface {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-input,
.search-filter {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: var(--ink, #434343);
  background: #eae8e3;
  cursor: not-allowed;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-results-preview {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.search-preview-label {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  color: #757575;
}

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

.search-preview-list li {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  color: #757575;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.search-preview-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #9ca3af;
}

.search-preview-list li:last-child {
  margin-bottom: 0;
}

/* ================================
   ARTICLES & DEEP DIVES
   ================================ */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #eae8e3;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink, #434343);
  transition: all 0.2s ease;
}

.article-card:hover {
  border-color: #4d555b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-card-placeholder {
  opacity: 0.6;
  cursor: default;
}

.article-card-placeholder:hover {
  border-color: #d4d4d4;
  transform: none;
  box-shadow: none;
}

.article-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 3rem;
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.2rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--ink, #434343);
}

.article-description {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #757575;
  margin: 0 0 1rem 0;
}

.article-link {
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ================================
   TABLET BREAKPOINT (768px+)
   ================================ */

@media (min-width: 768px) {
  .section-one {
    padding: 3rem 1.25rem;
  }

  .hub-description {
    font-size: 1.2rem;
  }

  .entry-point-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .standards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;  /* Full width */
  }

  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .search-input-group {
    flex-direction: row;
    gap: 1rem;
  }

  .search-input {
    flex: 1;
  }

  .search-filter {
    width: auto;
    min-width: 150px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ================================
   DESKTOP BREAKPOINT (1024px+)
   ================================ */

@media (min-width: 1024px) {
  .section-one {
    padding: 4rem 1.5rem;
  }

  .section-one .section-tab {
    margin-bottom: 2rem;
  }

  .hub-intro {
    margin-bottom: 4rem;
  }

  .hub-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .entry-point-container {
    margin-bottom: 5rem;
  }

  .entry-point-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  .entry-point-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .entry-point-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
  }

  .entry-point-label {
    font-size: 1.05rem;
  }

  .hub-section {
    margin-bottom: 5rem;
  }

  .hub-section-title {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
  }

  .regulatory-search-container {
    max-width: 800px;
    padding: 2rem;
  }
}

/* ================================
   LARGE DESKTOP (1280px+)
   ================================ */

@media (min-width: 1280px) {
  .standards-grid,
  .wallet-grid,
  .articles-grid {
    max-width: 1200px;
  }
}

/* ================================
   AGGRESSIVE OUTLINE REMOVAL
   ================================ */

/* Remove ALL outlines from fieldsets and their parents */
fieldset,
fieldset:focus,
fieldset:target,
fieldset:focus-visible,
fieldset.contact-form-group,
fieldset.payment-flow-group,
.contact-form-group,
.payment-flow-group,
.hub-section,
div[id="standards"],
div[id="wallets"],
div[id="regulatory"],
div[id="articles"] {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove from all interactive elements */
*:focus,
*:target {
  outline: none !important;
}

/* Keep accessibility for keyboard users on links/buttons only */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4BA3AD;
  outline-offset: 2px;
}

/* Ensure fieldsets use full width */
.contact-form-group.payment-flow-group {
  width: 100%;
}

/* Force fieldsets to use full available width */
.payment-flow-group {
  width: 100%;
  max-width: 100%;
}

.payment-flow-group .standards-grid {
  width: 100%;
  max-width: 100%;
}

/* Add colored top borders */
.standards-card:nth-child(1) {
  border-top: 4px solid #9eb5bd;  /* ISO */
}

.standards-card:nth-child(2) {
  border-top: 4px solid #f0c27e;  /* EMVCo  */
}

.standards-card:nth-child(3) {
  border-top: 4px solid #3f545e;  /* Payment Networks */
}