/* src/public/css/settings.css
 *
 * 設定ページ（/settings）の見た目。
 */

.settings-lead {
    background: #eef4ff;
    border: 1px solid #cddffb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.7;
}

.settings-lead i { color: #2a5298; margin-right: 4px; }

.settings-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px 24px;
    margin-top: 20px;
}

.settings-card-title {
    font-size: 1.1rem;
    color: #1e3c72;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card-note {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
    margin: 8px 0 14px;
}

/* --- 1行分の設定（説明 ＋ スイッチ） --- */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f5;
}

.settings-row:last-child { border-bottom: none; }

.settings-row-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.settings-row-label {
    font-size: 0.98rem;
    font-weight: bold;
    color: #334155;
}

.settings-row-note {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- ON/OFF スイッチ ---
   💡 変更：この画面だけの .settings-switch / .settings-slider をやめ、
            サイト共通のトグルボタン（style.css の .switch-ui / .slider）を
            そのまま使うようにしました。見た目の指定はここにはありません。 */

/* --- 保存データの件数 --- */
.settings-storage {
    list-style: none;
    padding: 12px 14px;
    margin: 0 0 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.settings-storage li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #475569;
    padding: 5px 0;
}

.settings-storage strong { color: #1e3c72; }

/* --- 削除ボタン --- */
.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-settings-danger {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid #dc3545;
    border-radius: 6px;
    background: #ffffff;
    color: #dc3545;
    font-size: 0.92rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn-settings-danger:hover {
    background: #dc3545;
    color: #ffffff;
}

/* --- 削除したあとのお知らせ --- */
.settings-message {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.settings-message[hidden] { display: none; }

/* === スマホ・タブレット対応 === */
@media (max-width: 768px) {
    .settings-card { padding: 16px; }

    .settings-row {
        /* 説明が長いため、スイッチを下の行に落とさず右端に置いたままにする */
        gap: 12px;
    }

    .settings-row-label { font-size: 0.92rem; }
    .settings-row-note { font-size: 0.78rem; }

    .btn-settings-danger { min-width: 100%; }
}

/* 💡 追加：表示言語の選択欄 */
.settings-select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-size: 0.95rem;
    flex-shrink: 0;
    max-width: 60%;
    cursor: pointer;
}

/* 英語表示がまだ全部そろっていないことのお断り */
.settings-partial {
    margin-top: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.settings-partial i { color: #2a5298; margin-right: 4px; }
