/* Claude Apps — palette L&F (skill 24)
   #6E7072 grigio · #2DA247 verde · #2A2C2E dark · #F4F5F6 sfondo */

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: #F4F5F6;
  color: #2A2C2E;
  font-weight: 500;
  border: 1px solid rgba(110, 112, 114, 0.15);
  white-space: nowrap;
}

.stat-badge.warn {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
}

.stat-badge.danger {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #FCA5A5;
}

.app-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(42, 44, 46, 0.04), 0 1px 2px rgba(42, 44, 46, 0.02);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  box-shadow: 0 10px 25px rgba(42, 44, 46, 0.08), 0 4px 10px rgba(42, 44, 46, 0.04);
  transform: translateY(-2px);
}

.app-card .thumb {
  aspect-ratio: 4 / 3;
  background: #F4F5F6;
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid rgba(110, 112, 114, 0.1);
  position: relative;
}

.app-card .thumb .kind-pill {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(42, 44, 46, 0.85);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-card .body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.app-card .title {
  font-weight: 600;
  color: #2A2C2E;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card .meta {
  font-size: 0.75rem;
  color: #6E7072;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-card .actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.app-card .actions a,
.app-card .actions button {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8125rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}

.app-card .actions a {
  background: #2DA247;
  color: white;
  text-decoration: none;
}

.app-card .actions a:hover {
  background: #258a3c;
}

.app-card .actions .btn-copy,
.app-card .actions .btn-delete {
  background: #F4F5F6;
  color: #2A2C2E;
}

.app-card .actions .btn-copy:hover {
  background: #E5E7EA;
}

.app-card .actions .btn-delete:hover {
  background: #FEE2E2;
  color: #991B1B;
}

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
