/* VoleyBul Oyuncu Biyografi Sayfası CSS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Ana site renkleri */
    --primary: #FF6B00;     /* Turuncu - Ana renk */
    --accent: #0077FF;      /* Canlı mavi - Vurgu rengi */
    --light-bg: #F4F4F4;    /* Açık gri - Arka plan rengi */
    --dark: #1E1E2F;        /* Koyu lacivert/antrasit - Koyu ton */
    --text: #333333;        /* Koyu gri - Metin rengi */
    --white: #FFFFFF;       /* Beyaz - Temiz alanlar */
    
    /* Voleybol teması için özel renkler */
    --volleyball-primary: #9a0000;    /* Koyu kırmızı - Voleybol teması için ana renk */
    --volleyball-secondary: #e65100;  /* Turuncu - Voleybol teması için ikincil renk */
    --volleyball-accent: #0288d1;     /* Mavi - Voleybol teması için vurgu rengi */
    --volleyball-light: #f5f5f5;      /* Çok açık gri - Voleybol teması için açık ton */
    --volleyball-dark: #263238;       /* Koyu mavi-gri - Voleybol teması için koyu ton */
    
    /* Gölgeler */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.12);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Geçişler */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Yeni: Oyuncu Hero (solda foto+isim, sağda meta+bilgi) ===== */
.player-hero {
    align-items: stretch;
    padding: 18px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.70)),
        url('/VoleyBul/assets/img/volleyball-court-bg.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--volleyball-secondary);
}

.player-hero-left { 
    width: 350px; 
    min-width: 240px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    gap: 10px;
}
.player-hero-avatar { 
    width: 200px; height: 200px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid var(--volleyball-primary);
}
.player-hero-avatar img { width:100%; height:100%; object-fit: cover; display:block; }
.player-hero-name { 
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--volleyball-primary); text-align: center; 
    background: rgba(255,255,255,0.85); padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow-sm);
}

.player-hero-right { 
    flex: 1; display: flex; flex-direction: column; justify-content: center; 
}
.player-hero-info { 
    display: flex; flex-direction: column; gap: 12px; 
    background: rgba(255,255,255,0.85); padding: 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.info-item { 
    display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.info-item:last-child { border-bottom: none; }
.info-label { color: var(--volleyball-primary); font-weight: 700; min-width: 100px; }
.info-value { color: var(--dark); font-weight: 600; }
.team-info { font-size: 1.1rem; padding: 12px 0; border-bottom: 2px solid var(--volleyball-secondary); margin-bottom: 8px; }
.team-info .info-label { font-size: 1rem; }
.team-display { display: flex; align-items: center; gap: 8px; }
.team-logo-small { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--volleyball-primary); }
.team-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; transition: opacity 0.2s ease; }
.team-link:hover { opacity: 0.8; }
.team-display .info-value { font-size: 1.1rem; font-weight: 800; }

@media (max-width: 992px) {
    .player-hero-left { width: 240px; }
    .player-hero-avatar { width: 180px; height: 180px; }
}
@media (max-width: 768px) {
    .player-hero { flex-direction: column; align-items: center; }
    .player-hero-left { width: 100%; min-width: 0; }
    .player-hero-avatar { width: 220px; height: 220px; }
}

/* ================= Oynadığı Maçlar (player-matches) ================= */
.player-matches { 
    margin: 28px auto 22px; 
    padding: 24px; 
    background: rgba(255,255,255,0.9); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-lg); 
    max-width: 1200px;
}
.player-matches-header { 
    display:flex; align-items:center; justify-content:space-between; 
    gap: 12px; margin-bottom: 16px; 
}
.player-matches-header h3 { 
    margin:0; font-family:'Montserrat',sans-serif; font-weight:800; font-size:1.6rem; 
    color: var(--volleyball-primary);
}
.player-matches-count { 
    font-weight:700; color: var(--dark); 
    padding: 6px 10px; border-radius: 999px; 
    background: linear-gradient(90deg, rgba(255,107,0,0.10), rgba(0,119,255,0.10));
    border: 1px solid rgba(0,0,0,0.06);
}

.player-matches-list { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
.pm-item { 
    display:block; text-decoration:none; color:inherit; 
    background:#fff; border:1px solid rgba(0,0,0,0.06); 
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    padding: 10px 12px; transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.pm-item { background-image: linear-gradient(180deg, rgba(255,107,0,0.03), rgba(0,119,255,0.03)); }
.pm-item::before { content:''; display:block; height:3px; margin:-10px -12px 8px; border-radius: var(--radius-md) var(--radius-md) 0 0; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.pm-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,0,0,0.1); }

.pm-date { font-weight:700; color: var(--accent); display:flex; align-items:center; gap:6px; margin-bottom: 6px; font-size: .95rem; }
.pm-teams { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pm-team { display:flex; align-items:center; gap:8px; min-width: 0; }
.pm-logo { width: 36px; height: 36px; border-radius:50%; background:#fff; border: 2px solid rgba(0,0,0,0.06); box-shadow: var(--shadow-sm); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.pm-team:first-child .pm-logo { border-color: rgba(255,107,0,0.35); }
.pm-team:last-child .pm-logo { border-color: rgba(0,119,255,0.35); }
.pm-logo img { width:100%; height:100%; object-fit: cover; }
.pm-logo span { font-weight:800; color:#9a0000; }
.pm-name { font-weight:800; color: var(--dark); font-size: .95rem; }
.pm-vs { font-weight:900; letter-spacing:.4px; font-size: .95rem; color: transparent; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; }
.pm-score { font-weight:900; color:#111; padding: 3px 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,107,0,0.12), rgba(0,119,255,0.12)); border: 1px solid rgba(0,0,0,0.06); font-size: .95rem; }

.player-matches-pagination { display:flex; justify-content:center; gap:6px; margin-top: 14px; flex-wrap:wrap; }
.pm-page { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; text-decoration:none; color: var(--dark); background:#fff; border:1px solid rgba(0,0,0,0.08); box-shadow: var(--shadow-sm); font-weight:700; }
.pm-page:hover { background: #f6f8ff; border-color: rgba(0,119,255,0.25); }
.pm-page.active { background: linear-gradient(90deg, var(--primary), var(--accent)); color:#fff; border-color: transparent; }

@media (max-width: 768px) {
    .player-matches { padding: 18px; }
    .player-matches-list { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .player-matches { padding: 14px; }
    .pm-teams { gap: 10px; }
}


/* Oyuncu Biyografi Genel Stiller */
.player-bio-bg {
    background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(0,119,255,0.08));
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}


/* Voleybol Teması */
.volleyball-theme {
    background: 
        radial-gradient(1200px 400px at 50% -100px, rgba(255,107,0,0.12), transparent 70%),
        radial-gradient(800px 300px at 20% 100%, rgba(0,119,255,0.10), transparent 60%),
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* Voleybol filesi animasyonu */
.player-bio-net {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-image: repeating-linear-gradient(90deg, 
        transparent, 
        transparent 15px, 
        var(--volleyball-primary) 15px, 
        var(--volleyball-primary) 30px);
    z-index: 2;
}

.player-bio-net::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 14px;
    background-image: repeating-linear-gradient(90deg, 
        transparent, 
        transparent 15px, 
        rgba(0, 0, 0, 0.1) 15px, 
        rgba(0, 0, 0, 0.1) 30px);
    background-color: rgba(255, 255, 255, 0.5);
}

/* Ana konteyner */
.player-bio-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 30px;
    position: relative;
}

/* Oyuncu başlığı */
.player-bio-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.volleyball-title {
    color: var(--volleyball-primary);
    border-bottom-color: var(--volleyball-primary);
    position: relative;
}

.volleyball-icon {
    animation: bounce 1.5s infinite alternate;
    display: inline-block;
    margin-right: 10px;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

/* Oyuncu meta bilgileri */
.player-bio-meta {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text);
}

.bio-label {
    font-weight: 600;
    color: var(--volleyball-primary);
}

.bio-value {
    font-weight: 400;
}

/* Esnek düzen */
.player-bio-flex {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .player-bio-flex {
        flex-direction: column;
    }
}

/* Harita ve Avatar bölümü */
.player-bio-map {
    flex: 1;
    border-radius: var(--radius-md);
    background-color: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.volleyball-map {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), 
                     url('/VoleyBul/assets/img/volleyball-court-bg.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--volleyball-secondary);
}

.player-bio-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--volleyball-primary);
    box-shadow: var(--shadow-md);
    position: relative;
}

.player-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.player-bio-avatar:hover img {
    transform: scale(1.1);
}

.player-bio-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* İstatistikler bölümü */
.player-bio-stats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.player-bio-stat {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    flex-grow: 1;
}

.volleyball-stat {
    border-left: 4px solid var(--volleyball-secondary);
    background: rgba(255, 255, 255, 0.9);
}

.player-bio-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.player-bio-stat.big {
    flex-basis: 100%;
}

.player-bio-stat.small {
    flex-basis: calc(50% - 10px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.volleyball-stat .stat-value {
    color: var(--volleyball-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text);
}

/* Detaylar bölümü */
.player-bio-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.volleyball-details {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.player-bio-detail {
    flex: 1;
    min-width: 150px;
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-fast);
    border-bottom: 3px solid var(--volleyball-primary);
}

.player-bio-detail:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Videolar bölümü için stil */
.player-videos-container {
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.player-videos-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--volleyball-primary);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--volleyball-secondary);
    padding-bottom: 15px;
    position: relative;
}

.player-videos-title::before {
    content: '📹';
    font-size: 1.5rem;
    margin-right: 10px;
}

.player-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.player-video-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.player-video-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--volleyball-secondary);
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title {
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    background-color: rgba(248, 249, 250, 0.8);
    border-top: 2px solid var(--volleyball-primary);
}

/* Responsive ayarlamalar */
@media (max-width: 992px) {
    .player-bio-title {
        font-size: 2rem;
    }
    
    .player-bio-flex {
        gap: 20px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .player-bio-container {
        padding: 20px;
    }
    
    .player-bio-title {
        font-size: 1.8rem;
    }
    
    .player-bio-avatar {
        width: 180px;
        height: 180px;
    }
    
    .player-bio-stat.small {
        flex-basis: 100%;
    }
    
    .player-videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .player-bio-bg {
        padding: 20px 10px;
    }
    
    .player-bio-title {
        font-size: 1.5rem;
    }
    
    .player-bio-meta {
        font-size: 0.9rem;
    }
    
    .player-bio-avatar {
        width: 150px;
        height: 150px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .player-videos-container {
        padding: 20px 15px;
    }
    
    .player-videos-title {
        font-size: 1.5rem;
    }
}
