/* 埃因霍温一线队球员卡片样式 */
/* PSV Eindhoven First Team Player Cards Styles */

.psv-team-page {
    background: #fff;
}

/* 强制PSV球员页面使用全宽布局 */
.psv-team-page .row {
    display: block !important;
}

.psv-team-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

/* 隐藏侧边栏 */
.psv-team-page .secondary-sidebar,
.psv-team-page .secondary-left-sidebar {
    display: none !important;
}

.psv-team-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.psv-team-header .page-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.psv-team-header .archive-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* 球员区域 */
.player-section {
    margin-bottom: 60px;
    position: relative;
}

/* 区域标题和导航按钮 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.player-section .section-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #e30613;
    flex: 1;
}

.section-navigation {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

/* 轮播容器 */
.player-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.player-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* 球员卡片容器 - 精确计算宽度 */
.player-carousel .player-card-link {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    max-width: none;
}

@media (max-width: 1200px) {
    .player-carousel .player-card-link {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .player-carousel {
        gap: 15px;
    }

    .player-carousel .player-card-link {
        flex: 0 0 calc(100% - 30px);
        width: calc(100% - 30px);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-navigation {
        margin-left: 0;
    }
}

/* 球员卡片链接 */
.player-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.player-card-link:hover {
    text-decoration: none;
}

/* 球员卡片 */
.player-card {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.player-card-link:hover .player-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 绿色渐变背景纹理 */
.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
    pointer-events: none;
}

.player-card-inner {
    position: relative;
    z-index: 1;
}

/* 球员图片区域 */
.player-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(26, 95, 63, 0.3) 0%, rgba(26, 95, 63, 0.8) 100%);
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* 球员号码覆盖层 */
.player-number-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.player-number {
    display: block;
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.3);
}

.player-position-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* 球员信息区域 */
.player-info {
    padding: 20px;
    background: #2d2d2d;
    color: #fff;
}

.player-name-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}

.player-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 球员统计数据 */
.player-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: grid;
    grid-template-columns: 60px 40px 80px 40px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.stat-label,
.stat-label-en {
    color: #bbb;
    font-weight: 500;
}

.stat-value,
.stat-value-en {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.stat-label-en {
    color: #e30613;
}

.stat-value-en {
    color: #fff;
}

/* 门将卡片特殊颜色 */
.player-section:first-of-type .player-card {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
}

/* 导航按钮 */
.nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #e30613;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.3);
}

.nav-arrow:hover:not(:disabled) {
    background: #c00510;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.5);
}

.nav-arrow:active:not(:disabled) {
    transform: translateY(0);
}

.nav-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .player-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .psv-team-header .page-title {
        font-size: 28px;
    }

    .player-section .section-title {
        font-size: 24px;
    }

    .player-card {
        margin: 0 10px;
    }

    .player-number {
        font-size: 60px;
    }

    .stat-row {
        grid-template-columns: 50px 35px 70px 35px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .player-name {
        font-size: 18px;
    }

    .player-number {
        font-size: 50px;
    }

    .player-image-wrapper {
        height: 240px;
    }
}

/* 打印样式 */
@media print {
    .player-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .nav-arrow {
        display: none;
    }
}
