/**
 * PERMA Model Element - UX Builder
 * Category: A Elements
 */

.a-perma-model {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
}

.a-perma-track {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  background: var(--a-perma-bg, transparent);
}

/* Individual Column */
.a-perma-col {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 16px 20px 16px;
  box-sizing: border-box;
  border-right: 1px solid var(--a-perma-divider, rgba(255, 255, 255, 0.08));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease;
}

.a-perma-col:last-child {
  border-right: none;
}

/* Hover on column */
.a-perma-col:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Giant Letter */
.a-perma-letter-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  margin-bottom: 18px;
}

.a-perma-letter {
  font-family: inherit;
  font-size: var(--a-letter-size, 58px);
  font-weight: 800;
  line-height: 1;
  color: var(--a-col-color);
  letter-spacing: -0.02em;
  user-select: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.35s ease;
}

.a-perma-col:hover .a-perma-letter {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px var(--a-col-color));
}

/* Connecting Chevron Arrow */
.a-perma-arrow-wrap {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a-perma-arrow {
  width: 18px;
  height: 18px;
  stroke: var(--a-arrow-color, #38bdf8);
  opacity: 0.8;
  display: block;
}

/* Dotted Circle Icon Container */
.a-perma-icon-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px dotted var(--a-col-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-sizing: border-box;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.a-perma-col:hover .a-perma-icon-ring {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 20px -2px var(--a-col-color);
}

.a-perma-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
}

.a-perma-icon-inner svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
  fill: none;
  display: block;
}

.a-perma-icon-inner img {
  max-width: 36px;
  max-height: 36px;
  display: block;
  object-fit: contain;
}

/* Title */
.a-perma-title {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--a-col-color);
  margin: 0 0 12px 0;
  letter-spacing: 0.01em;
  word-wrap: break-word;
}

/* Description */
.a-perma-desc {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--a-desc-color, #94a3b8);
  margin: 0;
  word-wrap: break-word;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 900px) {
  .a-perma-letter {
    font-size: 44px;
  }
  .a-perma-icon-ring {
    width: 62px;
    height: 62px;
  }
  .a-perma-icon-inner {
    width: 32px;
    height: 32px;
  }
  .a-perma-title {
    font-size: 14px;
  }
  .a-perma-desc {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .a-perma-track {
    flex-direction: column;
    gap: 20px;
  }

  .a-perma-col {
    border-right: none;
    border-bottom: 1px solid var(--a-perma-divider, rgba(255, 255, 255, 0.08));
    padding: 16px 16px 24px 16px;
  }

  .a-perma-col:last-child {
    border-bottom: none;
  }

  .a-perma-arrow-wrap {
    top: auto;
    bottom: -18px;
    right: 50%;
    transform: translateX(50%) rotate(90deg);
  }
}
