/* APKLand Features Block — Frontend Styles */

.apkland-features-block {
  display: grid;
  gap: 80px 24px;
  padding: 20px 0 32px;
  margin-top: 70px;
  justify-items: center;   /* centers cards horizontally */
}

.apkland-features--cols-1 { grid-template-columns: 1fr; }
.apkland-features--cols-2 { grid-template-columns: repeat(2, 1fr); }
.apkland-features--cols-3 { grid-template-columns: repeat(3, 1fr); }
.apkland-features--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.apkland-feature-card {
  position: relative;
  border: 2px solid var(--card-border, var(--primary, #e87c23));
  border-radius: 20px;
  padding: 0 28px 36px;
  min-height: 320px;
  width: 100%;
  text-align: center;
  transition: box-shadow 250ms ease, transform 200ms ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.apkland-feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Icon circle — absolute, centered on top edge */
.apkland-feature-icon {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 3px solid var(--card-border, var(--primary, #e87c23));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /* size set inline via PHP */
  background: var(--circle-bg, #ffffff);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 2;
  /* Mask the card border line behind circle */
  outline: 8px solid var(--circle-bg, #ffffff);
}

/* Icon SVG */
.apkland-feature-icon .apkland-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.apkland-feature-icon .apkland-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--card-border, var(--primary, #e87c23));
  color: var(--card-border, var(--primary, #e87c23));
}

/* Space at top of card to make room for circle */
.apkland-feature-spacer {
  height: 60px;
  flex-shrink: 0;
}

/* Title */
.apkland-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
  width: 100%;
}

/* Description */
.apkland-feature-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
  width: 100%;
}

/* ── Per-style overrides ── */
.style-classic .apkland-feature-card  { background: #ffffff; }
.style-classic .apkland-feature-title { color: #1a1a1a; }
.style-classic .apkland-feature-desc  { color: #555; }

.style-modern .apkland-feature-card   { background: #12122a; }
.style-modern .apkland-feature-title  { color: #fff; }
.style-modern .apkland-feature-desc   { color: rgba(255,255,255,0.65); }

.style-glass .apkland-feature-card    { background: rgba(255,255,255,0.07); backdrop-filter: blur(12px); }
.style-glass .apkland-feature-title   { color: #fff; }
.style-glass .apkland-feature-desc    { color: rgba(255,255,255,0.6); }

.style-glass-pure .apkland-feature-card  { background: rgba(255,255,255,0.07); backdrop-filter: blur(14px); }
.style-glass-pure .apkland-feature-title { color: #fff; }
.style-glass-pure .apkland-feature-desc  { color: rgba(255,255,255,0.6); }

.style-neu .apkland-feature-card  {
  background: #1e2235;
  border: none;
  box-shadow: 8px 8px 18px rgba(0,0,0,0.4), -5px -5px 14px rgba(255,255,255,0.04);
}
.style-neu .apkland-feature-title { color: #fff; }
.style-neu .apkland-feature-desc  { color: rgba(255,255,255,0.55); }
.style-neu .apkland-feature-icon  {
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.4), inset -2px -2px 6px rgba(255,255,255,0.04);
  outline-color: #1e2235;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .apkland-features--cols-3,
  .apkland-features--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .apkland-features-block { gap: 72px 14px; margin-top: 55px; }
  .apkland-features--cols-2,
  .apkland-features--cols-3,
  .apkland-features--cols-4 { grid-template-columns: 1fr; }
  .apkland-feature-card { padding: 0 16px 28px; }
}
