/* 誹謗中傷チェッカーのAI分析結果用スタイル */

/* 削除依頼方法のスタイル改善 */
.deletion-instruction {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.full-width-instruction {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* リンクを含む長いテキストの表示改善 */
.no-break {
    white-space: nowrap;
    display: inline-block;
}

/* 警告メッセージ表示用スタイル */
.ai-warning {
    padding: 8px 12px;
    margin: 10px 0;
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    color: #856404;
    font-size: 0.9em;
    border-radius: 3px;
}

/* テキスト途切れ表示用スタイル */
.ai-text-content {
    position: relative;
}

.ai-text-content.truncated::after {
    content: "...";
    display: block;
    margin-top: 5px;
    font-style: italic;
    color: #666;
}

/* AI検索設定オプション */
.cse-content-ai-options {
    margin: 15px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.cse-content-ai-search-depth {
    margin-top: 10px;
}

.cse-content-ai-search-depth label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.cse-content-ai-search-depth select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    margin-bottom: 5px;
}

.cse-content-ai-search-depth .description {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* 生成AIの注意書き用スタイル */
.ai-disclaimer {
    margin: 10px 0 20px;
    padding: 10px 15px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.ai-disclaimer p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.ai-disclaimer strong {
    font-weight: 600;
}

/* 分析結果セクション */
.ai-analysis-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.ai-analysis-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1em;
}

/* テキスト内容表示 */
.ai-text-content {
    white-space: pre-line;
    line-height: 1.5;
    margin: 10px 0;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* テキスト内容内のURL表示を改善 */
.ai-text-content a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.ai-text-content a:hover {
    color: #004499;
    text-decoration: underline;
}

/* 安全状態表示 */
.ai-analysis-safe {
    padding: 15px;
    background-color: #e8f8f5;
    border-left: 4px solid #2ecc71;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.15);
    position: relative;
    overflow: hidden;
}

.ai-analysis-safe::before {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    color: rgba(46, 204, 113, 0.2);
    font-weight: bold;
}

.ai-analysis-safe strong {
    color: #27ae60;
    font-weight: 600;
}

.ai-safe-advice {
    margin-top: 10px;
    padding: 8px 10px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 4px;
    font-style: italic;
    border-left: 2px solid #27ae60;
}

/* 深刻度表示 */
.severity-低, .severity-low {
    background-color: #e8f8f5;
    color: #27ae60;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.severity-中, .severity-medium {
    background-color: #fef9e7;
    color: #f39c12;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.severity-高, .severity-high {
    background-color: #fdedec;
    color: #c0392b;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

/* 発見内容リスト */
.ai-findings-list {
    list-style: none;
    padding: 0;
    border: none !important;
    padding: 0 !important;

}

.ai-findings-list li {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ai-findings-list li::before {
    display: none !important;
}

.ai-findings-list li p {
    margin: 0 0 10px 0;
}

/* 情報源リンク */
.info-source {
    display: inline-block;
    font-size: 0.9em;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

/* フッターと注意書き */
.ai-analysis-footer {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.ai-analysis-disclaimer {
    font-size: 0.85em;
    color: #7f8c8d;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* エラーメッセージ */
.ai-error-message {
    padding: 15px;
    background-color: #fdedec;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ai-error-message strong {
    color: #c0392b;
}

/* 警告メッセージ */
.ai-warning-message {
    padding: 15px;
    background-color: #fef9e7;
    border-left: 4px solid #f1c40f;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ai-warning-message strong {
    color: #f39c12;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .ai-analysis-section {
        padding: 12px;
    }
    
    .ai-findings-list li {
        padding: 8px;
    }
}