/* ST手游同步插件 - 后台管理样式 */

/* 统计卡片样式 */
.game-st2-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.game-st2-stat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.game-st2-stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #4c9ded;
    margin-bottom: 10px;
}

.game-st2-stat-card .stat-label {
    font-size: 14px;
    color: #666;
}

/* 卡片样式 */
.game-st2-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.game-st2-card h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.game-st2-card h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* 操作按钮样式 */
.game-st2-actions .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.game-st2-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 进度条样式 */
.progress-container {
    margin-top: 15px;
    background-color: #f1f1f1;
    border-radius: 4px;
    padding: 5px;
    height: 30px;
    display: flex;
    align-items: center;
}

.progress-bar {
    height: 20px;
    background-color: #4c9ded;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
    color: #666;
}

/* 日志样式 */
.sync-log {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    height: 200px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    border-radius: 4px;
}

/* 游戏类型列表 */
.game-type-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.game-type-item {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-type-name {
    font-weight: 500;
}

.game-type-count {
    color: #666;
    font-size: 14px;
}

/* 使用说明样式 */
.game-st2-guide ol {
    padding-left: 20px;
}

.game-st2-guide li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 表单样式优化 */
.form-table {
    width: 100%;
}

.form-table th {
    width: 200px;
    vertical-align: top;
}

.form-table td {
    padding: 15px 10px 15px 0;
    vertical-align: top;
}

.form-table input[type="text"],
.form-table input[type="number"],
.form-table select {
    min-width: 300px;
}

/* 响应式设计 */
@media screen and (max-width: 782px) {
    .game-st2-stats {
        grid-template-columns: 1fr;
    }
    
    .game-st2-actions .action-buttons {
        flex-direction: column;
    }
    
    .game-st2-actions .button {
        width: 100%;
        justify-content: center;
    }
    
    .form-table th {
        width: 100%;
        display: block;
        padding: 0 0 5px 0;
    }
    
    .form-table td {
        display: block;
        padding: 0 0 15px 0;
    }
    
    .form-table input[type="text"],
    .form-table input[type="number"],
    .form-table select {
        width: 100%;
        min-width: 100%;
    }
    
    .game-type-list {
        grid-template-columns: 1fr;
    }
}

/* 操作按钮样式 */
.button-danger {
    background-color: #dc3232;
    border-color: #dc3232;
    color: white;
}

.button-danger:hover {
    background-color: #c62828;
    border-color: #c62828;
    color: white;
}

/* 文本居中 */
.text-center {
    text-align: center;
    padding: 20px;
}

/* 批量操作按钮 */
.bulk-actions {
    margin-bottom: 15px;
}

/* 游戏列表表格 */
.wp-list-table .column-actions {
    width: 120px;
}

.wp-list-table .column-actions .button {
    margin-bottom: 5px;
    width: 100%;
}

.wp-list-table .column-status {
    width: 80px;
}

/* 分页样式 */
.tablenav-pages {
    margin-top: 10px;
}

/* 搜索框样式 */
.search-box {
    margin-bottom: 15px;
}

/* 游戏卡片特定样式 */
.game-st2-sync-status,
.game-st2-game-types,
.game-st2-guide {
    margin-bottom: 20px;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4c9ded;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* 状态标签 */
.post-status-publish {
    background-color: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.post-status-draft {
    background-color: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.post-status-pending {
    background-color: #2196f3;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}