/* Popüler Oyuncular Kartları */
.players-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    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;
}

.player-photo {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    padding-bottom: 70%; /* Daha küçük fotoğraf için oranı azalttım */
    border-radius: 12px 12px 0 0; /* Üst köşeleri yuvarlatılmış */
}

.player-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), 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: 12px;
    position: relative;
}

.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;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.player-team, .player-position {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.player-team {
    background-color: rgba(154, 0, 0, 0.08);
    color: #9a0000;
    font-weight: 500;
}

.player-position {
    background-color: #f8f8f8;
    color: #444;
}

.player-card:hover .player-team, .player-card:hover .player-position {
    background-color: #f0f0f0;
}

.player-team i, .player-position i {
    margin-right: 6px;
    color: #e65100;
    font-size: 13px;
}

.player-rank {
    position: absolute;
    top: -20px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #9a0000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(154, 0, 0, 0.3);
    z-index: 3;
    transform: translateY(-50%);
    border: 3px solid white;
}

.player-details {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
}

.player-details i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.player-card:hover .player-details i {
    transform: translateX(3px);
}

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

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

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

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