/* ============================================================
   SLIDE 6: Architecture — Full Page Visual
   ============================================================ */

/* Full page layout */
.arch-full {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--slide-padding-x);
  box-sizing: border-box;
}

.arch-title {
  text-align: center;
  margin-bottom: 40px;
}

/* ── TOP ROW: iScala → PIM ← Azure ── */
.arch-top-row {
  display: grid;
  grid-template-columns: 150px 1fr 220px 1fr 150px;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}

/* System boxes */
.arch-system {
  text-align: center;
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}

.arch-system__icon {
  color: var(--blue);
  margin-bottom: 8px;
}

.arch-system__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.arch-system__sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
}

/* PIM — centre, larger */
.arch-system--pim {
  border-color: rgba(255,184,28,0.3);
  background: rgba(255,184,28,0.04);
  padding: 24px 20px;
}

.arch-system--pim .arch-system__icon {
  color: var(--yellow);
}

.arch-system--pim .arch-system__name {
  font-size: 1.3rem;
}

/* PIM managed items */
.arch-pim-manages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
}

.arch-pim-manages span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,184,28,0.6);
  background: rgba(255,184,28,0.06);
  padding: 2px 8px;
  border-radius: 100px;
}

/* Destination boxes */
.arch-system--out {
  border-color: rgba(63,185,80,0.2);
  background: rgba(63,185,80,0.025);
}

.arch-system--out .arch-system__icon {
  color: var(--green);
}

.arch-out-receives {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
  line-height: 1.4;
}

/* ── HORIZONTAL ARROWS ── */
.arch-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.arch-link__labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.arch-link__labels span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
}

/* Arrow line */
.arch-link__line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(23,147,207,0.08), rgba(23,147,207,0.3));
}

.arch-link__line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border-left: 7px solid rgba(23,147,207,0.35);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Reverse arrow (Azure → PIM, flows right to left) */
.arch-link__line--reverse {
  background: linear-gradient(to left, rgba(23,147,207,0.08), rgba(23,147,207,0.3));
}

.arch-link__line--reverse::after {
  right: auto;
  left: -1px;
  border-left: none;
  border-right: 7px solid rgba(23,147,207,0.35);
}

/* Pulse */
.arch-link__pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: pulseRight 2.5s ease-in-out infinite;
}

.arch-link__pulse--reverse {
  animation: pulseLeft 2.5s ease-in-out infinite;
}

@keyframes pulseRight {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@keyframes pulseLeft {
  0% { left: calc(100% - 8px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}

/* ── VERTICAL CONNECTOR ── */
.arch-v-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}

.arch-v-connector__line {
  position: relative;
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(23,147,207,0.1), rgba(23,147,207,0.3));
}

.arch-v-connector__line::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: -4px;
  border-top: 6px solid rgba(23,147,207,0.35);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.arch-v-connector__pulse {
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: pulseDown 2.5s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes pulseDown {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

.arch-v-connector__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(23,147,207,0.45);
  padding: 4px 0;
}

.arch-v-connector__split {
  width: 320px;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, rgba(23,147,207,0.15) 20%, rgba(23,147,207,0.15) 80%, transparent 100%);
  position: relative;
}

.arch-v-connector__split::before,
.arch-v-connector__split::after {
  content: '';
  position: absolute;
  bottom: -16px;
  width: 2px;
  height: 16px;
  background: rgba(23,147,207,0.15);
}

.arch-v-connector__split::before { left: 20%; }
.arch-v-connector__split::after { right: 20%; }

/* ── BOTTOM ROW: Destinations ── */
.arch-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 480px;
  margin: 24px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
  .arch-top-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .arch-bottom-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
