/* feedback.css - ツールページからのフィードバック投稿機能 */

/* フローティングアクションボタン */
.feedback-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1500;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.feedback-fab:hover {
  background-color: #db2777;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(236, 72, 153, 0.35);
}

/* モーダルオーバーレイ */
.feedback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(4px);
}

/* モーダル本体 */
.feedback-modal {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  position: relative;
  border: 1px solid var(--border-color);
  max-height: 90vh;
  overflow-y: auto;
}

.feedback-modal h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

/* 閉じるボタン */
.feedback-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 0.25rem;
  line-height: 1;
  cursor: pointer;
}

.feedback-modal-close:hover {
  color: var(--text-main);
}

/* 投稿元ツールのバッジ */
.feedback-source-badge {
  display: inline-block;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* フォーム要素のスコープ指定 */
.feedback-modal select,
.feedback-modal textarea,
.feedback-modal input[type="email"] {
  width: 100%;
  box-sizing: border-box;
}

/* 送信完了メッセージ */
.feedback-success {
  text-align: center;
  padding: 1.5rem 0;
}

.feedback-success .success-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.feedback-success h4 {
  margin: 0 0 0.5rem;
}

.feedback-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* hidden ユーティリティ */
.feedback-modal .hidden {
  display: none !important;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .feedback-fab .fab-label {
    display: none;
  }

  .feedback-fab {
    padding: 0.85rem;
    border-radius: 50%;
    width: 3.25rem;
    height: 3.25rem;
    justify-content: center;
  }

  .feedback-modal {
    padding: 1.5rem;
  }
}
