﻿.comparison-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    height: 90vh;
    gap: 20px;
}

.compare-card {
    flex: 0 0 40%;
    height: 500px;
    background: #1f1f1f;
    border: 2px dashed #555;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 20px;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
    /* Mobil için touch-friendly */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    .compare-card.filled {
        background: #2e2a35;
        border-style: solid;
        flex-direction: column;
        color: white;
    }

    /* Mobil için touch feedback */
    .compare-card:active {
        border-color: #00ff88;
        background: rgba(0, 255, 136, 0.1);
    }

    /* Touch durumunda görsel feedback */
    .compare-card.touching {
        border-color: #00ff88;
        background: rgba(0, 255, 136, 0.05);
    }

.placeholder-text {
    pointer-events: none;
}

#part-2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 80px;
    padding: 0 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    #part-2.visible {
        opacity: 1;
        transform: translateY(0);
    }
.player-panel-wrapper {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input {
    background: #181818;
    border: 1px solid #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.player-name-list {
    height: 340px; /* Sabit yükseklik */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #111;
    padding: 10px;
}

    /* Scrollbar stilleri */
    .player-name-list::-webkit-scrollbar {
        width: 6px;
    }

    .player-name-list::-webkit-scrollbar-thumb {
        background-color: #666;
        border-radius: 10px;
    }

    .player-name-list::-webkit-scrollbar-track {
        background-color: #222;
    }

.draggable-player {
    background: #2a2a2a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: grab;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    min-width: 180px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    /* Mobil için touch-friendly */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    .draggable-player:hover {
        background: #004aad;
    }

    /* Mobil için touch feedback */
    .draggable-player:active {
        background: #003d8f;
        transform: scale(0.98);
    }

    /* Touch durumunda görsel feedback */
    .draggable-player.touching {
        opacity: 0.7;
        transform: scale(0.95);
        background: #004aad;
    }
#playerSearchInput {
    background: #181818;
    border: 1px solid #333;
    color: white;
}
.compare-card.animate-left {
    transform: translateX(-150px);
    transition: transform 0.6s ease;
}

.compare-card.animate-right {
    transform: translateX(150px);
    transition: transform 0.6s ease;
}

.compare-stats-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    transform: translate(-50%, -50%);
    background: #111;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 25px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.6s ease;
}

    .compare-stats-panel.show {
        opacity: 1;
    }


.stat-title {
    color: #ccc;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-bottom: 6px;
}

.stat-bars {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}


.left-bar {
    background: #00ff88;
    flex: 1;
}

.right-bar {
    background: #ffa07a;
    flex: 1;
}

.winner-glow {
    animation: pulseWinner 1.5s infinite alternate;
}

@keyframes pulseWinner {
    from {
        box-shadow: 0 0 15px #00ff88;
    }

    to {
        box-shadow: 0 0 30px #00ff88;
    }
}

.mini-player-card {
    text-align: center;
    font-size: 16px;
}

/* Sahne geçişi modları */
.select-mode {
    display: flex;
}

.compare-mode {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 60px;
    position: relative;
}


.player-detail-card {
    background: #1f1f1f;
    border-radius: 16px;
    padding: 60px 20px 20px;
    width: 240px;
    color: white;
    text-align: center;
    position: relative;
}

.player-photo-wrapper {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
}

    .player-photo-wrapper img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 3px solid white;
        object-fit: cover;
        background: #333;
    }

.player-rating {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #ffd700;
    color: black;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 13px;
}

/* İsim */
.player-name {
    font-size: 16px;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 20px;
}

/* Bilgi tablosu */
.player-info-table {
    text-align: left;
    font-size: 14px;
    background: #121212;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .player-info-table span {
        color: #aaa;
        font-weight: 500;
        width: 80px;
        display: inline-block;
    }


.stat-compare-panel {
    background: #1f1f1f;
    min-height:550px;
    border-radius: 16px;
    padding: 20px 30px;
    width: 100%;
    max-width: 500px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 auto; /* 🔥 ortalama burada */
}

.stat-row {
    display: flex;
    flex-direction: column;
}

.stat-label {
    text-align: center;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-values {
    display: flex;
    align-items: center;
    gap: 10px;
}

.left-value, .right-value {
    width: 30px;
    text-align: center;
    font-weight: bold;
}

.stat-bar {
    background: #2a2a2a;
    flex: 1;
    height: 25px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
}

.stat-fill {
    height: 100%;
    transition: width 0.6s ease-in-out;
}

    .stat-fill.animate {
    }

    .stat-fill.left {
        background: #00ff88;
    }

    .stat-fill.right {
        background: #ffa07a;
    }

.view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    gap: 10px;
}

.view-btn {
    background: #333;
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

    .view-btn:hover {
        background: #004aad;
    }

    .view-btn.active {
        background: #00ff88;
        color: black;
        font-weight: bold;
    }


.comparison-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
    padding: 40px 20px;
}

.player-side {
    width: 300px;
    flex-shrink: 0; /* Daralmayı engeller */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#stat-compare-content {
    flex: 1;
    max-width: 700px;
    min-width: 500px;
    align-self: stretch;
}

.player-photo-large img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.player-info-card {
    background: #222;
    color: white;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    font-size: 15px;
}

    .player-info-card div {
        margin-bottom: 10px;
    }

    /*.player-info-card span {
        font-weight: 600;
        color: #aaa;
    }*/

/* Ortadaki panel */


.view-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.view-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 18px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: 0.3s;
}

    .view-btn.active {
        background: #004aad;
    }


.player-photo-frame {
    /*background: linear-gradient(135deg, #4f58f8, #00ff88);*/
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(79, 88, 248, 0.4);
    width: 160px; /* 📏 daha dar */
    height: 220px; /* 🟦 daha dikdörtgen */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: 0.3s;
}
.left-player .player-photo-frame {
    background: linear-gradient(135deg, #04f78e, #2bffbd); /* yeşil tonları */
}

/* Sağ oyuncu için özel fotoğraf çerçevesi */
.right-player .player-photo-frame {
    background: linear-gradient(135deg, #ffa07a, #ffb78c); /* turuncu tonları */
}

.photo-inner {
    background: #111;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .photo-inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
.player-name-overlay {
    font-size: 24px;
    font-weight: 600;
    color: white;
    /*background: linear-gradient(90deg, #00c6ff, #0072ff);*/
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2px;
    width: 100%;
}

.player-info-card .info-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Badge görünüm */
.info-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
}

/* Soldaki oyuncu badge rengi */
.left-player .info-badge {
    background-color: #04f78e;
    color: black;
}

/* Sağdaki oyuncu badge rengi */
.right-player .info-badge {
    background-color: #ffa07a;
    color: black;
}

@media (max-width: 768px) {

    .comparison-container,
    #part-2.comparison-layout {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .compare-card {
        width: 100%;
        height: 200px;
        /* Mobil için daha büyük touch alanı */
        min-height: 120px;
        margin: 10px 0;
    }

    .player-panel-wrapper {
        width: 100%;
        max-width: 360px;
        margin-top: 20px;
    }

    .comparison-layout {
        flex-wrap: wrap;
        gap: 30px;
    }

    .player-side {
        width: 100%;
        max-width: 320px;
    }

    #stat-compare-content {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }

    .stat-compare-panel {
        max-width: 100%;
        padding: 20px;
        min-height:350px;
    }

    .view-toggle {
        justify-content: center;
    }

    .player-photo-frame {
        width: 140px;
        height: 190px;
    }

    .player-name-overlay {
        font-size: 20px;
    }

    .player-info-card {
        font-size: 14px;
        padding: 15px;
    }

    .stat-label {
        font-size: 13px;
    }

    .left-value, .right-value {
        font-size: 13px;
        width: 24px;
    }

    .stat-bar {
        height: 20px;
    }

    .view-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .search-input {
        font-size: 13px;
    }

    .draggable-player {
        font-size: 13px;
        padding: 12px; /* Mobil için daha büyük padding */
        min-height: 44px; /* iOS için minimum touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobil için daha iyi scroll deneyimi */
    .player-name-list {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Mobil için daha net touch feedback */
    .draggable-player:active {
        transform: scale(0.95);
        background: #003d8f;
    }

    .compare-card:active {
        transform: scale(0.98);
        border-color: #00ff88;
    }
}
