/* 医療専門資格関連スタイル */

/* 作成者資格情報 */
.api-creator-info {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-qualification {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 信頼性指標 */
.trust-indicator {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-indicator.trust-high {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.trust-indicator.trust-medium {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.trust-indicator.trust-standard {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* 医療専門資格バッジのカスタマイズ */
.medical-qualification-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    margin-right: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

/* サイズバリエーション */
.medical-qualification-badge.badge-medium {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 14px;
}

.medical-qualification-badge.badge-large {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 16px;
}

/* API一覧での医療専門資格表示 */
.api-item .medical-qualification-badge {
    margin-bottom: 4px;
}

/* チャット内の医療専門資格バッジ */
.chat-message .sender .medical-qualification-badge {
    margin-right: 6px;
    vertical-align: baseline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .api-creator-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .creator-qualification {
        font-size: 12px;
    }
    
    .trust-indicator {
        font-size: 10px;
    }
    
    .medical-qualification-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .medical-qualification-badge.badge-medium {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .medical-qualification-badge.badge-large {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ダークテーマ対応 */
@media (prefers-color-scheme: dark) {
    .creator-qualification {
        color: #aaa;
    }
    
    .trust-indicator.trust-high {
        background-color: #2d5a3d;
        color: #a3d5a9;
        border-color: #3d6b4d;
    }
    
    .trust-indicator.trust-medium {
        background-color: #1e4751;
        color: #7dd3fc;
        border-color: #2e5762;
    }
    
    .trust-indicator.trust-standard {
        background-color: #2c2c2c;
        color: #aaa;
        border-color: #444;
    }
}

/* ホバー効果 */
.medical-qualification-badge:hover {
    transform: scale(1.05);
    transition: transform 0.1s ease;
}

.trust-indicator:hover {
    opacity: 0.8;
    transition: opacity 0.1s ease;
}

/* API評価システムスタイル */
.trust-evaluation-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background-color: #f9fafb;
}

.trust-evaluation-summary {
    margin-bottom: 12px;
}

.trust-summary-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.trust-count {
    color: #059669;
}

.trust-weight {
    color: #0d9488;
}

.trust-qualifications {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.trust-evaluation-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.trust-evaluation-actions .btn-sm {
    font-size: 12px;
    padding: 6px 12px;
}

/* 評価詳細モーダル */
.evaluation-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
}

.evaluation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.evaluator-qualification {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.evaluation-weight {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.evaluation-timestamp {
    font-size: 11px;
    color: #9ca3af;
}

/* モーダル背景オーバーレイ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}