/* ============================================
   プロジェクト画面 - インタビュー（ヒアリング）用スタイル
   ステップインジケーター・進捗カード・アニメーション
   ============================================ */

/* ----------------------------------------
   ステップインジケーター
   ヒアリングフェーズの進行状況を横方向に表示
   ---------------------------------------- */

/* インジケーター全体のコンテナ
   右カラム中央に配置し、縦横ともに中央揃え */
.interview-phase {
    padding: 48px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* フェーズアイテムを横方向に並べるトラック */
.interview-phase__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* 各フェーズアイテム（丸アイコン + ラベル）のラッパー */
.interview-phase__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* フェーズの丸アイコン（大きめサイズ） */
.interview-phase__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #E0E0E0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 完了済み・現在のフェーズ: アクセントカラーで塗りつぶし */
.interview-phase__circle--active {
    background: var(--primary-500);
}

/* 現在のフェーズ: グロー（光）エフェクト */
.interview-phase__circle--current {
    box-shadow: 0 0 16px rgba(27, 173, 165, 0.4);
}

/* アニメーション中: スケールアップ + 強いグロー */
.interview-phase__circle--animating {
    transform: scale(1.25);
    box-shadow: 0 0 24px rgba(27, 173, 165, 0.6),
                0 0 48px rgba(27, 173, 165, 0.3);
}

/* フェーズアイコン（丸の中のテキスト、大きめ） */
.interview-phase__icon {
    font-size: 20px;
    color: white;
    line-height: 1;
}

/* フェーズラベル（丸の下のテキスト、大きめ） */
.interview-phase__label {
    font-size: 13px;
    margin-top: 8px;
    color: #9E9E9E;
    white-space: nowrap;
}

/* 現在のフェーズのラベル: プライマリカラー + 太字 */
.interview-phase__label--current {
    color: var(--primary-500);
    font-weight: bold;
}

/* フェーズ間の接続線（長めに調整） */
.interview-phase__line {
    width: 40px;
    height: 3px;
    background: #E0E0E0;
    margin-bottom: 28px;
    transition: background-color 0.5s ease;
}

/* 完了済みフェーズ間の接続線: アクセントカラー */
.interview-phase__line--completed {
    background: var(--primary-500);
}

/* リップル（波紋）エフェクト要素 */
.interview-phase__ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(27, 173, 165, 0.3);
    animation: interview-ripple 0.6s ease-out forwards;
}


/* ----------------------------------------
   進捗カード（チャット内インライン版）
   RFP生成中の進捗をチャット内に表示する
   guest-estimate-states.css の .ge-generating-card を
   チャット内に収まるサイズに調整して流用
   ---------------------------------------- */

/* 進捗カードのコンテナ */
.interview-progress-card {
    max-width: 350px;
    padding: 24px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

/* アイコンコンテナ（パルスアニメーション付き） */
.interview-progress-card__icon-container {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

/* パルスアニメーション（背景の波紋効果） */
.interview-progress-card__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--primary-100);
    animation: interview-pulse 2s ease-in-out infinite;
}

/* メインアイコン（丸い背景 + アイコン） */
.interview-progress-card__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(27, 173, 165, 0.35);
}

/* 進捗カードのタイトル */
.interview-progress-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* プログレスバーのコンテナ（背景グレーのバー） */
.interview-progress-card__bar-container {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E0E0E0;
    overflow: hidden;
    margin-bottom: 8px;
}

/* プログレスバー本体（グラデーション + シマーアニメーション） */
.interview-progress-card__bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-300) 50%, var(--primary-500) 100%);
    background-size: 200% 100%;
    transition: width 0.5s ease-out;
    animation: interview-shimmer 2s linear infinite;
}

/* パーセンテージ表示 */
.interview-progress-card__percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: 16px;
}

/* メッセージコンテナ（デフォルトメッセージ・AIメッセージの切替領域） */
.interview-progress-card__message-container {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* デフォルトメッセージ（「RFPを作成しています...」等） */
.interview-progress-card__default-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

/* AIメッセージ（Haikuが生成した進捗メッセージ） */
.interview-progress-card__ai-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(27, 173, 165, 0.1) 0%, rgba(27, 173, 165, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(27, 173, 165, 0.2);
    animation: interview-fade-in-up 0.4s ease;
}

/* AIメッセージ内のアイコン */
.interview-progress-card__ai-message i {
    color: var(--primary-500);
    font-size: 14px;
    flex-shrink: 0;
}

/* AIメッセージ内のテキスト */
.interview-progress-card__ai-message span {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-700);
}

/* エラー状態の進捗カード */
.interview-progress-card--error .interview-progress-card__title {
    color: var(--color-error);
}

/* エラー状態のプログレスバー */
.interview-progress-card--error .interview-progress-card__bar {
    background: var(--color-error);
    animation: none;
}

/* エラーメッセージ */
.interview-progress-card__error-message {
    font-size: 13px;
    color: var(--color-error);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* 再試行ボタン */
.interview-progress-card__retry-button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-500);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 再試行ボタンのホバー状態 */
.interview-progress-card__retry-button:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 173, 165, 0.3);
}


/* ----------------------------------------
   アニメーション定義
   ---------------------------------------- */

/* リップル（波紋）アニメーション
   フェーズ遷移時に丸の背後に波紋が広がる */
@keyframes interview-ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* シマー（光沢）アニメーション
   プログレスバーに光が流れるエフェクト */
@keyframes interview-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* パルスアニメーション
   進捗カードアイコンの背景が拡縮する */
@keyframes interview-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

/* フェードイン+上スライドアニメーション
   AIメッセージ表示時に使用 */
@keyframes interview-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ----------------------------------------
   ユーティリティクラス
   ---------------------------------------- */

/* 要素を非表示にする */
.hidden {
    display: none;
}


/* ----------------------------------------
   レスポンシブ対応 - モバイル
   ---------------------------------------- */
@media (max-width: 768px) {
    /* インジケーターのパディングを縮小 */
    .interview-phase {
        padding: 24px 12px;
    }

    /* 接続線を短縮 */
    .interview-phase__line {
        width: 16px;
        margin-bottom: 22px;
    }

    /* 丸アイコンを縮小（モバイル用） */
    .interview-phase__circle {
        width: 36px;
        height: 36px;
    }

    /* アイコンサイズを調整 */
    .interview-phase__icon {
        font-size: 16px;
    }

    /* ラベルサイズを調整 */
    .interview-phase__label {
        font-size: 11px;
        margin-top: 6px;
    }

    /* 進捗カードのパディングを縮小 */
    .interview-progress-card {
        max-width: 280px;
        padding: 20px 16px;
    }

    /* 進捗カードのタイトルサイズ調整 */
    .interview-progress-card__title {
        font-size: 14px;
    }

    /* アイコンコンテナのサイズ調整 */
    .interview-progress-card__icon-container {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    /* パルスのサイズ調整 */
    .interview-progress-card__pulse {
        width: 48px;
        height: 48px;
    }

    /* メインアイコンのサイズ調整 */
    .interview-progress-card__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* AIメッセージのパディング調整 */
    .interview-progress-card__ai-message {
        padding: 8px 12px;
    }

    /* AIメッセージのテキストサイズ調整 */
    .interview-progress-card__ai-message span {
        font-size: 12px;
    }
}
