/* TrueWishes AI Wish Generator – wish.css */
#tw-wish-wrap {
  max-width: 620px;
  margin: 0 auto;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.tw-wish-header {
  text-align: center;
  padding: 32px 20px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px 20px 0 0;
  color: #fff;
}
.tw-wish-icon { font-size: 44px; margin-bottom: 8px; }
.tw-wish-header h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.tw-wish-header p  { font-size: 14px; opacity: 0.85; margin: 0; }

.tw-wish-card {
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 8px 40px rgba(102,126,234,0.18);
}

.tw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:500px){ .tw-row { grid-template-columns: 1fr; } }

.tw-field { margin-bottom: 18px; }
.tw-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}
.tw-opt { font-weight: 400; text-transform: none; color: #aaa; letter-spacing: 0; }

.tw-field select,
.tw-field input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0d9ff;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: #fdfcff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.tw-field select:focus,
.tw-field input:focus {
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(118,75,162,0.10);
}

/* Tone buttons */
.tw-tone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media(max-width:400px){ .tw-tone-grid { grid-template-columns: 1fr 1fr; } }

.tw-tone {
  padding: 10px 6px;
  border: 1.5px solid #e0d9ff;
  border-radius: 10px;
  background: #fdfcff;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.tw-tone:hover { border-color: #b39ddb; background: #f3eeff; }
.tw-tone.active {
  border-color: #764ba2;
  background: linear-gradient(135deg, #f3eeff, #ede7ff);
  color: #4a148c;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(118,75,162,0.15);
}

/* Language buttons */
.tw-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tw-lang {
  padding: 9px 6px;
  border: 1.5px solid #e0d9ff;
  border-radius: 10px;
  background: #fdfcff;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.tw-lang:hover { border-color: #b39ddb; background: #f3eeff; }
.tw-lang.active {
  border-color: #764ba2;
  background: linear-gradient(135deg, #f3eeff, #ede7ff);
  color: #4a148c;
  font-weight: 700;
}

/* Generate button */
.tw-gen-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.2s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.tw-gen-btn:hover  { opacity: 0.9; }
.tw-gen-btn:active { transform: scale(0.98); }
.tw-gen-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Spinner */
.tw-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tw-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes tw-spin { to { transform: rotate(360deg); } }

/* Error */
.tw-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff0f0;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  color: #c62828;
  font-size: 13px;
}

/* Result */
.tw-result {
  margin-top: 20px;
  background: linear-gradient(135deg, #f3eeff 0%, #ede7ff 100%);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #ce93d8;
}
.tw-result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b1fa2;
  margin-bottom: 12px;
}
.tw-result-text {
  font-size: 15px;
  line-height: 1.9;
  color: #1a0030;
  white-space: pre-wrap;
  font-style: italic;
}
.tw-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.tw-action-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 8px;
  border: 1.5px solid #b39ddb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: #6a1b9a;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-align: center;
}
.tw-action-btn:hover { background: #ede7ff; border-color: #9c27b0; }
.tw-action-btn.tw-wa { border-color: #4caf50; color: #1b5e20; }
.tw-action-btn.tw-wa:hover { background: #f1f8e9; }
.tw-action-btn.tw-regen { border-color: #90a4ae; color: #37474f; }
.tw-action-btn.tw-regen:hover { background: #eceff1; }

/* Footer */
.tw-footer {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 14px;
}
.tw-footer a { color: #764ba2; text-decoration: none; }
.tw-footer a:hover { text-decoration: underline; }
