/**
 * FourData Blocks v2 — Shared Components
 * Buttons, badges, cards, checklists, links, and section headers.
 * Every rule is scoped to .fd-blocks-root.
 */

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

/* Primary (cyan bg) ───────── */
.fd-blocks-root .fd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--fd-cyan);
  color: #fff;
  font-family: var(--fd-font);
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid var(--fd-cyan);
  border-radius: var(--fd-radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  line-height: 1;
  text-decoration: none;
}

.fd-blocks-root .fd-btn-primary::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h12M8 2l5 5-5 5'/%3E%3C/svg%3E");
  display: inline-flex;
  transition: transform 0.2s ease;
}

.fd-blocks-root .fd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 183, 237, 0.3);
}

.fd-blocks-root .fd-btn-primary:hover::after {
  transform: translateX(3px);
}

/* Primary dark variant (for light backgrounds) ───────── */
.fd-blocks-root .fd-btn-primary--dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--fd-navy);
  color: #fff;
  font-family: var(--fd-font);
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid var(--fd-navy);
  border-radius: var(--fd-radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  line-height: 1;
  text-decoration: none;
}

.fd-blocks-root .fd-btn-primary--dark::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h12M8 2l5 5-5 5'/%3E%3C/svg%3E");
  display: inline-flex;
  transition: transform 0.2s ease;
}

.fd-blocks-root .fd-btn-primary--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 43, 73, 0.25);
}

.fd-blocks-root .fd-btn-primary--dark:hover::after {
  transform: translateX(3px);
}

/* Outline (transparent bg, white text) ───────── */
.fd-blocks-root .fd-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: #fff;
  font-family: var(--fd-font);
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--fd-radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
  text-decoration: none;
}

.fd-blocks-root .fd-btn-outline::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h12M8 2l5 5-5 5'/%3E%3C/svg%3E");
  display: inline-flex;
  transition: transform 0.2s ease;
}

.fd-blocks-root .fd-btn-outline:hover {
  border-color: var(--fd-cyan);
  color: var(--fd-cyan);
  transform: translateY(-2px);
}

.fd-blocks-root .fd-btn-outline:hover::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%233BB7ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h12M8 2l5 5-5 5'/%3E%3C/svg%3E");
  transform: translateX(3px);
}


/* ═══════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════ */

/* Section header badge ───────── */
.fd-blocks-root .fd-sh-badge {
  display: inline-block;
  background: rgba(59, 183, 237, 0.1);
  color: var(--fd-cyan);
  font-family: var(--fd-font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Network technology tags ───────── */
.fd-blocks-root .fd-net-tag {
  display: inline-block;
  background: var(--fd-bg-blue);
  color: var(--fd-cyan-dark);
  font-family: var(--fd-font);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--fd-radius-sm);
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════
   CHECKLIST
   ═══════════════════════════════════════════ */

.fd-blocks-root .fd-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.fd-blocks-root .fd-checklist li {
  position: relative;
  padding-left: 1.75rem;
  font-family: var(--fd-font);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--fd-text);
}

.fd-blocks-root .fd-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1.125rem;
  height: 1.125rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='9' fill='%233BB7ED' opacity='0.12'/%3E%3Cpath d='M5.5 9.5l2 2 5-5' stroke='%233BB7ED' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* White variant for dark sections */
.fd-blocks-root .fd-section--dark .fd-checklist li {
  color: rgba(255, 255, 255, 0.85);
}

.fd-blocks-root .fd-section--dark .fd-checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='9' fill='%233BB7ED' opacity='0.2'/%3E%3Cpath d='M5.5 9.5l2 2 5-5' stroke='%233BB7ED' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* ═══════════════════════════════════════════
   CARDS — BASE
   ═══════════════════════════════════════════ */

.fd-blocks-root .fd-card {
  position: relative;
  background: #fff;
  border-radius: var(--fd-radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--fd-border);
  box-shadow: var(--fd-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Top gradient bar */
.fd-blocks-root .fd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fd-cyan) 0%, var(--fd-cyan-dark) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fd-blocks-root .fd-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fd-shadow-lg);
}

.fd-blocks-root .fd-card:hover::before {
  opacity: 1;
}

/* Card icon circle */
.fd-blocks-root .fd-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fd-cyan) 0%, var(--fd-cyan-dark) 100%);
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.fd-blocks-root .fd-card-icon svg {
  width: 1.375rem;
  height: 1.375rem;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}


/* ═══════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════ */

.fd-blocks-root .fd-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fd-cyan);
  font-family: var(--fd-font);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.fd-blocks-root .fd-link-arrow::after {
  content: '\2192'; /* right arrow */
  transition: transform 0.2s ease;
}

.fd-blocks-root .fd-link-arrow:hover {
  gap: 0.75rem;
}

.fd-blocks-root .fd-link-arrow:hover::after {
  transform: translateX(2px);
}


/* ═══════════════════════════════════════════
   SECTION HEADER (.fd-sh)
   ═══════════════════════════════════════════ */

.fd-blocks-root .fd-sh {
  text-align: center;
  margin-bottom: 3.5rem;
}

.fd-blocks-root .fd-sh h2 {
  position: relative;
  display: inline-block;
  font-family: var(--fd-font);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--fd-text-dark);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.fd-blocks-root .fd-sh h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 3px;
  background: var(--fd-cyan);
  border-radius: 2px;
}

.fd-blocks-root .fd-sh h2 span {
  color: var(--fd-cyan);
}

.fd-blocks-root .fd-sh p {
  max-width: 47.5rem;
  margin: 0 auto;
  font-family: var(--fd-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fd-text);
}

/* Dark section variants ───────── */
.fd-blocks-root .fd-section--dark .fd-sh h2 {
  color: #fff;
}

.fd-blocks-root .fd-section--dark .fd-sh p {
  color: rgba(255, 255, 255, 0.7);
}
