/**
 * 足球预测结果样式
 * 用于显示预测正确/错误的标识
 */

/* 预测结果容器 */
.prediction-result {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 预测正确样式 */
.prediction-result.prediction-correct {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    border: 1px solid #4CAF50;
}

.prediction-result.prediction-correct:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* 预测错误样式 */
.prediction-result.prediction-incorrect {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #fff;
    border: 1px solid #f44336;
}

.prediction-result.prediction-incorrect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

/* 预测图标 */
.prediction-result .prediction-icon {
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* 预测文本 */
.prediction-result .prediction-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 预测备注 */
.prediction-result .prediction-note {
    font-size: 12px;
    opacity: 0.9;
    font-weight: normal;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* 预测统计样式 */
.prediction-stats {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.prediction-stats.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 30px;
}

.prediction-stats .stats-title {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    border-radius: 6px;
    border: 2px solid;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.stat-item.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.stat-item.total {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.stat-item.accuracy {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .prediction-result {
        font-size: 13px;
        padding: 6px 12px;
        gap: 6px;
    }

    .prediction-result .prediction-icon {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }

    .prediction-result .prediction-note {
        font-size: 11px;
        margin-left: 6px;
        padding-left: 6px;
    }
}

/* 在文章列表中的显示 */
.post-list .prediction-result {
    margin: 5px 0;
    font-size: 12px;
    padding: 4px 10px;
}

.post-list .prediction-result .prediction-icon {
    width: 16px;
    height: 16px;
    font-size: 12px;
}

.post-list .prediction-result .prediction-note {
    display: none;
    /* 在列表中隐藏备注 */
}

/* 在文章标题附近的显示 */
.entry-header .prediction-result {
    margin: 10px 0 15px 0;
    display: inline-block;
}

/* 在文章内容中的显示 */
.entry-content .prediction-result {
    margin: 15px 0;
    display: block;
    width: fit-content;
}

/* 暗色主题适配 */
.dark-on .prediction-result {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-on .prediction-result.prediction-correct {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
}

.dark-on .prediction-result.prediction-incorrect {
    background: linear-gradient(135deg, #D32F2F, #C62828);
}

/* 动画效果 */
@keyframes predictionPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.prediction-result.pulse {
    animation: predictionPulse 0.6s ease-in-out;
}

/* 管理后台样式 */
.post-php .prediction-result,
.post-new-php .prediction-result {
    margin: 10px 0;
    font-size: 13px;
}

/* 小工具中的显示 */
.widget .prediction-result {
    font-size: 12px;
    padding: 4px 8px;
    margin: 5px 0;
}

.widget .prediction-result .prediction-note {
    display: none;
}

/* 打印样式 */
@media print {
    .prediction-result {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .prediction-result.prediction-correct::before {
        content: "[预测正确] ";
        font-weight: bold;
    }

    .prediction-result.prediction-incorrect::before {
        content: "[预测错误] ";
        font-weight: bold;
    }

    .prediction-result .prediction-icon,
    .prediction-result .prediction-text {
        display: none;
    }
}

/* 文章列表标题与角标容器 */
.title-with-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-with-badge h2 {
    flex: 1;
    margin: 0;
}

/* 文章列表角标 - 精致小巧的设计 */
.prediction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.25s ease;
    opacity: 0.85;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* 红色角标 - 预测正确 */
.prediction-badge-red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.25);
}

.prediction-badge-red:hover {
    opacity: 1;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 8px rgba(255, 107, 107, 0.35);
}

/* 黑色角标 - 预测错误 */
.prediction-badge-black {
    background: linear-gradient(135deg, #57606f 0%, #2f3542 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prediction-badge-black:hover {
    opacity: 1;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* 响应式 - 手机端 */
@media (max-width: 768px) {
    .title-with-badge {
        gap: 8px;
    }

    .prediction-badge {
        min-width: 22px;
        height: 22px;
        font-size: 11px;
        padding: 0 5px;
    }
}

/* 暗色主题适配 */
.dark-on .prediction-badge-red {
    background: linear-gradient(135deg, #e84118 0%, #c23616 100%);
    box-shadow: 0 2px 4px rgba(232, 65, 24, 0.3);
}

.dark-on .prediction-badge-black {
    background: linear-gradient(135deg, #353b48 0%, #2f3640 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}