/* suggestion-display.css - 修正案表示のスタイル */

/* 修正案コンテナ */
.suggestion-container {
  margin: 20px auto;
  border: 2px solid #e3f2fd;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
  max-width: 600px;
}

/* ヘッダー */
.suggestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
}

.suggestion-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.suggestion-header .beta-badge {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.close-suggestion-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-suggestion-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ローディング状態 */
.suggestion-loading {
  padding: 40px 20px;
  text-align: center;
}

.suggestion-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e3f2fd;
  border-top-color: #2196F3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.suggestion-loading p {
  color: #666;
  margin: 0;
  font-size: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* コンテンツエリア */
.suggestion-content {
  padding: 20px;
}

.suggestion-text {
  background: #fff;
  border: 1px solid #e3f2fd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
  color: #333;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* アクションボタン */
.suggestion-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.suggestion-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-btn i {
  font-size: 14px;
}

/* アイコンのみボタン */
.suggestion-btn-icon {
  background: #e3f2fd;
  color: #1976D2;
  padding: 10px 12px;
}

.suggestion-btn-icon:hover {
  background: #bbdefb;
  transform: translateY(-1px);
}

/* 再生成ボタンのアイコン回転アニメーション */
.suggestion-btn-icon .fa-sync-alt {
  transition: transform 0.3s ease;
}

.suggestion-btn-icon:hover .fa-sync-alt {
  transform: rotate(180deg);
}

/* テキスト付きボタン */
.suggestion-btn-with-text {
  background: #e3f2fd;
  color: #1976D2;
}

.suggestion-btn-with-text:hover {
  background: #bbdefb;
  transform: translateY(-1px);
}

/* 変更箇所ハイライト */
.suggestion-highlight-modified,
.suggestion-highlight-added {
  color: #dc3545;
  font-weight: 700;
}

/* 修正不要メッセージ */
.suggestion-no-revision {
  padding: 24px 20px;
  text-align: center;
}

.suggestion-no-issue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #28a745;
  font-size: 15px;
  font-weight: 500;
}

.suggestion-no-issue::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 18px;
}

/* 変更箇所セクション */
.suggestion-changes {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.suggestion-changes h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-changes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.suggestion-change-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 13px;
  line-height: 1.5;
}

.suggestion-change-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.change-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.change-type-modified {
  background: #fff3cd;
  color: #856404;
}

.change-type-added {
  background: #d4edda;
  color: #155724;
}

.change-type-removed {
  background: #f8d7da;
  color: #721c24;
}

.change-original {
  color: #6c757d;
  text-decoration: line-through;
}

.change-arrow {
  color: #adb5bd;
  flex-shrink: 0;
}

.change-revised {
  color: #dc3545;
  font-weight: 600;
}

.change-content {
  color: #333;
}

.change-removed {
  text-decoration: line-through;
  color: #dc3545;
}

/* エラー状態 */
.suggestion-error {
  padding: 20px;
  text-align: center;
}

.error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dc3545;
  font-size: 14px;
}

.error-message i {
  font-size: 18px;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .suggestion-container {
    margin: 16px 0;
    border-radius: 8px;
  }

  .suggestion-header {
    padding: 12px 16px;
  }

  .suggestion-header h3 {
    font-size: 14px;
  }

  .suggestion-content {
    padding: 16px;
  }

  .suggestion-text {
    padding: 12px;
    font-size: 14px;
  }

  .suggestion-actions {
    flex-direction: column;
  }

  .suggestion-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
}
