/* Compare Page - SmurfScanner Premium Design */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0d7ff2;
    --bg-dark: #101922;
    --bg-card: rgba(40, 48, 57, 0.4);
    --border-color: #283039;
    --text-main: #ffffff;
    --text-muted: #9cabba;
    --green: #22c55e;
    --red: #ef4444;
}

.comparison-container {
    font-family: 'Space Grotesk', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Search Card */
.search-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.input-group-custom {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.input-custom {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    flex: 1;
    min-width: 180px;
    font-size: 14px;
    font-family: inherit;
}

.input-custom:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 127, 242, 0.2);
}

.input-custom::placeholder {
    color: var(--text-muted);
}

.btn-compare {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-compare:active {
    transform: scale(0.98);
}

/* Player Header Section */
.players-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.player-card {
    flex: 1;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Player 2 card uses same layout as Player 1 */

.player-badge-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.badge-player {
    background: rgba(13, 127, 242, 0.2);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-player.p2 {
    background: rgba(13, 127, 242, 0.1);
    color: #94a3b8;
}

.badge-hltv {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-hltv-label {
    font-size: 9px;
    font-weight: 900;
    color: #eab308;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.badge-hltv-value {
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.player-avatar {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.player-card:first-child .player-avatar {
    border: 2px solid var(--primary);
}

.player-card.right .player-avatar {
    border: 2px solid #475569;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Both cards have same text alignment - left aligned next to avatar */

.player-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111418;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.level-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.level-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.player-elo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.vs-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0d7ff2 0%, #064b8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    color: white;
    box-shadow: 0 0 20px rgba(13, 127, 242, 0.4);
    border: 4px solid var(--bg-dark);
    flex-shrink: 0;
    z-index: 10;
}

/* Stats Table */
.stats-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 4px;
}

.stats-table {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.stats-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 12px 24px;
    background: #1a1e24;
}

.stats-header span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-header .left {
    text-align: left;
    color: var(--text-muted);
}

.stats-header .center {
    text-align: center;
    color: var(--primary);
}

.stats-header .right {
    text-align: right;
    color: var(--text-muted);
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.stats-row:last-child {
    border-bottom: none;
}

.stat-cell.left {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.stat-cell.right {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.text-muted {
    color: var(--text-muted);
}

.stat-sub {
    margin-top: 2px;
}

/* Circular Chart removed as per user request */

.stat-cell {
    display: flex;
    flex-direction: column;
}

.stat-cell.left {
    text-align: left;
}

.stat-cell.right {
    text-align: right;
}

.stat-value.winner {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(13, 127, 242, 0.4);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.stat-value.left {
    text-align: left;
}

.stat-value.right {
    text-align: right;
}

.stat-value.winner {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(13, 127, 242, 0.4);
}

.stat-label {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Bottom Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Recent Form Card */
.form-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
}

.card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-player {
    width: 80px;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.form-boxes {
    display: flex;
    gap: 8px;
}

.form-box {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.form-box.win {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--green);
    color: var(--green);
}

.form-box.loss {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--red);
    color: var(--red);
}

.form-winrate {
    font-size: 12px;
    font-weight: 500;
    color: var(--green);
}

/* Verdict Card */
.verdict-card {
    background: rgba(13, 127, 242, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 127, 242, 0.3);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.verdict-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.verdict-text {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.verdict-text strong {
    color: white;
}

.verdict-text .highlight {
    color: var(--primary);
    font-weight: 700;
}

.verdict-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.verdict-stat {
    background: rgba(17, 20, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
}

.verdict-stat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.verdict-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.verdict-stat-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.verdict-stat-values .p1 {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.verdict-stat-values .vs {
    font-size: 9px;
    color: var(--text-muted);
}

.verdict-stat-values .p2 {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.verdict-stat-values .p2.winner {
    color: var(--primary);
}

.verdict-stat-values .p1.loser {
    color: #cbd5e1;
}

.verdict-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.verdict-tag {
    background: rgba(13, 127, 242, 0.2);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verdict-footnote {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
    .players-header {
        flex-direction: column;
    }

    .player-card,
    .player-card.right {
        max-width: 100%;
        flex-direction: row;
        text-align: left;
    }

    .player-card.right .player-name,
    .player-card.right .player-meta {
        justify-content: flex-start;
    }

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

    .verdict-stats {
        grid-template-columns: 1fr;
    }
}