/**
 * 足球首页增强样式
 * 包含 Trending News 和 Match Overview
 */

/* ============================================
   Trending News 滚动新闻栏
   ============================================ */
.football-trending-news {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 12px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.trending-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
    border-right: 2px solid rgba(255,255,255,0.3);
}

.trending-icon {
    font-size: 18px;
    animation: trendingPulse 2s infinite;
}

@keyframes trendingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.trending-content {
    flex: 1;
    overflow: hidden;
    padding: 0 20px;
}

.trending-slider {
    display: flex;
    animation: trendingScroll 20s linear infinite;
}

.trending-item {
    white-space: nowrap;
    padding-right: 50px;
}

.trending-item a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.trending-item a:hover {
    opacity: 0.8;
}

.trending-nav {
    display: flex;
    gap: 5px;
    padding: 0 20px;
}

.trending-prev,
.trending-next {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.trending-prev:hover,
.trending-next:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

@keyframes trendingScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Next Match & Recent Results 双栏布局
   ============================================ */
.football-match-overview {
    padding: 40px 0;
    background: #f8f9fa;
}

.football-match-dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.match-section-header {
    margin-bottom: 20px;
}

.match-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px;
}

.match-section-subtitle {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* ============================================
   Next Match 下场比赛卡片
   ============================================ */
.next-match-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.next-match-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.next-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.next-match-team {
    flex: 1;
    text-align: center;
}

.team-flag {
    font-size: 3rem;
    margin-bottom: 10px;
}

.team-icon-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.3);
    margin: 0 auto;
}

.team-icon-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    margin-right: 8px;
}

.flag-placeholder {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    line-height: 80px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.next-match-team:hover .flag-placeholder {
    transform: rotate(360deg);
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 10px;
}

.match-vs-badge {
    text-align: center;
    padding: 0 20px;
}

.vs-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #95a5a6;
    margin-bottom: 5px;
}

.match-date-small {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.match-venue-small {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 5px;
}

/* ============================================
   Recent Results 最近结果列表
   ============================================ */
.recent-result-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #95a5a6;
    transition: all 0.3s ease;
}

.recent-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recent-result-item.result-win {
    border-left-color: #27ae60;
}

.recent-result-item.result-win:hover {
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.05) 0%, #fff 100%);
}

.recent-result-item.result-loss {
    border-left-color: #e74c3c;
}

.recent-result-item.result-loss:hover {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.05) 0%, #fff 100%);
}

.recent-result-item.result-draw {
    border-left-color: #f39c12;
}

.recent-result-item.result-draw:hover {
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.05) 0%, #fff 100%);
}

.result-teams {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.result-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-flag-small {
    font-size: 1.2rem;
}

.team-name-small {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.result-score {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ftp-primary, #667eea);
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-separator {
    color: #95a5a6;
}

.result-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    white-space: nowrap;
}

/* ============================================
   空状态提示
   ============================================ */
.no-next-match,
.no-recent-results {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #7f8c8d;
}

.no-next-match p,
.no-recent-results p {
    margin: 0;
    font-size: 1.1rem;
}

/* ============================================
   Latest News 最新资讯卡片
   ============================================ */
.football-latest-news {
    padding: 60px 0;
    background: #fff;
}

.football-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.football-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.football-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.football-news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.football-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.football-news-card:hover .football-news-image img {
    transform: scale(1.1);
}

.football-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    opacity: 0.3;
}

.news-icon {
    font-size: 4rem;
}

.football-news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.football-news-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.football-news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.football-news-title a:hover {
    color: var(--ftp-primary, #667eea);
}

.football-news-excerpt {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.football-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.news-date {
    font-size: 0.85rem;
    color: #95a5a6;
}

.news-readmore {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ftp-primary, #667eea);
    text-decoration: none;
    transition: all 0.3s;
}

.news-readmore:hover {
    color: var(--ftp-secondary, #764ba2);
    transform: translateX(5px);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 992px) {
    .football-match-dual-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .football-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .trending-label {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .trending-item a {
        font-size: 12px;
    }
    
    .trending-nav {
        padding: 0 10px;
    }
    
    .next-match-teams {
        flex-direction: column;
    }
    
    .match-vs-badge {
        padding: 15px 0;
    }
    
    .flag-placeholder {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
    
    .football-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .football-news-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .football-trending-news {
        padding: 10px 0;
    }
    
    .trending-label {
        font-size: 11px;
    }
    
    .match-section-title {
        font-size: 1.2rem;
    }
    
    .next-match-card {
        padding: 20px;
    }
    
    .result-teams {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .recent-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .football-latest-news {
        padding: 40px 0;
    }
    
    .football-news-card {
        margin-bottom: 15px;
    }
    
    .football-news-image {
        height: 160px;
    }
    
    .football-news-content {
        padding: 15px;
    }
}

