/* =================================================================
   Button Row Widget — icon CTA cards
   Namespace: btn-row-
   Matches prod styling: gray icons, minimal white cards
   ================================================================= */

.btn-row {
  padding: 24px 16px;
}

.btn-row-title {
  text-align: center;
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground, #333);
}

.btn-row-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Alignment --- */
.btn-row--center .btn-row-buttons {
  justify-content: center;
}

.btn-row--left .btn-row-buttons {
  justify-content: flex-start;
}

.btn-row--spread .btn-row-buttons {
  justify-content: center;
}

.btn-row--spread .btn-row-link {
  flex: 0 1 280px;
}

/* --- Card style (default — matches prod) --- */
.btn-row-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px 24px;
  min-width: 140px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-row-link:hover {
  border-color: var(--accent, #0167c2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- Icon (gray by default, accent on hover) --- */
.btn-row-icon {
  font-size: 36px;
  color: #999;
  transition: color 0.2s ease;
}

.btn-row-link:hover .btn-row-icon {
  color: #777;
}

/* --- Text stack --- */
.btn-row-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.btn-row-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
}

.btn-row-sub {
  font-size: 13px;
  font-weight: 400;
  color: #888;
}

/* --- Solid style override --- */
.btn-row--solid .btn-row-link {
  background: var(--accent, #0167c2);
  border-color: var(--accent, #0167c2);
}

.btn-row--solid .btn-row-icon,
.btn-row--solid .btn-row-label,
.btn-row--solid .btn-row-sub {
  color: #fff;
}

.btn-row--solid .btn-row-link:hover {
  background: var(--accent-hover, #014a8a);
  border-color: var(--accent-hover, #014a8a);
}

/* --- Colored style override (gradient cards, nth-child colors) --- */
.btn-row--colored .btn-row-link {
  background: #7a9aab;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-row--colored .btn-row-link::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.btn-row--colored .btn-row-icon,
.btn-row--colored .btn-row-label,
.btn-row--colored .btn-row-sub {
  color: #fff;
}

.btn-row--colored .btn-row-link:nth-child(1) { background: #7a9aab; }
.btn-row--colored .btn-row-link:nth-child(2) { background: #1e2d3d; }
.btn-row--colored .btn-row-link:nth-child(3) { background: #0d7377; }
.btn-row--colored .btn-row-link:nth-child(4) { background: #8fa3bf; }

.btn-row--colored .btn-row-link:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Outline style override --- */
.btn-row--outline .btn-row-link {
  border: 2px solid var(--accent, #0167c2);
  background: transparent;
}

/* --- Pill style override --- */
.btn-row--pill .btn-row-link {
  border-radius: 500px;
  padding: 14px 28px;
  flex-direction: row;
  gap: 8px;
}

.btn-row--pill .btn-row-icon {
  font-size: 20px;
}

.btn-row--pill .btn-row-text {
  flex-direction: row;
  gap: 6px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .btn-row-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .btn-row-link {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .btn-row-buttons {
    grid-template-columns: 1fr 1fr;
  }
}
