/* Compare Page Styles */

.back-button-container {
    text-align: center;
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 3px solid #000;
    background: #777;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000;
    box-shadow:
        inset -2px -2px 0 rgba(0,0,0,0.5),
        inset 2px 2px 0 rgba(255,255,255,0.3),
        2px 2px 0 rgba(0,0,0,0.3);
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
}

.back-button:hover {
    background: #888;
    transform: translate(-2px, -2px);
    box-shadow:
        inset -2px -2px 0 rgba(0,0,0,0.5),
        inset 2px 2px 0 rgba(255,255,255,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
}

.selector-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 20px;
}

.player-selector {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.selector-label {
    display: block;
    font-size: 10px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 10px;
    text-align: center;
}

.player-select {
    width: 100%;
    padding: 10px;
    border: 3px solid #000;
    background: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    cursor: pointer;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.3);
}

.player-select:focus {
    outline: none;
    background: #ffffcc;
}

.vs-badge {
    background: #c23030;
    border: 4px solid #000;
    color: #fff;
    font-size: 20px;
    padding: 15px 20px;
    text-shadow: 3px 3px 0 #000;
    box-shadow:
        inset -3px -3px 0 rgba(0,0,0,0.5),
        inset 3px 3px 0 rgba(255,255,255,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
    align-self: flex-end;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.comparison-card {
    background: #c6c6c6;
    border: 4px solid #000;
    box-shadow: 
        inset -4px -4px 0 rgba(0,0,0,0.5),
        inset 4px 4px 0 rgba(255,255,255,0.5),
        4px 4px 0 rgba(0,0,0,0.3);
}

.comparison-header {
    padding: 15px;
    border-bottom: 4px solid #000;
    display: flex;
    gap: 15px;
    align-items: center;
}

.player1-header {
    background: #4a6fa5;
}

.player2-header {
    background: #a54a4a;
}

.comparison-avatar {
    width: 80px;
    height: 80px;
    border: 3px solid #000;
    box-shadow: 
        inset -2px -2px 0 rgba(0,0,0,0.5),
        inset 2px 2px 0 rgba(255,255,255,0.5),
        2px 2px 0 rgba(0,0,0,0.3);
    object-fit: cover;
    image-rendering: pixelated;
}

.comparison-info {
    flex: 1;
}

.comparison-name {
    font-size: 14px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 5px;
    word-break: break-word;
}

.comparison-minecraft {
    font-size: 9px;
    color: #ddd;
    text-shadow: 1px 1px 0 #000;
}

.comparison-status-badges {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.comparison-status-badges .status-badge {
    margin-top: 0;
}

.comparison-body {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.comparison-stat {
    background: #5a5a5a;
    border: 3px solid #000;
    box-shadow: 
        inset -2px -2px 0 rgba(0,0,0,0.7),
        inset 2px 2px 0 rgba(255,255,255,0.2),
        2px 2px 0 rgba(0,0,0,0.3);
    padding: 10px;
    text-align: center;
}

.comparison-stat-label {
    font-size: 7px;
    color: #ccc;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 8px;
}

.comparison-stat-value {
    font-size: 16px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}

.comparison-stat-value.positive {
    color: #4a9d2e;
}

.comparison-stat-value.negative {
    color: #c23030;
}

.comparison-stat-value.winner {
    color: #ffd700;
    animation: glow 1.5s infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 0 #000, 0 0 10px #ffd700; }
    50% { text-shadow: 2px 2px 0 #000, 0 0 20px #ffd700; }
}

.comparison-twitch-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 4px solid #000;
    background: #9146FF;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
}

.comparison-twitch-button:hover {
    background: #a158ff;
}

.twitch-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.winner-section {
    margin-top: 20px;
    background: #c6c6c6;
    border: 4px solid #000;
    box-shadow: 
        inset -4px -4px 0 rgba(0,0,0,0.5),
        inset 4px 4px 0 rgba(255,255,255,0.5),
        4px 4px 0 rgba(0,0,0,0.3);
    padding: 20px;
}

.winner-title {
    font-size: 12px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 4px solid #000;
}

.winner-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.winner-stat-item {
    background: #2a3a2a;
    border: 3px solid #000;
    box-shadow: 
        inset -2px -2px 0 rgba(0,0,0,0.7),
        inset 2px 2px 0 rgba(255,255,255,0.1),
        2px 2px 0 rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
}

.winner-stat-header {

    align-items: center;
    margin-bottom: 12px;
}

.winner-stat-category {
    font-size: 10px;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
    text-align: center;
    flex: 1;
}

.winner-stat-values {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

.winner-stat-p1 {
    color: #4a9d2e;
}

.winner-stat-p2 {
    color: #c23030;
}

.stat-bar-container {
    position: relative;
    height: 30px;
    background: #1a1a1a;
    border: 2px solid #000;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.5);
    overflow: hidden;
}

.stat-bar {
    position: absolute;
    top: 0;
    height: 100%;
    transition: width 0.5s ease;
}

.stat-bar-p1 {
    left: 0;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}

.stat-bar-p2 {
    right: 0;
    background: linear-gradient(90deg, #ff69b4 0%, #ff1493 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}

.stat-bar-center {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255,255,255,0.9);
    z-index: 10;
    transition: left 0.5s ease;
}

.no-selection {
    text-align: center;
    padding: 60px 20px;
    background: #c6c6c6;
    border: 4px solid #000;
    box-shadow: 
        inset -4px -4px 0 rgba(0,0,0,0.5),
        inset 4px 4px 0 rgba(255,255,255,0.5),
        4px 4px 0 rgba(0,0,0,0.3);
    margin-top: 20px;
}

.no-selection-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-selection-text {
    font-size: 10px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .selector-container {
        flex-direction: column;
        align-items: stretch;
    }

    .player-selector {
        max-width: 100%;
    }

    .vs-badge {
        align-self: center;
        padding: 10px 15px;
        font-size: 16px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-body {
        grid-template-columns: 1fr;
    }

    .comparison-name {
        font-size: 11px;
    }

    .winner-stat-header {
        flex-direction: column;
        gap: 8px;
    }

    .winner-stat-values {
        width: 100%;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .comparison-avatar {
        width: 64px;
        height: 64px;
    }

    .comparison-stat-value {
        font-size: 14px;
    }
}