/**
 * SEEDS Core Values Diagram - UX Builder
 * Category: A Elements
 */

.a-seeds-diagram {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px 10px;
  background: transparent;
}

/* Desktop Grid Layout */
.a-seeds-grid {
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

/* Columns */
.a-seeds-col {
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.a-seeds-col-left {
  justify-content: space-between;
  gap: 50px;
  padding-top: 45px;
}

.a-seeds-col-center {
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.a-seeds-col-right {
  justify-content: space-between;
  gap: 50px;
  padding-top: 45px;
}

/* Hexagon Outer Wrapper (creates glowing border with clip-path) */
.a-seeds-node-wrap {
  position: relative;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(59, 130, 246, 0.3) 100%);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 24px 100%, 0 50%);
  -webkit-clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 24px 100%, 0 50%);
  padding: 1.5px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.35s ease;
  width: 100%;
  box-sizing: border-box;
}

.a-seeds-node-wrap:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.5)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
}

/* Hexagon Inner Content */
.a-seeds-node-inner {
  background: var(--a-node-bg, #080c14);
  clip-path: polygon(23px 0, calc(100% - 23px) 0, 100% 50%, calc(100% - 23px) 100%, 23px 100%, 0 50%);
  -webkit-clip-path: polygon(23px 0, calc(100% - 23px) 0, 100% 50%, calc(100% - 23px) 100%, 23px 100%, 0 50%);
  padding: 24px 34px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Node Title */
.a-seeds-node-title {
  font-family: inherit;
  font-size: var(--a-node-title-size, 16px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--a-node-title-color, #ffffff);
  margin: 0 0 8px 0;
  word-wrap: break-word;
}

/* Node Description */
.a-seeds-node-desc {
  font-family: inherit;
  font-size: var(--a-node-desc-size, 12.5px);
  line-height: 1.45;
  color: var(--a-node-desc-color, #cbd5e1);
  margin: 0;
  word-wrap: break-word;
}

/* Center Hub Container */
.a-seeds-center-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

/* Center Octagon Wrapper */
.a-seeds-center-wrap {
  position: relative;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(59, 130, 246, 0.5) 100%);
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px), 0 28px);
  -webkit-clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px), 0 28px);
  padding: 2px;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.35)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
  width: 250px;
  height: 155px;
  transition: transform 0.35s ease, filter 0.35s ease;
  z-index: 2;
}

.a-seeds-center-wrap:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.6)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.9));
}

/* Center Octagon Inner */
.a-seeds-center-inner {
  background: var(--a-center-bg, #080c14);
  clip-path: polygon(27px 0, calc(100% - 27px) 0, 100% 27px, 100% calc(100% - 27px), calc(100% - 27px) 100%, 27px 100%, 0 calc(100% - 27px), 0 27px);
  -webkit-clip-path: polygon(27px 0, calc(100% - 27px) 0, 100% 27px, 100% calc(100% - 27px), calc(100% - 27px) 100%, 27px 100%, 0 calc(100% - 27px), 0 27px);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center Title "SEEDS" */
.a-seeds-center-title {
  font-family: inherit;
  font-size: var(--a-center-size, 40px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--a-center-color, #4e82f7);
  margin: 0;
  user-select: none;
  filter: drop-shadow(0 0 14px rgba(78, 130, 247, 0.5));
  text-align: center;
}

/* Connector Pins & Dots */
.a-pin {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.a-pin-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--a-dot-color, #3b82f6);
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 10px var(--a-dot-color, #3b82f6),
    0 0 4px #60a5fa;
  flex-shrink: 0;
}

.a-pin-line {
  display: block;
  height: 2px;
  background: var(--a-line-color, rgba(0, 0, 0, 0.6));
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

/* Pin Positions */
.a-pin-top {
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
}

.a-pin-top .a-pin-line {
  width: 2px;
  height: 16px;
}

.a-pin-top-left {
  top: 135px;
  left: -25px;
  transform: rotate(-25deg);
}

.a-pin-top-left .a-pin-line {
  width: 24px;
}

.a-pin-bottom-left {
  bottom: 160px;
  left: -25px;
  transform: rotate(25deg);
}

.a-pin-bottom-left .a-pin-line {
  width: 24px;
}

.a-pin-top-right {
  top: 135px;
  right: -25px;
  transform: rotate(25deg);
  flex-direction: row-reverse;
}

.a-pin-top-right .a-pin-line {
  width: 24px;
}

.a-pin-bottom-right {
  bottom: 160px;
  right: -25px;
  transform: rotate(-25deg);
  flex-direction: row-reverse;
}

.a-pin-bottom-right .a-pin-line {
  width: 24px;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 880px) {
  .a-seeds-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .a-seeds-col {
    width: 100%;
    max-width: 440px;
    padding-top: 0 !important;
    gap: 18px !important;
  }

  .a-seeds-col-center {
    order: -1;
    /* Puts SEEDS and SHARE at top on mobile */
    gap: 20px;
  }

  .a-pin-line {
    display: none;
    /* Hide connector lines on mobile vertical stack */
  }

  .a-pin {
    display: none;
  }

  .a-seeds-center-wrap {
    width: 210px;
    height: 125px;
  }

  .a-seeds-center-title {
    font-size: 32px;
  }

  .a-seeds-node-inner {
    padding: 20px 24px;
  }
}