/**
 * 计分器插件通用记分牌模式样式表
 *
 * @package    Scoreboard
 * @subpackage Scoreboard/public/css
 * @author     Scoreboard Developer
 */

/* 通用记分牌预览样式 */
.scoreboard-generic-preview {
    background: #222;
    color: white;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.scoreboard-generic-preview .team {
    flex: 1;
    max-width: 40%;
    padding: 15px;
    border-radius: 6px;
}

.scoreboard-generic-preview .team1 {
    background: rgba(52, 152, 219, 0.5);
}

.scoreboard-generic-preview .team2 {
    background: rgba(231, 76, 60, 0.5);
}

.scoreboard-generic-preview .score-divider {
    font-size: 32px;
    font-weight: bold;
    margin: 0 20px;
}

.scoreboard-generic-preview .team-name {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scoreboard-generic-preview .team-score {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

/* 通用记分牌比赛界面样式 */
.scoreboard-generic-game .scoreboard-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background: #222;
}

.scoreboard-team-section {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 40%;
}

.team1 {
    background: #3498db;
}

.team2 {
    background: #e74c3c;
}

.scoreboard-divider {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scoreboard-versus {
    font-size: 24px;
    font-weight: bold;
    color: #ddd;
    margin: 10px 0;
}

.team-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-score {
    font-size: 72px;
    font-weight: bold;
    margin: 15px 0;
    line-height: 1;
}

.score-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.score-button {
    margin: 5px;
    padding: 8px 15px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.score-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 底部调整区域 */
.scoreboard-footer {
    background: #333;
    padding: 15px;
    border-radius: 0 0 8px 8px;
}

.score-adjustment {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.adjustment-team {
    margin: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    min-width: 250px;
}

.team-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.adjustment-controls {
    display: flex;
    align-items: center;
}

.adjustment-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}

.adjustment-controls input {
    width: 60px;
    padding: 5px;
    text-align: center;
    background: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

/* 设置界面特有样式 */
.team-color-input label {
    display: block;
    margin-bottom: 5px;
}

.team-color-input input {
    width: 100%;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.button-setup {
    flex: 1 1 100px;
    margin: 0 10px 15px;
}

.button-setup label {
    display: block;
    margin-bottom: 5px;
}

.button-input {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.button-prefix {
    padding: 8px;
    background: #ddd;
    color: #333;
    font-weight: bold;
}

.button-input input {
    flex: 1;
    border: none;
    padding: 8px;
    width: 100%;
}

.hint {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-top: 10px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .scoreboard-generic-game .scoreboard-main {
        flex-direction: column;
    }
    
    .scoreboard-team-section {
        margin-bottom: 20px;
        max-width: 100%;
       
    }
    
    .scoreboard-divider {
        margin: 10px 0;
    }
    
    .score-adjustment {
        flex-direction: column;
    }
    
    .adjustment-team {
        width: 100%;
        margin: 5px 0;
    }
}
