/* McpAndSkillsAssistant MCP & Skills 助手欢迎页组件样式 */

html {
    --mcp-skills-assistant-button-bg-color: rgba(255, 255, 255, 0.8);
    --mcp-skills-assistant-button-bg-hover-color: rgba(0, 0, 0, var(--bg-opacity-hover));
    --mcp-skills-assistant-button-shadow-color: rgba(0, 0, 0, 0.05);
    --mcp-skills-assistant-button-content-color: rgba(0, 0, 0, 0.7);
    --mcp-skills-assistant-button-title-color: rgba(0, 0, 0, 1);
    --mcp-skills-assistant-faq-text: rgba(0, 0, 0, 1);
    --mcp-skills-assistant-faq-bg: rgba(0, 0, 0, 0.05);
    --mcp-skills-assistant-faq-bg-hover: rgba(0, 0, 0, 0.1);
    --mcp-skills-assistant-faq-bg-active: rgba(0, 0, 0, 0.15);
}

html.dark {
    --mcp-skills-assistant-button-bg-color: rgba(255, 255, 255, 0.05);
    --mcp-skills-assistant-button-bg-hover-color: rgba(255, 255, 255, 0.1);
    --mcp-skills-assistant-button-shadow-color: rgba(0, 0, 0, 0.3);
    --mcp-skills-assistant-button-content-color: rgba(255, 255, 255, 0.7);
    --mcp-skills-assistant-button-title-color: rgba(255, 255, 255, 1);
    --mcp-skills-assistant-faq-text: rgba(255, 255, 255, 1);
    --mcp-skills-assistant-faq-bg: rgba(255, 255, 255, 0.05);
    --mcp-skills-assistant-faq-bg-hover: rgba(255, 255, 255, 0.1);
    --mcp-skills-assistant-faq-bg-active: rgba(255, 255, 255, 0.15);
}

.mcp-skills-assistant {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mcp-skills-assistant > *:not(:last-child) {
    margin-bottom: 10px;
}

/* MCP/Skills 设置按钮：280px × 60px，横向布局 */
.mcp-skills-assistant__button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 280px;
    height: 60px;
    padding: 0 10px;
    background-color: var(--mcp-skills-assistant-button-bg-color);
    border-radius: var(--radius-normal);
    box-shadow: 0 1px 0 0 var(--mcp-skills-assistant-button-shadow-color);
    cursor: pointer;
    box-sizing: border-box;
}

.mcp-skills-assistant__button:hover {
    background-color: var(--mcp-skills-assistant-button-bg-hover-color);
}

/* 禁用状态 */
.mcp-skills-assistant__button--disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.mcp-skills-assistant__button--disabled:hover {
    background-color: var(--mcp-skills-assistant-button-bg-color);
}

/* 左侧图标容器：32×32 */
.mcp-skills-assistant__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcp-skills-assistant__icon .svg-icon {
    width: 32px;
    height: 32px;
    color: var(--mcp-skills-assistant-button-content-color);
}

/* 中间内容区：上下布局的文本 */
.mcp-skills-assistant__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    margin-left: 10px;
}

/* 标题文本 */
.mcp-skills-assistant__title {
    font-size: var(--uosai-font-size-sm2);
    font-weight: 400;
    font-style: normal;
    color: var(--mcp-skills-assistant-button-title-color);
    line-height: var(--uosai-line-height-extra-tight);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 描述文本 */
.mcp-skills-assistant__desc {
    font-size: var(--uosai-font-size-xs);
    font-weight: 400;
    font-style: normal;
    color: var(--mcp-skills-assistant-button-content-color);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧箭头图标容器 */
.mcp-skills-assistant__arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcp-skills-assistant__arrow .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--mcp-skills-assistant-button-content-color);
    transform: rotate(-90deg);
}

/* FAQ 推荐列表容器 */
.mcp-skills-assistant__faq {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 100px;
}

.mcp-skills-assistant__faq-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 0 20px;
}

/* FAQ 卡片 */
.mcp-skills-assistant__faq-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: var(--mcp-skills-assistant-faq-bg);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mcp-skills-assistant__faq-card:hover {
    background-color: var(--mcp-skills-assistant-faq-bg-hover);
}

.mcp-skills-assistant__faq-card:active {
    background-color: var(--mcp-skills-assistant-faq-bg-active);
}

.mcp-skills-assistant__faq-text {
    font-size: var(--uosai-font-size-xs);
    font-weight: 400;
    color: var(--mcp-skills-assistant-faq-text);
    white-space: normal;
    word-break: break-word;
    text-align: center;
}
