/**
 * TablePress Custom CSS - SoccerTips Clone
 * 像素级还原 soccertips.net 表格样式
 * 
 * 使用方法：
 * 1. WordPress 后台 > TablePress > 插件选项 > 自定义 CSS
 * 2. 复制下方所有 CSS 代码粘贴进去
 * 3. 保存更改
 * 
 * 或者将本文件内容复制到主题的 assets/css/tablepress-custom.css
 */

/* ==========================================================================
   TablePress Base Styles - 基础表格样式
   ========================================================================== */

.tablepress {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background: #121a25;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
}

.tablepress thead th {
    background: #1f2937;
    color: #ffd259;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    border: 1px solid #2d3748;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.tablepress tbody td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #2d3748;
    color: #ffffff;
    vertical-align: middle;
    transition: background 0.2s ease;
}

.tablepress tbody tr {
    transition: background 0.2s ease;
}

.tablepress tbody tr:nth-child(odd) {
    background: #1a2332;
}

.tablepress tbody tr:nth-child(even) {
    background: #121a25;
}

.tablepress tbody tr:hover {
    background: rgba(255, 210, 89, 0.05);
}

.tablepress tbody tr.first {
    border-top: 2px solid #ffd259;
}

/* ==========================================================================
   TablePress Row Styles - 行样式
   ========================================================================== */

/* Series Number Column */
.tablepress td.series_num,
.tablepress td.series_no {
    font-weight: 700;
    color: #ffd259;
    font-size: 16px;
}

.time_in_series_num {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* Date & Time Display */
.date_time {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date_time .date {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
}

.date_time .time {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* League Display */
.league_match {
    margin-top: 5px;
}

.league_match .league {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tablepress td .league {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
}

/* Match Display */
.match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.match .home,
.match .away {
    font-weight: 500;
    color: #ffffff;
    font-size: 13px;
}

.match .vs {
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
}

/* Tips Display */
.tips {
    font-weight: 600;
    color: #ffd259;
    font-size: 13px;
}

.odds_in_tips {
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
}

/* Odds Display */
.tablepress td .odds {
    font-weight: 600;
    color: #ffffff;
}

/* Stake Display */
.stake {
    background: rgba(255, 210, 89, 0.15);
    color: #ffd259;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
}

/* ==========================================================================
   Status Badge Styles - 状态标签样式
   ========================================================================== */

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Win - Green */
.status.win,
.positive {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

/* Lose - Red */
.status.lose,
.negative {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

/* Draw - Yellow */
.status.draw,
.neutral {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* Wait - Gray */
.status.wait {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

/* Live - Red with Animation */
.status.live {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.6;
    }
}

/* ==========================================================================
   Match Result Styles - 比分样式
   ========================================================================== */

.match_result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 700;
    font-size: 15px;
}

.match_result .home_result {
    color: #ffffff;
}

.match_result .result_sep {
    color: #6b7280;
}

.match_result .away_result {
    color: #ffffff;
}

/* ==========================================================================
   Profit Styles - 利润样式
   ========================================================================== */

.total_profit,
.total_profit_record {
    font-weight: 700;
    font-size: 14px;
}

.total_profit.positive,
.total_profit_record.positive {
    color: #4ade80;
}

.total_profit.negative,
.total_profit_record.negative {
    color: #f87171;
}

/* ==========================================================================
   VIP Locked Content - VIP 锁定内容
   ========================================================================== */

.vip-locked-content {
    text-align: center;
    padding: 40px 20px;
    background: rgba(12, 61, 84, 0.3);
    border-radius: 8px;
}

.vip-locked-content i {
    font-size: 48px;
    color: #ffd259;
    margin-bottom: 15px;
}

.vip-locked-content h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 10px;
}

.vip-locked-content p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 20px;
}

.btnz-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd259 0%, #e5bc4a 100%);
    color: #0a0f1a;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 210, 89, 0.3);
}

.btnz-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 210, 89, 0.4);
    color: #0a0f1a;
}

.btnz-login i {
    font-size: 14px;
}

/* ==========================================================================
   Responsive Styles - 响应式样式
   ========================================================================== */

@media (max-width: 768px) {
    .tablepress {
        font-size: 12px;
    }
    
    .tablepress thead th {
        padding: 10px 5px;
        font-size: 11px;
    }
    
    .tablepress tbody td {
        padding: 10px 5px;
    }
    
    /* Hide columns on mobile */
    .tablepress .hide_mb {
        display: none !important;
    }
    
    /* Show mobile-specific columns */
    .tablepress .show_mb {
        display: table-cell !important;
    }
    
    .match .home,
    .match .away {
        font-size: 12px;
    }
    
    .tips {
        font-size: 12px;
    }
    
    .stake {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ==========================================================================
   TablePress Pagination - 分页样式
   ========================================================================== */

.tablepress-pagination {
    margin-top: 20px;
    text-align: center;
}

.tablepress-pagination .row {
    margin: 0;
}

.tablepress-pagination .row .pagination {
    display: inline-flex;
    gap: 5px;
    justify-content: center;
}

.tablepress-pagination .pagination li {
    display: inline-block;
}

.tablepress-pagination .pagination li a,
.tablepress-pagination .pagination li span {
    display: inline-block;
    padding: 8px 14px;
    background: #1f2937;
    color: #ffffff;
    border: 1px solid #2d3748;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tablepress-pagination .pagination li a:hover {
    background: rgba(255, 210, 89, 0.1);
    border-color: #ffd259;
    color: #ffd259;
}

.tablepress-pagination .pagination li.active span {
    background: #ffd259;
    color: #0a0f1a;
    border-color: #ffd259;
    font-weight: 600;
}

.tablepress-pagination .pagination li.disabled span {
    background: #121a25;
    color: #6b7280;
    border-color: #2d3748;
    cursor: not-allowed;
}

/* ==========================================================================
   TablePress Loading - 加载状态
   ========================================================================== */

.tablepress-loading {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.tablepress-loading i {
    font-size: 32px;
    color: #ffd259;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   TablePress Empty State - 空状态
   ========================================================================== */

.tablepress-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.tablepress-empty i {
    font-size: 48px;
    color: #6b7280;
    margin-bottom: 15px;
}

.tablepress-empty p {
    font-size: 14px;
    margin: 0;
}

/* ==========================================================================
   TablePress Column Specific - 列特定样式
   ========================================================================== */

/* Time Column */
.tablepress td.show_mb {
    min-width: 100px;
}

/* League Column */
.tablepress td:nth-child(3) {
    min-width: 80px;
}

/* Match Column */
.tablepress td:nth-child(4) {
    min-width: 200px;
}

/* Tips Column */
.tablepress td:nth-child(5) {
    min-width: 120px;
}

/* Odds Column */
.tablepress td:nth-child(6) {
    min-width: 60px;
}

/* Stake Column */
.tablepress td:nth-child(7) {
    min-width: 70px;
}

/* Score Column */
.tablepress td.hide_mb:nth-child(8) {
    min-width: 100px;
}

/* Profit Column */
.tablepress td:nth-child(10) {
    min-width: 80px;
}

/* ==========================================================================
   TablePress Hover Effects - 悬停效果
   ========================================================================== */

.tablepress tbody tr:hover .match .home,
.tablepress tbody tr:hover .match .away {
    color: #ffd259;
}

.tablepress tbody tr:hover .tips {
    color: #ffd259;
}

.tablepress tbody tr:hover .league {
    color: #ffd259;
}

/* ==========================================================================
   TablePress Print Styles - 打印样式
   ========================================================================== */

@media print {
    .tablepress {
        background: #ffffff;
        color: #000000;
    }
    
    .tablepress thead th {
        background: #f0f0f0;
        color: #000000;
    }
    
    .tablepress tbody tr:nth-child(odd) {
        background: #ffffff;
    }
    
    .tablepress tbody tr:nth-child(even) {
        background: #f9f9f9;
    }
    
    .status {
        border: 1px solid #000000;
    }
}
