/**
 * WonderHost Core — shortcode frontend styles.
 * Loaded by plugin so cards render correctly even if theme CSS is cached/outdated.
 */

/* Feature cards (homepage platform grid) */
.ia-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.ia-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1.85rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.ia-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.ia-feature-card:hover .ia-feature-icon-wrap {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.28);
}

.ia-feature-stretch-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
}

.ia-feature-stretch-link:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
}

.ia-feature-icon-wrap {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.24), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #22d3ee;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.ia-feature-icon-wrap .ia-icon-svg {
  width: 28px;
  height: 28px;
}

.ia-icon-svg {
  display: block;
  flex-shrink: 0;
  color: #22d3ee;
}

.ia-icon-box {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #22d3ee;
  flex-shrink: 0;
}

.ia-icon-box--lg {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.ia-learn-card:hover .ia-icon-box {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.ia-feature-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.ia-feature-desc {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #94a3b8 !important;
}

.ia-feature-cta {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #22d3ee !important;
}

.ia-home-features {
  background: linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

.ia-home-features .ia-section-head {
  margin-bottom: 2.75rem;
}

.ia-home-features .section-title {
  margin-bottom: 0.85rem;
  color: #ffffff !important;
}

.ia-home-features .section-subtitle {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #94a3b8 !important;
}

@media (max-width: 992px) {
  .ia-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 560px) {
  .ia-features-grid {
    grid-template-columns: 1fr;
  }

  .ia-feature-card {
    min-height: 0;
    padding: 1.5rem;
  }

  .ia-feature-title {
    font-size: 1.0625rem;
  }

  .ia-feature-desc {
    font-size: 0.9rem;
  }
}
