/* R-LLM SEO — 機能ページ共通スタイル（features.css）
   F01〜F05 のすべての機能ページで読み込まれる。
   機能固有スタイルは features/FXX/assets/css/style.css に記述すること。
   ------------------------------------------------------------------ */

/* ── Base ─────────────────────────────────────────────── */
.version-tag { font-size: 12px; font-weight: normal; color: #94a3b8; }
.ui-locked { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

/* ── Strategy Box（設定バー）────────────────────────────── */
.strategy-box {
	background: #fff;
	border: 1px solid #e2e8f0;
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 8px;
	display: grid;
	grid-template-columns: 200px 1fr auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 20px;
	row-gap: 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mode-selector-wrap { display: flex; flex-direction: column; gap: 4px; grid-column: 1; grid-row: 1; }
.mode-label { font-size: 11px; color: #64748b; font-weight: bold; }
.mode-select { width: 100%; }
.mode-description { color: #64748b; font-size: 12px; line-height: 1.5; grid-column: 2; grid-row: 1; align-self: center; }
.bulk-actions-wrap { grid-column: 3; grid-row: 1; text-align: right; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.bulk-actions-wrap .button { height: 30px; line-height: 28px; padding: 0 14px; font-size: 13px; margin: 0 !important; vertical-align: middle; }
.strategy-box .button.button-primary       { background: #eff6ff; color: #2563eb !important; border: 1px solid #bfdbfe !important; font-weight: 600; transition: background 0.15s, border-color 0.15s; }
.strategy-box .button.button-primary:hover { background: #dbeafe; border-color: #93c5fd !important; color: #1d4ed8 !important; }
.strategy-box .button.delete-analysis      { background: #fff1f2; color: #ef4444 !important; border: 1px solid #fecaca !important; font-weight: 600; transition: background 0.15s, border-color 0.15s; }
.strategy-box .button.delete-analysis:hover{ background: #fee2e2; border-color: #fca5a5 !important; color: #dc2626 !important; }
.strategy-box .ai-notice-wrap { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
.strategy-box .ai-notice-text { margin: 0; font-size: 11px; line-height: 1.6; color: #64748b; }
.strategy-box .ai-notice-text::before { content: "※"; margin: 0 3px 0 0; }
@media (max-width: 900px) {
	.strategy-box { grid-template-columns: 1fr auto; }
	.mode-description { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
	.bulk-actions-wrap { grid-column: 2; grid-row: 1; }
	.strategy-box .ai-notice-wrap { grid-row: 3; }
}

/* ── Pagination ────────────────────────────────────────── */
.custom-seo-pager { display: inline-flex !important; gap: 4px; align-items: center; }
.custom-seo-pager a,
.custom-seo-pager span {
	display: inline-block;
	padding: 4px 10px;
	min-width: 28px;
	text-align: center;
	border-radius: 4px;
	background: #fff;
	border: 1px solid #ccd0d4;
	text-decoration: none;
	color: #2c3338;
	font-size: 13px;
}
.custom-seo-pager .current { background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 600; }

/* ── Table General ─────────────────────────────────────── */
.table-card { width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); }
.wp-list-table { border: none !important; box-shadow: none !important; }
.wp-list-table thead th { background: #f8fafc; padding: 12px; font-size: 13px; font-weight: 700; color: #475569; border-top: none !important; border-left: none !important; border-right: none !important; border-bottom: 1px solid #e2e8f0 !important; }
.wp-list-table tbody td { border-top: none !important; border-left: none !important; border-right: none !important; border-bottom: 1px solid #e2e8f0 !important; }
.wp-list-table tbody tr:last-child td { border-bottom: none !important; }
.wp-list-table tbody tr { background: #fff; }
.wp-list-table tbody tr:hover td { background: #f8fafc; }
.col-id { color: #94a3b8; font-size: 11px; }
.is-pending-msg { color: #94a3b8; font-size: 13px; padding: 12px; border: 1px dashed #cbd5e1; background: #f8fafc; border-radius: 6px; text-align: center; }
.parse-error-bg { background: #fff1f2; color: #e11d48; border: 1px solid #fecaca; border-radius: 6px; text-align: left; }

/* ── Text / Badge ──────────────────────────────────────── */
.char-count-badge { display: inline-block; flex-shrink: 0; font-size: 10px; padding: 2px 8px; background: #f1f5f9; color: #64748b; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.char-count-badge.warn { background: #fee2e2; color: #ef4444; }
.char-count-badge.sm-badge { font-size: 9px; }
.title-text { font-size: 13px; line-height: 1.5; color: #1e293b; font-weight: 400; }
.type-badge { display: inline-block; padding: 2px 8px; background: #f1f5f9; color: #475569; border-radius: 999px; font-size: 11px; font-weight: 600; }
.col-id-num { font-family: ui-monospace, monospace; font-size: 12px; color: #94a3b8; }
.current-title-flex { display: flex; align-items: flex-start; gap: 12px; padding: 0; }

/* ── AI Suggestions（提案カード）──────────────────────── */
.suggestion-list { display: flex; flex-direction: column; gap: 8px; }
.ai-suggestion-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: 10px 12px; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ai-card-content { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; width: 100%; }
.ai-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-num-badge { background: #e2e8f0; color: #475569; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ai-score-label { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; }
.score-high { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.score-mid  { background: #fef9c3; color: #854d0e; border-color: #fef08a; }
.score-low  { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.ai-title-display { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.4; word-break: break-word; width: 100%; }
.ai-title-textarea { width: 100%; resize: vertical; font-size: 13px; font-weight: 400; border: 1px solid #ccc; padding: 5px; box-sizing: border-box; }
.apply-btn { background: #eff6ff !important; color: #2563eb !important; border: 1px solid #bfdbfe !important; padding: 8px 16px !important; border-radius: 6px !important; font-size: 11px !important; cursor: pointer; font-weight: 600; white-space: nowrap !important; min-width: 60px; text-align: center; flex-shrink: 0; transition: background 0.15s, border-color 0.15s; }
.apply-btn:hover { background: #dbeafe !important; border-color: #93c5fd !important; color: #1d4ed8 !important; }

/* ── Actions Column ────────────────────────────────────── */
.col-actions { text-align: center !important; vertical-align: top !important; padding-top: 12px !important; }
.action-stack { display: inline-flex; flex-direction: column; gap: 6px; width: 64px; margin: 0 auto; align-items: center; }
.action-stack .button {
	font-size: 11px !important;
	height: 26px !important;
	line-height: 24px !important;
	text-align: center;
	padding: 0 4px !important;
	min-width: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
}

/* ── Modal ─────────────────────────────────────────────── */
.hidden-modal-content { display: none; }
.modal-wrap { padding: 25px; color: #1e293b; line-height: 1.6; }
.modal-header { margin-top: 0; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.modal-header-id { font-weight: normal; color: #64748b; }
.modal-grid-top { display: flex; gap: 15px; margin-bottom: 15px; }
.modal-section { margin-bottom: 15px; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; }
.modal-label { font-weight: 800; font-size: 11px; color: #64748b; text-transform: uppercase; display: block; margin-bottom: 8px; border-bottom: 1px solid #f1f5f9; padding-bottom: 4px; }
.modal-intent { flex: 1; background: #f5f3ff; border-color: #ddd6fe; }
.modal-diag   { flex: 2; background: #f0f9ff; border-color: #bae6fd; }
.modal-table-fixed { width: 100%; border-collapse: collapse; table-layout: fixed; }
.modal-th-num { width: 60px; text-align: left; vertical-align: top; padding: 10px 0; color: #64748b; font-size: 12px; border-bottom: 1px solid #f1f5f9; }
.modal-table-fixed td { padding: 10px 0; border-bottom: solid 1px #f1f5f9; }
.modal-suggest-title { font-weight: 700; color: #0f172a; margin-bottom: 4px; font-size: 13px; }
.modal-suggest-reason { font-size: 12px; color: #475569; line-height: 1.5; }
.raw-pre { background: #1e293b !important; color: #e2e8f0 !important; padding: 15px !important; border-radius: 6px !important; font-size: 12px !important; font-family: 'Consolas', monospace !important; white-space: pre-wrap !important; word-break: break-all !important; max-height: 250px; overflow-y: auto; margin: 0 !important; }
