/* ============================================================
   FOREX SWAP RATES PAGE — Dedicated Styles
   swap-rates.css
   ============================================================ */

/* ---- Section Label Tag ---- */
.section-label-tag {
  font-family: var(--font-secondary, 'Work Sans', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #FF4521;
  margin-bottom: 12px;
}

.section-body-text {
  font-size: 16px;
  color: rgba(44,57,62,0.8);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ---- Hero Section ---- */
.swap-hero {
  background: linear-gradient(135deg, #1a2830 0%, #222c30 50%, #1a2830 100%);
  /* LAYOUT SYSTEM: padding-top = var(--hero-padding-top) from layout-system.css */
  /* TRANSITION: was 150px (magic number) — now token-driven */
  padding: var(--hero-padding-top, 175px) 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.swap-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,69,33,0.09) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero Visual */
.swap-hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-rate-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px 28px;
  backdrop-filter: blur(10px);
  position: absolute;
  min-width: 240px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.swap-rate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.swap-rate-card:first-child {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  min-width: 280px;
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,69,33,0.35);
}
.swap-rate-card:first-child:hover {
  transform: translate(-50%, -54%);
}
.swap-card-sm {
  min-width: 200px;
  padding: 14px 20px;
}
.swap-card-sm:nth-child(2) {
  top: 15%;
  left: 5%;
  z-index: 2;
}
.swap-card-right {
  top: 15%;
  right: 5%;
  z-index: 2;
}

.swap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.swap-pair-label {
  font-family: 'Catamaran', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.swap-card-sm .swap-pair-label { font-size: 15px; }
.swap-live-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FF4521;
  display: flex;
  align-items: center;
  gap: 4px;
}
.swap-live-badge i {
  font-size: 7px;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.swap-card-rates {
  display: flex;
  align-items: center;
  gap: 16px;
}
.swap-rate-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.swap-rate-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.swap-rate-value {
  font-family: 'Catamaran', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.swap-card-sm .swap-rate-value { font-size: 18px; }
.swap-rate-value.negative { color: #ff6b6b; }
.swap-rate-value.positive { color: #4ecb71; }
.swap-rate-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

.swap-bg-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 200px;
  opacity: 0.6;
}

/* ---- Intro Section ---- */
.swap-intro-section {
  padding: var(--space-xxl) 0;
  background: #fff;
}
.swap-intro-section .section-header {
  font-size: 36px;
  line-height: 1.25;
  color: #2c393e;
  margin-bottom: 24px;
}

/* Calculator Card */
.swap-calculator-card {
  background: linear-gradient(135deg, #2c393e 0%, #222c30 100%);
  border-radius: 20px;
  padding: 36px 32px;
  color: #fff;
}
.calc-card-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc-card-title i {
  color: #FF4521;
  font-size: 20px;
}
.calc-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  line-height: 1.6;
}
.calc-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.calc-feature-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.calc-feature-list li i {
  color: #FF4521;
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---- Key Points Section ---- */
.swap-keypoints-section {
  padding: var(--space-xxl) 0;
  background: #f7f9fa;
}
.swap-keypoints-section .section-header {
  font-size: 36px;
  line-height: 1.25;
  color: #2c393e;
  margin-bottom: 0;
}


/* ---- Swap Rates Table Section ---- */
.swap-table-section {
  padding: var(--space-xxl) 0;
  background: #222c30;
}
.swap-table-section .section-header {
  color: #fff;
  font-size: 36px;
}
.swap-table-note {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}

/* Tab Navigation */
.swap-tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 12px 12px 0 0;
  padding: 6px 6px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.swap-tab-btn {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: none;
  padding: 10px 24px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.swap-tab-btn:hover { color: rgba(255,255,255,0.85); }
.swap-tab-btn.active {
  background: #2c393e;
  color: #FF4521;
}

/* Tab Content */
.swap-tab-content {
  display: none;
}
.swap-tab-content.active {
  display: block;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0 0 12px 12px;
  background: #2c393e;
}
.swap-rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.swap-rates-table thead tr {
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.swap-rates-table th {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}
.swap-rates-table th.rate-col {
  text-align: center;
}
.swap-rates-table th.long-col { color: #4ecb71; }
.swap-rates-table th.short-col { color: #ff6b6b; }
.swap-rates-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s ease;
}
.swap-rates-table tbody tr:last-child { border-bottom: none; }
.swap-rates-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}
.swap-rates-table td {
  padding: 14px 20px;
  color: rgba(255,255,255,0.8);
  vertical-align: middle;
}
.swap-rates-table td.symbol-cell {
  font-family: 'Catamaran', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.swap-rates-table td.rate-col {
  text-align: center;
  font-family: 'Catamaran', sans-serif;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.swap-rates-table td.negative { color: #ff6b6b; }
.swap-rates-table td.positive { color: #4ecb71; }

.swap-disclaimer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 20px;
  line-height: 1.6;
}

/* ---- FAQ Section ---- */
.swap-faq-section {
  padding: var(--space-xxl) 0;
  background: #fff;
}
.swap-faq-section .section-header {
  font-size: 36px;
  line-height: 1.25;
  color: #2c393e;
}

.swap-faq-item {
  border-bottom: 1px solid rgba(44,57,62,0.1);
  margin-bottom: 0;
}
.swap-faq-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}
.swap-faq-toggle span {
  font-family: 'Catamaran', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #2c393e;
  line-height: 1.3;
}
.swap-faq-toggle i {
  font-size: 13px;
  color: #FF4521;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.swap-faq-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.swap-faq-toggle:hover span { color: #FF4521; }

.swap-faq-body {
  display: none;
  padding: 0 0 24px;
}
.swap-faq-body.open { display: block; }
.swap-faq-body p {
  font-size: 15px;
  color: rgba(44,57,62,0.75);
  line-height: 1.75;
  margin-bottom: 14px;
}
.swap-faq-body p:last-child { margin-bottom: 0; }

/* Formula Box */
.swap-formula-box {
  background: #f7f9fa;
  border-left: 3px solid #FF4521;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.formula-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FF4521;
  margin-bottom: 6px !important;
}
.formula-text {
  font-family: 'Catamaran', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #2c393e;
  margin: 0 !important;
}

/* Steps List */
.swap-steps-list {
  padding-left: 20px;
  margin: 12px 0 0;
}
.swap-steps-list li {
  font-size: 15px;
  color: rgba(44,57,62,0.75);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ---- CTA Section ---- */
.swap-cta-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, #2c393e 0%, #222c30 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.cta-title .text-accent { color: #FF4521; }
.cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
}
.swap-cta-section .btn { margin: 4px; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .swap-hero { padding: 90px 0 50px; }
  .swap-intro-section,
  .swap-keypoints-section,
  .swap-table-section,
  .swap-faq-section,
  .swap-cta-section { padding: var(--space-xl) 0; }
  .swap-calculator-card { margin-top: 40px; }
  .cta-title { font-size: 28px; }
  .swap-faq-section .section-header,
  .swap-table-section .section-header,
  .swap-keypoints-section .section-header,
  .swap-intro-section .section-header { font-size: 28px; }
}

@media (max-width: 767px) {
  .swap-hero { padding: 80px 0 40px; }
  .swap-intro-section,
  .swap-keypoints-section,
  .swap-table-section,
  .swap-faq-section,
  .swap-cta-section { padding: var(--space-xl) 0; }
  .swap-tab-btn { padding: 10px 16px; font-size: 12px; }
  .swap-rates-table th,
  .swap-rates-table td { padding: 12px 14px; }
  .cta-title { font-size: 24px; }
  .swap-faq-toggle span { font-size: 16px; }
}
