/* Players Carousel Styles */
.players-carousel-container {
    margin-top: 3rem;
    padding: 2rem 0;
}

.carousel-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-green);
    font-weight: 700;
}

.players-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 3rem;
    width: max-content;
}

.carousel-track.animate {
    animation: scrollCarousel 45s linear infinite;
}

.player-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 3px 8px 20px rgba(2, 138, 66, 0.15), -2px 3px 12px rgba(2, 138, 66, 0.08);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.player-slide:hover {
    transform: translateY(-5px);
    border-color: #028a42;
    box-shadow: 0 8px 25px rgba(2, 138, 66, 0.2);
}

.player-slide img {
    width: 160px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.player-slide:hover img {
    transform: scale(1.05);
}

.player-slide .player-name {
    font-family: 'Rajdhani', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.player-slide .player-number {
    font-family: 'Rajdhani', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #028a42;
    text-align: center;
    margin-bottom: 0.2rem;
}

.player-slide .player-position {
    font-family: 'Rajdhani', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    letter-spacing: 0.5px;
}

.player-slide .captain-badge {
    font-family: 'Rajdhani', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #dc2626;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.player-slide.captain {
    border: 3px solid #fbbf24;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.player-slide.vice-captain {
    border: 3px solid #4ade80;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
}

.carousel-button {
    margin-top: 2rem;
    text-align: center;
}

.carousel-button a {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-green), #4ade80);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 138, 66, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 138, 66, 0.3);
    background: linear-gradient(135deg, #4ade80, var(--primary-green));
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc((-220px - 3rem) * 31));
    }
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .players-carousel-container {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .player-slide {
        min-width: 200px;
        padding: 1rem;
    }

    .player-slide img {
        width: 130px;
        height: 170px;
    }

    .carousel-track {
        gap: 2rem;
    }

    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc((-200px - 2rem) * 31));
        }
    }
}