/* ===================================================================
   TransitFiles - Premium Glassmorphic Informational & Legal Pages
   =================================================================== */

main.info-container, .info-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem) !important;
  box-sizing: border-box !important;
  position: relative;
  z-index: 1;
}

main.info-container.wide-layout, .info-container.wide-layout {
  max-width: 1240px !important;
}

.breadcrumb-nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.info-hero {
  width: 100%;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.info-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* Security Metrics Pill Bar */
.security-pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.security-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.security-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

/* 2-Column Responsive Security Grid on Desktop */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Architecture Flow Box */
.arch-diagram-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-luxe);
  position: relative;
  overflow: hidden;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.arch-node {
  flex: 1;
  min-width: 200px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.arch-node-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.arch-node-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.arch-connector svg {
  width: 24px;
  height: 24px;
}

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

  .arch-flow {
    flex-direction: column;
  }
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-nav a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  color: var(--border-subtle);
}

/* Hero Section */
.info-hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.info-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.info-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.info-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.last-updated {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-glass-pill);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

/* Content Grid & Sections */
.info-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
}

.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-luxe);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.6;
}

.info-section:hover {
  border-color: var(--border-active);
}

.info-section h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}

.info-section p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.15rem;
  font-size: clamp(0.95rem, 2vw, 1.02rem);
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0;
  padding-left: 0.5rem;
}

.info-section ul li {
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  padding-left: 1.65rem;
  font-size: clamp(0.92rem, 2vw, 1rem);
}

.info-section ul li strong {
  color: var(--text-primary);
}

.info-section ul li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Back Nav Button */
.btn-nav {
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  background: var(--bg-glass-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-active);
  transform: translateX(-2px);
}

/* Step Cards */
.step-card {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  background: var(--bg-input);
  padding: clamp(1.25rem, 3vw, 1.65rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

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

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-body h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.step-body p {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 0.98rem);
  line-height: 1.6;
  margin: 0;
}

/* Comparison Table */
.table-container {
  overflow-x: auto;
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  min-width: 550px;
}

.comparison-table th, .comparison-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  color: var(--text-primary);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.02em;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-good {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* FAQ Cards */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.35rem, 3.5vw, 1.85rem);
  box-shadow: var(--shadow-luxe);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: var(--transition);
}

.faq-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.faq-card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.28rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.faq-card h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: clamp(0.92rem, 2vw, 1rem);
  margin: 0;
  padding-left: 2rem;
}

/* Call to Action Box at Bottom of Info Pages */
.info-cta {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-luxe);
  backdrop-filter: blur(24px);
}

.info-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.info-cta p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 25px var(--accent-glow);
  transition: var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

/* ===================================================================
   Day / Light Theme Refinements for Info Pages
   =================================================================== */

[data-theme="light"] .info-section {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .step-card {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .faq-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .table-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .comparison-table th {
  background: rgba(241, 245, 249, 0.95);
  color: #0f172a;
}

[data-theme="light"] .comparison-table tr:hover td {
  background: rgba(241, 245, 249, 0.5);
}

[data-theme="light"] .btn-nav {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

[data-theme="light"] .btn-nav:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .info-tag {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: #4338ca;
}

[data-theme="light"] .info-cta {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ===================================================================
   Mobile Media Queries
   =================================================================== */

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
    justify-content: space-between;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .info-hero {
    text-align: center;
  }

  .faq-card p {
    padding-left: 0;
    margin-top: 0.5rem;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }

  .footer-links {
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .info-container {
    padding: 1.5rem 1rem;
  }

  .step-card {
    flex-direction: column;
    gap: 0.85rem;
  }

  .logo-badge {
    display: none;
  }

  .btn-nav {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
}
