/**
 * css/style.css
 * Clean modern styles for Name Stylish Generate plugin
 */

.nsg-container {
  max-width: 820px;
  margin: 18px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #222;
  box-sizing: border-box;
}

.nsg-card {
  background: #ffffff;
  border: 1px solid rgba(30,30,30,0.06);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(22, 24, 28, 0.04);
}

.nsg-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.nsg-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.nsg-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(30,30,30,0.08);
  font-size: 15px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  background: #fbfbfb;
}

.nsg-input:focus {
  border-color: rgba(50,115,220,0.9);
  box-shadow: 0 6px 18px rgba(50,115,220,0.06);
  background: #fff;
}

.nsg-input-invalid {
  animation: nsg-shake 0.55s;
  border-color: #e74c3c !important;
}

@keyframes nsg-shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.nsg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(180deg,#2b6ef8,#1f58d5);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31,88,213,0.12);
  transition: transform 0.08s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.nsg-btn:active { transform: translateY(1px); }
.nsg-btn.nsg-copy-all,
.nsg-btn.nsg-clear {
  background: #f3f5f7;
  color: #222;
  box-shadow: none;
}

.nsg-btn.nsg-copy-all.nsg-copied,
.nsg-btn.nsg-copy.nsg-copied {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(50,115,220,0.08);
}

/* Controls row */
.nsg-controls {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Results */
.nsg-results-wrap {
  margin-top: 16px;
  min-height: 60px;
}

.nsg-empty {
  color: #777;
  margin-top: 8px;
  font-size: 14px;
}

/* List style */
.nsg-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.nsg-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(30,30,30,0.05);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.nsg-result:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(35,60,100,0.06);
}

.nsg-name {
  font-weight: 700;
  font-size: 14px;
  color: #0b2546;
  word-break: break-word;
}

/* Copy button in each item */
.nsg-result-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nsg-copy {
  background: transparent;
  border: 1px solid rgba(30,30,30,0.06);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.nsg-copy i {
  font-size: 14px;
}

.nsg-copy.nsg-copied {
  background: rgba(50,115,220,0.09);
  border-color: rgba(50,115,220,0.22);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .nsg-card { padding: 14px; }
  .nsg-results { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
