/**
 * 赛程安排模板样式
 * 命名空间: .football-* / .schedule-*
 */

/* 重置样式，确保不被主题覆盖 */
.football-schedule-page-wrapper * {
    box-sizing: border-box;
}

/* ============================================
   页面容器
   ============================================ */
.football-schedule-page-wrapper {
    background: #f8f9fa !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
}

.football-schedule-page-wrapper .football-main-content {
    padding: 40px 0 !important;
    width: 100% !important;
}

.football-schedule-page-wrapper .football-container-wide {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    width: 100% !important;
}

.football-schedule-page-wrapper .football-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* ============================================
   页面头部
   ============================================ */
.football-schedule-page-wrapper .schedule-header-section {
    margin-bottom: 40px !important;
    padding: 20px 0 !important;
}

.football-schedule-page-wrapper .schedule-main-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin: 0 0 30px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-align: center !important;
}

/* ============================================
   月份导航
   ============================================ */
.schedule-month-nav {
    display: flex;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e0e0e0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.month-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    position: relative;
}

.month-nav-btn::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ftp-primary, #667eea);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.month-nav-btn.active::after,
.month-nav-btn:hover::after {
    transform: scaleX(1);
}

.month-year-small {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 4px;
}

.month-name-short {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.month-nav-btn.active .month-name-short,
.month-nav-btn:hover .month-name-short {
    color: var(--ftp-primary, #667eea);
}

/* ============================================
   月份区域
   ============================================ */
.schedule-month-section {
    margin-top: 40px;
}

.schedule-month-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    letter-spacing: 0.5px;
}

/* ============================================
   比赛列表（现代横向布局）
   ============================================ */
.schedule-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.schedule-match-row {
    display: grid;
    grid-template-columns: 180px 200px 1fr;
    align-items: center;
    background: #fff;
    padding: 25px 30px;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.schedule-match-row.has-link {
    cursor: pointer;
}

.schedule-match-row:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.schedule-match-row:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: none;
}

.schedule-match-row:hover {
    background: #f9f9f9;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.schedule-match-row.has-link:hover {
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

/* 左侧：日期时间列 */
.match-datetime-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.match-day-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-time {
    font-size: 0.95rem;
    color: #666;
}

/* 中间：赛事信息列 */
.match-competition-column {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

/* 比赛状态标签 */
.match-status-badge {
    display: inline-block !important;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
    align-self: center !important;
    text-align: center;
    min-width: 100px;
}

.match-status-badge.status-upcoming {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.match-status-badge.status-live {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    animation: pulse-live 2s infinite;
}

.match-status-badge.status-finished {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
}

@keyframes pulse-live {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(211, 47, 47, 0);
    }
}

.competition-badge {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    align-self: center !important;
}

.matchday-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    align-self: center !important;
    text-align: center;
}

/* 右侧：对阵信息列 */
.match-teams-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-team-info {
    flex-direction: row;
}

.away-team-info {
    flex-direction: row-reverse;
}

.team-name-schedule {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 150px;
}

.home-team-info .team-name-schedule {
    text-align: right;
}

.away-team-info .team-name-schedule {
    text-align: left;
}

.team-logo-schedule {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-logo-schedule img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-emoji-schedule {
    font-size: 2.5rem;
}

.vs-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

/* ============================================
   通用样式（供多个模板使用）
   ============================================ */
.football-section {
    margin-bottom: 40px;
}

.football-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 15px;
}

.football-empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.football-empty-state h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 10px;
}

.football-empty-state p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0 0 30px;
}

.football-btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.football-btn-primary {
    background: linear-gradient(135deg, var(--ftp-primary, #667eea) 0%, var(--ftp-secondary, #764ba2) 100%);
    color: #fff;
}

.football-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.football-content-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    line-height: 1.8;
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.5);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
    .schedule-match-row {
        grid-template-columns: 150px 180px 1fr;
        padding: 20px 25px;
    }
    
    .team-name-schedule {
        font-size: 1rem;
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .schedule-match-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .match-teams-column {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .team-name-schedule {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .schedule-main-title {
        font-size: 2rem;
    }
    
    .schedule-month-title {
        font-size: 1.5rem;
    }
    
    .schedule-match-row {
        padding: 20px 15px;
    }
    
    .match-competition-column {
        align-items: center;
    }
    
    .match-datetime-column {
        align-items: center;
    }
    
    .match-teams-column {
        gap: 15px;
    }
    
    .team-logo-schedule {
        width: 40px;
        height: 40px;
    }
    
    .team-emoji-schedule {
        font-size: 2rem;
    }
    
    .team-name-schedule {
        font-size: 0.95rem;
    }
    
    .home-team-info .team-name-schedule,
    .away-team-info .team-name-schedule {
        text-align: center;
    }
    .football-schedule-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .football-schedule-nav {
        gap: 10px;
    }
    
    .football-schedule-nav-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .football-schedule-table-wrapper {
        overflow-x: auto;
    }
    
    .football-schedule-table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    .football-schedule-stats {
        grid-template-columns: 1fr;
    }
    
    .football-schedule-nav {
        flex-direction: column;
    }
    
    .football-schedule-nav-btn {
        width: 100%;
    }
}

/* ============================================
   现代化比赛卡片样式
   ============================================ */
.football-match-card-modern {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.football-match-card-modern:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

/* 场地信息 */
.football-match-venue {
    background: #f8f9fa;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #e9ecef;
}

/* 比赛主体 */
.football-match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    gap: 20px;
}

/* 队伍侧边 */
.football-team-side {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.football-team-side.home-side {
    justify-content: flex-start;
}

.football-team-side.away-side {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

/* 队伍图标 */
.football-team-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.football-match-card-modern:hover .football-team-icon {
    transform: scale(1.1);
    border-color: var(--ftp-primary, #667eea);
}

.team-icon-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.team-icon-emoji {
    font-size: 2.5rem;
}

/* 队伍名称 */
.football-team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    flex: 1;
}

.football-team-side.away-side .football-team-name {
    text-align: right;
}

/* 比分 */
.football-team-score-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ftp-primary, #667eea);
    min-width: 60px;
    text-align: center;
}

/* VS分隔符 */
.football-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.vs-badge {
    background: linear-gradient(135deg, var(--ftp-primary, #667eea) 0%, var(--ftp-secondary, #764ba2) 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* 比赛底部信息 */
.football-match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.football-match-date-info {
    font-size: 0.95rem;
    color: #666;
}

.match-date-text {
    font-weight: 600;
}

.football-match-status-info {
    display: flex;
    gap: 10px;
}

.status-badge-modern {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-modern.badge-upcoming {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge-modern.badge-live {
    background: #ffebee;
    color: #c62828;
    animation: pulse-badge 2s infinite;
}

.status-badge-modern.badge-finished {
    background: #e8f5e9;
    color: #2e7d32;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(198, 40, 40, 0);
    }
}

/* 状态边框颜色 */
.football-match-card-modern.status-upcoming {
    border-left: 4px solid #1976d2;
}

.football-match-card-modern.status-live {
    border-left: 4px solid #c62828;
}

.football-match-card-modern.status-finished {
    border-left: 4px solid #2e7d32;
}

/* 现代卡片响应式设计 */
@media (max-width: 768px) {
    .football-match-body {
        padding: 20px 15px;
        gap: 10px;
    }
    
    .football-team-icon {
        width: 50px;
        height: 50px;
    }
    
    .team-icon-img {
        width: 40px;
        height: 40px;
    }
    
    .team-icon-emoji {
        font-size: 2rem;
    }
    
    .football-team-name {
        font-size: 1rem;
    }
    
    .football-team-score-modern {
        font-size: 2rem;
        min-width: 50px;
    }
    
    .vs-badge {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .football-vs-divider {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .football-match-body {
        flex-direction: column;
        padding: 20px 10px;
    }
    
    .football-team-side {
        width: 100%;
        justify-content: space-between !important;
    }
    
    .football-team-side.away-side {
        flex-direction: row !important;
    }
    
    .football-team-side.away-side .football-team-name {
        text-align: left;
    }
    
    .football-vs-divider {
        width: 100%;
        margin: 10px 0;
    }
    
    .football-match-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* ============================================
   响应式设计 - 赛程页面专用
   ============================================ */

/* 平板电脑 (768px - 1024px) */
@media (max-width: 1024px) {
    .football-schedule-page-wrapper .football-container-wide {
        padding: 30px 15px !important;
    }
    
    .football-schedule-page-wrapper .schedule-main-title {
        font-size: 2rem !important;
    }
    
    .schedule-match-row {
        padding: 15px !important;
    }
    
    .match-datetime-column {
        flex: 0 0 120px !important;
    }
    
    .match-competition-column {
        flex: 0 0 150px !important;
    }
    
    .team-name-schedule {
        font-size: 0.95rem !important;
    }
    
    .team-logo-schedule {
        width: 40px !important;
        height: 40px !important;
    }
}

/* 移动端 (小于768px) */
@media (max-width: 768px) {
    .football-schedule-page-wrapper .football-main-content {
        padding: 20px 0 !important;
    }
    
    .football-schedule-page-wrapper .football-container-wide {
        padding: 20px 10px !important;
    }
    
    /* 页面标题 */
    .football-schedule-page-wrapper .schedule-main-title {
        font-size: 1.75rem !important;
        text-align: center;
        margin-bottom: 20px !important;
    }
    
    /* 月份导航 */
    .schedule-month-nav {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .month-nav-btn {
        padding: 8px 12px !important;
        min-width: auto !important;
    }
    
    .month-year-small {
        font-size: 0.75rem !important;
    }
    
    .month-name-short {
        font-size: 0.9rem !important;
    }
    
    /* 月份区域标题 */
    .schedule-month-title {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    /* 赛程行 - 改为垂直堆叠布局 */
    .schedule-match-row {
        flex-direction: column !important;
        padding: 15px !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
    
    /* 日期时间列 */
    .match-datetime-column {
        flex: 1 !important;
        text-align: center !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .match-day-name {
        font-size: 1rem !important;
    }
    
    .match-time {
        font-size: 0.9rem !important;
    }
    
    /* 赛事信息列 */
    .match-competition-column {
        flex: 1 !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }
    
    .competition-badge {
        font-size: 0.8rem !important;
        padding: 5px 12px !important;
    }
    
    .matchday-label {
        font-size: 0.75rem !important;
    }
    
    /* 对阵信息列 - 垂直堆叠 */
    .match-teams-column {
        flex: 1 !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }
    
    /* 球队信息 */
    .team-info {
        width: 100% !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .team-name-schedule {
        font-size: 1rem !important;
        max-width: 150px !important;
        text-align: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .team-logo-schedule {
        width: 45px !important;
        height: 45px !important;
    }
    
    .team-emoji-schedule {
        font-size: 2.2rem !important;
    }
    
    /* VS 和状态容器 */
    .vs-status-container {
        width: 100% !important;
        padding: 10px 0 !important;
        gap: 10px !important;
    }
    
    .vs-text {
        font-size: 1.1rem !important;
    }
    
    .match-status-badge {
        font-size: 0.85rem !important;
        padding: 6px 16px !important;
        min-width: 75px !important;
    }
}

/* 小屏手机 (小于480px) */
@media (max-width: 480px) {
    .football-schedule-page-wrapper .football-container-wide {
        padding: 15px 8px !important;
    }
    
    /* 页面标题 */
    .football-schedule-page-wrapper .schedule-main-title {
        font-size: 1.5rem !important;
    }
    
    /* 月份导航 */
    .month-nav-btn {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
    }
    
    .month-year-small {
        font-size: 0.7rem !important;
    }
    
    .month-name-short {
        font-size: 0.85rem !important;
    }
    
    /* 赛程行 */
    .schedule-match-row {
        padding: 12px !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }
    
    /* 日期时间 */
    .match-day-name {
        font-size: 0.95rem !important;
    }
    
    .match-time {
        font-size: 0.85rem !important;
    }
    
    /* 球队信息 */
    .team-name-schedule {
        font-size: 0.9rem !important;
        max-width: 120px !important;
    }
    
    .team-logo-schedule {
        width: 40px !important;
        height: 40px !important;
    }
    
    .team-emoji-schedule {
        font-size: 2rem !important;
    }
    
    /* VS 和状态 */
    .vs-text {
        font-size: 1rem !important;
    }
    
    .match-status-badge {
        font-size: 0.8rem !important;
        padding: 5px 14px !important;
        min-width: 70px !important;
    }
    
    /* 赛事标签 */
    .competition-badge {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }
    
    .matchday-label {
        font-size: 0.7rem !important;
    }
    
    /* 月份标题 */
    .schedule-month-title {
        font-size: 1.3rem !important;
    }
}

/* 超小屏设备 (小于375px) */
@media (max-width: 375px) {
    .football-schedule-page-wrapper .schedule-main-title {
        font-size: 1.3rem !important;
    }
    
    .schedule-match-row {
        padding: 10px !important;
    }
    
    .team-name-schedule {
        font-size: 0.85rem !important;
        max-width: 100px !important;
    }
    
    .team-logo-schedule {
        width: 35px !important;
        height: 35px !important;
    }
    
    .vs-text {
        font-size: 0.9rem !important;
    }
    
    .match-status-badge {
        font-size: 0.75rem !important;
        padding: 4px 12px !important;
    }
}

