﻿:root {
    --primaryForPlayerCard: #4caf50;
    --primaryForPlayerCard-2: #66bb6a;
    --card-radius: 12px;
}


/* 1) Rating (puan) bölümünü kesinlikle fotoğrafın üstüne çıkar */
.rating-row {
    position: relative !important; /* stacking context oluştur */
    z-index: 9999 !important; /* fotoğrafın üstüne gelecek */
    display: inline-block; /* küçük bir pill görünümü */
    background: rgba(255,255,255,0.98); /* okunurluk için ince beyaz arka */
    padding: 3px 3px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
    margin: 0;  
}

.rating-stars {
    vertical-align: middle;
}

 

/* oyuncu kartı */
.player-card { 
    margin: 12px auto;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(23,43,77,0.08);
    border: 1px solid rgba(15,23,42,0.04);
}

.player-hero {
    position: relative;
    padding: 18px 16px 70px;
    background: linear-gradient(180deg, var(--primaryForPlayerCard) 0%, var(--primaryForPlayerCard-2) 60%, #ffffff 100%);
    color: #fff;
}

.position-badge {
    position: absolute;
    left: 14px;
    top: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--primaryForPlayerCard);
    font-weight: 600;
    padding: 6px 10px;
    font-size: 0.82rem;
    box-shadow: 0 6px 18px rgba(76,175,80,0.12);
}

.top-right-icons {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.flag {
    width: 40px;
    height: 40px;
    object-fit: cover; 
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    background: #fff;
}

.team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.hero-title {
    text-align: center;
    margin-top: 6px;
}

    .hero-title h5 {
        margin: 0;
        font-weight: 700;
        font-size: 1.05rem;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }

.hero-sub {
    font-size: 0.83rem;
    opacity: 0.95;
    margin-top: 4px;
    color: rgba(255,255,255,0.95);
}

/* FOTO: overlap'i azaltıp borderradius koru */
.player-photo-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -48px; /* overlap azalttım -> puanı örtmez */
    width: 124px;
    height: 124px;
    z-index: 3;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(76,175,80,0.18), 0 6px 18px rgba(9,30,66,0.08);
    border: 4px solid #fff;
    overflow: hidden;
}

.player-photo {
    width: 100%;
    height: 100%;
    object-fit: fill; 
}

/* CARD-BODY: üst boşluk arttı (player-photo overlap'i kaplamasın diye) */
.card-body {
    padding-top: 86px; /* önce 72 idi, foto overlap'ini engellemek için artırıldı */
    padding-bottom: 18px;
}
 

/* bilgi kutuları */
.info-grid {
    margin: 8px 0 14px;
}

.info-cell {
    background: transparent;
    padding: 10px 6px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid rgba(15,23,42,0.04);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .info-cell .label {
        font-size: 0.72rem;
        color: #6b7280;
    }

    .info-cell .value {
        font-weight: 700;
        font-size: 0.95rem;
        color: #0f172a;
    }

    .info-cell:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(2,6,23,0.06);
    }

/* İl/İlçe chip - buton benzeri, logo destekli */
.chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.chip-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    min-width: 120px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 8px 20px rgba(2,6,23,0.04); 
    align-items: center;
}

.chip-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 1px solid rgba(15,23,42,0.04); 
    overflow: hidden;
}

    .chip-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .chip-logo i {
        font-size: 1.05rem;
        color: var(--primaryForPlayerCard);
    }

.chip-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.chip-label {
    font-size: 0.72rem;
    color: #6b7280;
}

.chip-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

/* açıklama */
.desc {
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* buton stili koruma */
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: none;
    color: var(--primaryForPlayerCard);
    font-weight: 600;
}

@media (max-width:420px) {
    .player-card {
        margin: 10px;
    }

    .player-photo-wrap {
        width: 110px;
        height: 110px;
        bottom: -44px;
    } 
}
