/**
 * Fan Portal 姉妹サイト管理 - フロントエンドスタイル
 *
 * @package Fan_Portal
 */

/* フロントエンド用スタイル */
.fp-sister-sites-wrapper {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 10px 0;
    margin-top: -10px;
}

.fp-sister-sites-nav {
    line-height: 1.8;
}

.fp-sister-site-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fp-sister-site-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

.fp-sister-site-separator {
    user-select: none;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .fp-sister-site-link {
        white-space: nowrap;
    }
}

/* 管理画面用スタイル */
.fp-sister-sites-admin {
    margin-top: 20px;
}

.fp-sister-sites-admin .wp-list-table {
    margin-bottom: 30px;
}

.fp-drag-handle {
    cursor: move;
    text-align: center;
    opacity: 0.5;
    font-size: 18px;
    user-select: none;
}

.fp-drag-handle:hover {
    opacity: 1;
}

.ui-sortable-helper {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fp-sister-sites-admin input[type="text"],
.fp-sister-sites-admin input[type="url"] {
    width: 100%;
}

.fp-add-site-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
}

.fp-add-site-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
}

.fp-add-site-form .form-table {
    margin-bottom: 20px;
}

.fp-add-site-form .form-table th {
    width: 100px;
    padding: 10px 10px 10px 0;
}

.fp-save-notice {
    margin: 20px 0;
    padding: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    color: #155724;
}

.fp-save-notice.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    border-left-color: #dc3545;
    color: #721c24;
}

/* 削除ボタンのスタイル */
.fp-delete-site {
    color: #dc3545;
}

.fp-delete-site:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* ローディング状態 */
.fp-sister-sites-admin.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 空状態のメッセージ */
.fp-empty-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}