/* Takım Detay Sayfası Oyuncu Kartları */
.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3'lü yerine 2'li grid */
    gap: 20px; /* Kartlar arası mesafeyi arttırdık */
    margin-top: 20px;
}

.player-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(154, 0, 0, 0.2);
}

.player-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #9a0000, #e65100);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.player-card:hover::before {
    opacity: 1;
    top: 0;
}

.player-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Oyuncu fotoğrafı düzeni */
.player-photo {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    padding-bottom: 80%; /* Portre formatında fotoğraf için küçültülmüş oran (mevcut boyutun 2/3'ü) */
    border-radius: 12px 12px 0 0; /* Üst köşeleri yuvarlatılmış */
}

.player-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1), transparent);
    z-index: 1;
}

.player-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.player-card:hover .player-photo img {
    transform: scale(1.08);
}

.player-info {
    padding: 16px;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
}

.player-name {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    transition: color 0.3s ease;
}

.player-card:hover .player-name {
    color: #9a0000;
}

/* Yeni oyuncu kartı bileşenleri */
.player-position-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 12px;
}

.player-number {
    font-weight: 700;
    font-size: 16px;
    color: #9a0000;
    background-color: rgba(154, 0, 0, 0.08);
    padding: 3px 8px;
    border-radius: 16px;
}

.position-name {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background-color: #f5f5f5;
    padding: 3px 12px;
    border-radius: 16px;
}

.player-physical {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.physical-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.stat-label {
    font-size: 13px;
    color: #777;
    margin-top: 3px;
}



/* Responsive düzen için medya sorguları */
@media (max-width: 1200px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .players-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
}

@media (max-width: 575px) {
    .players-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
