/**
 * 球员列表模板样式
 * 命名空间: .football-*
 */

/* ============================================
   页面容器
   ============================================ */
.football-player-page-wrapper {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 40px 0;
}

.football-main-content {
    padding: 40px 0;
}

.football-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   通用样式
   ============================================ */
.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-position-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out;
}

.football-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 10px;
    text-align: center;
    gap: 10px;
}

.football-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    justify-content: center;
}

.football-position-count {
    background: var(--ftp-primary, #667eea);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* ============================================
   球员网格布局 (每行4个)
   ============================================ */
.football-players-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* ============================================
   现代化球员卡片 (类似巴萨风格)
   ============================================ */
.football-player-card-modern {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out backwards;
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 为每个卡片添加延迟动画 */
.football-player-card-modern:nth-child(1) { animation-delay: 0.1s; }
.football-player-card-modern:nth-child(2) { animation-delay: 0.2s; }
.football-player-card-modern:nth-child(3) { animation-delay: 0.3s; }
.football-player-card-modern:nth-child(4) { animation-delay: 0.4s; }
.football-player-card-modern:nth-child(5) { animation-delay: 0.5s; }
.football-player-card-modern:nth-child(6) { animation-delay: 0.6s; }
.football-player-card-modern:nth-child(7) { animation-delay: 0.7s; }
.football-player-card-modern:nth-child(8) { animation-delay: 0.8s; }

.football-player-card-modern:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transform: translateY(-10px);
}

/* 卡片前景 */
.football-player-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a90329 0%, #6b0f1a 50%, #003366 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.football-player-card-modern:hover .football-player-card-front {
    transform: translateY(-20px);
    opacity: 0.3;
}

/* 背景渐变叠加层 */
.football-player-bg-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* 球员照片 */
.football-player-photo {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: brightness(0.9);
    transition: transform 0.3s ease;
}

.football-player-card-modern:hover .football-player-photo {
    transform: scale(1.05);
}

.football-player-photo-placeholder {
    background: linear-gradient(135deg, rgba(169, 3, 41, 0.8) 0%, rgba(0, 51, 102, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-placeholder-icon {
    font-size: 8rem;
    opacity: 0.3;
    color: #fff;
}

/* 大号码 */
.football-player-number-large {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.15);
    z-index: 3;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 球员信息前景 */
.football-player-info-front {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 3;
    color: #fff;
    text-align: center;
}

.football-player-firstname {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.football-player-lastname {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
}

.football-player-position-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.3);
}

/* 悬浮显示的统计数据 */
.football-player-card-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 10;
    padding: 20px;
}

.football-player-card-modern:hover .football-player-card-hover {
    opacity: 1;
    transform: translateY(0);
}

/* 统计数据布局 */
.football-player-stats-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.player-stat-column {
    text-align: center;
    color: #fff;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.player-stat-column:hover {
    background: rgba(255,255,255,0.08);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #bbb;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-season {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
}

/* ============================================
   球员表格
   ============================================ */
.football-players-table-wrapper {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.football-players-table {
    width: 100%;
    border-collapse: collapse;
}

.football-players-table thead {
    background: linear-gradient(135deg, var(--ftp-primary, #667eea) 0%, var(--ftp-secondary, #764ba2) 100%);
    color: #fff;
}

.football-players-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.football-players-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.football-players-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.football-players-table td {
    padding: 20px;
}

.football-table-number {
    width: 80px;
}

.football-number-badge {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--ftp-primary, #667eea);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.football-table-name {
    font-size: 1.1rem;
}

.football-position-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
}

.football-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ftp-primary, #667eea);
}

.football-avatar-placeholder-small {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ftp-primary, #667eea) 0%, var(--ftp-secondary, #764ba2) 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    line-height: 50px;
}

/* ============================================
   空状态
   ============================================ */
.football-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.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-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 fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================
   响应式设计
   ============================================ */
/* 大屏幕 - 每行4个 (默认在 .football-players-grid 中已定义) */

/* 中等屏幕 - 每行3个 */
@media (max-width: 1399px) and (min-width: 993px) {
    .football-players-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* 平板 - 每行2个 */
@media (max-width: 992px) {
    .football-players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .football-player-card-modern {
        height: 450px;
    }
    
    .football-player-number-large {
        font-size: 4rem;
    }
    
    .football-player-lastname {
        font-size: 2.2rem;
    }
    
    .football-player-stats-detail {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* 手机 - 每行1个 */
@media (max-width: 768px) {
    .football-player-page-wrapper {
        padding: 20px 0;
    }
    
    .football-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0;
    }
    
    .football-section-title {
        font-size: 1.5rem;
    }
    
    .football-players-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .football-player-card-modern {
        height: 400px;
    }
    
    .football-player-number-large {
        font-size: 3rem;
        top: 15px;
        left: 15px;
    }
    
    .football-player-info-front {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .football-player-firstname {
        font-size: 1rem;
    }
    
    .football-player-lastname {
        font-size: 1.8rem;
    }
    
    .football-player-position-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .football-player-card-hover {
        padding: 25px 15px 20px;
    }
    
    .football-player-stats-detail {
        gap: 10px;
    }
    
    .player-stat-column {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-season {
        font-size: 0.6rem;
    }
    
    .football-players-table-wrapper {
        overflow-x: auto;
    }
    
    .football-players-table {
        min-width: 600px;
    }
    
    .football-position-section {
        margin-bottom: 30px;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .football-player-page-wrapper {
        padding: 15px 0;
    }
    
    .football-section-title {
        font-size: 1.3rem;
    }
    
    .football-player-card-modern {
        height: 380px;
    }
    
    .football-position-count {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
}

/* ============================================
   响应式设计 - 球员页面专用
   ============================================ */

/* 平板电脑 (768px - 1024px) */
@media (max-width: 1024px) {
    .football-players-page-wrapper .football-container {
        padding: 0 20px;
    }
    
    .football-players-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .football-position-title {
        font-size: 1.8rem;
    }
    
    .football-player-card-modern {
        height: 360px;
    }
}

/* 移动端 (小于768px) */
@media (max-width: 768px) {
    .football-players-page-wrapper .football-container {
        padding: 0 15px;
    }
    
    /* 页面头部 */
    .football-players-header {
        padding: 30px 0;
    }
    
    .football-players-main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .football-players-subtitle {
        font-size: 1rem;
    }
    
    /* 球员网格 */
    .football-players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 位置区块 */
    .football-position-section {
        margin-bottom: 40px;
    }
    
    .football-position-header {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .football-position-title {
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    .football-position-count {
        font-size: 0.8rem;
        padding: 5px 12px;
        align-self: center;
    }
    
    /* 球员卡片 */
    .football-player-card-modern {
        height: 320px;
        padding: 15px;
    }
    
    .football-player-image {
        height: 200px;
    }
    
    .football-player-image img {
        max-height: 90%;
    }
    
    .football-player-number {
        font-size: 3rem;
        top: 10px;
        right: 10px;
    }
    
    .football-player-info-front {
        bottom: 10px;
    }
    
    .football-player-lastname {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .football-player-position-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    /* 悬浮卡片 */
    .football-player-card-hover {
        padding: 15px;
        height: 180px;
    }
    
    .hover-stat-item {
        padding: 8px;
    }
    
    .hover-stat-value {
        font-size: 1.3rem;
    }
    
    .hover-stat-label {
        font-size: 0.7rem;
    }
    
    /* 空状态 */
    .football-empty-state {
        padding: 40px 20px;
    }
    
    .football-empty-icon {
        font-size: 3rem;
    }
    
    .football-empty-state h3 {
        font-size: 1.3rem;
    }
    
    .football-empty-state p {
        font-size: 0.9rem;
    }
}

/* 小屏手机 (小于480px) */
@media (max-width: 480px) {
    .football-players-page-wrapper .football-container {
        padding: 0 12px;
    }
    
    /* 页面头部 */
    .football-players-header {
        padding: 25px 0;
    }
    
    .football-players-main-title {
        font-size: 1.75rem;
        margin-bottom: 8px;
    }
    
    .football-players-subtitle {
        font-size: 0.9rem;
    }
    
    /* 球员网格 - 单列布局 */
    .football-players-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 位置区块 */
    .football-position-section {
        margin-bottom: 35px;
    }
    
    .football-position-title {
        font-size: 1.3rem;
    }
    
    .football-position-count {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    /* 球员卡片 */
    .football-player-card-modern {
        height: 340px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .football-player-image {
        height: 220px;
    }
    
    .football-player-number {
        font-size: 2.5rem;
        top: 8px;
        right: 8px;
    }
    
    .football-player-lastname {
        font-size: 1.05rem;
    }
    
    .football-player-position-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    /* 悬浮卡片 */
    .football-player-card-hover {
        padding: 12px;
        height: 170px;
    }
    
    .hover-stats-grid {
        gap: 8px;
    }
    
    .hover-stat-item {
        padding: 6px;
    }
    
    .hover-stat-value {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .hover-stat-label {
        font-size: 0.65rem;
    }
    
    /* 空状态 */
    .football-empty-state {
        padding: 30px 15px;
    }
    
    .football-empty-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .football-empty-state h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .football-empty-state p {
        font-size: 0.85rem;
    }
    
    .football-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 超小屏设备 (小于375px) */
@media (max-width: 375px) {
    .football-players-main-title {
        font-size: 1.5rem;
    }
    
    .football-position-title {
        font-size: 1.2rem;
    }
    
    .football-player-card-modern {
        height: 320px;
    }
    
    .football-player-image {
        height: 200px;
    }
    
    .football-player-number {
        font-size: 2.2rem;
    }
    
    .football-player-lastname {
        font-size: 1rem;
    }
    
    .football-player-card-hover {
        height: 160px;
    }
    
    .hover-stat-value {
        font-size: 1.1rem;
    }
}

