/* Technology badges with brand icons */

.tech-tag,
.tag.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px !important;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tech-tag img,
.tag.tech-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.tech-tag--ready img { filter: none; }

/* Tech stack grid (homepage / footer) */
.tech-stack {
  padding: 80px 0;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tech-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(132,204,22,0.08), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(14,165,233,0.08), transparent 50%);
}

.tech-stack .container { position: relative; z-index: 1; }

.tech-stack .section-header h2 { color: #fff; }
.tech-stack .section-header p { color: rgba(255,255,255,0.65); }
.tech-stack .section-label { color: var(--lime-light); }

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.tech-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: all 0.25s ease;
  text-align: center;
}

.tech-stack-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(132,204,22,0.35);
  transform: translateY(-3px);
}

.tech-stack-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tech-stack-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  line-height: 1.2;
}

/* Platform badge on toolbox/plugin cards */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 6px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-badge img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.platform-badge--qgis {
  background: rgba(88,150,50,0.15);
  color: #3d6b1e;
  border: 1px solid rgba(88,150,50,0.25);
}

.platform-badge--arcgis {
  background: rgba(0,122,194,0.12);
  color: #007ac2;
  border: 1px solid rgba(0,122,194,0.25);
}

.platform-badge--arcgis-pro {
  background: rgba(0,122,194,0.15);
  color: #005a8c;
  border: 1px solid rgba(0,122,194,0.3);
}

.platform-badge--field {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.platform-badge--postgis {
  background: rgba(51, 102, 153, 0.12);
  color: #336699;
  border: 1px solid rgba(51, 102, 153, 0.25);
}

.platform-badge--web {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.platform-badge--templates {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.plugin-card .plugin-header .version {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.plugin-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.toolbox-card .plugin-icon,
.plugin-card .plugin-icon {
  background: #fff !important;
  border: 1px solid rgba(15,23,42,0.08);
}

.svc-detail .tech-tag {
  background: #f1f5f9;
}

.svc-detail--it .tech-tag  { border: 1px solid rgba(14,165,233,0.12); }
.svc-detail--gis .tech-tag { border: 1px solid rgba(132,204,22,0.15); }

.project-tech .tech-tag {
  font-size: 0.72rem;
  padding: 4px 10px 4px 6px !important;
  background: var(--light);
}

.project-tech .tech-tag img {
  width: 16px;
  height: 16px;
}

.footer-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tech-stack-grid--light .tech-stack-item {
  background: var(--light);
  border-color: rgba(15,23,42,0.08);
}

.tech-stack-grid--light .tech-stack-item:hover {
  background: #fff;
  border-color: rgba(132,204,22,0.35);
  box-shadow: var(--shadow);
}

.tech-stack-grid--light .tech-stack-item span {
  color: var(--slate);
}

.footer-tech-grid .tech-stack-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.footer-tech-grid .tech-stack-item {
  flex-direction: row;
  padding: 8px 12px;
  gap: 8px;
  width: auto;
}

.footer-tech-grid .tech-stack-item img {
  width: 22px;
  height: 22px;
}

.footer-tech-grid .tech-stack-item span {
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .tech-stack-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tech-stack-item { padding: 14px 8px; }
  .tech-stack-item img { width: 32px; height: 32px; }
}
