﻿/* Profile Page Styles */

/* ==================== DUEL PAGE ==================== */
.duel-page-content {
    padding: 20px;
}

.duel-versus-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

.duel-player-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #333;
}

.duel-player-card.winner {
    border-color: #238636;
    box-shadow: 0 0 20px rgba(35, 134, 54, 0.2);
}

.duel-player-card.loser {
    border-color: #da3633;
    box-shadow: 0 0 20px rgba(218, 54, 51, 0.2);
}

.duel-player-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

.winner .duel-player-status {
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
}

.loser .duel-player-status {
    background: rgba(218, 54, 51, 0.2);
    color: #f85149;
}

.duel-player-avatar {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #333;
    transition: transform 0.2s;
}

.duel-player-avatar:hover {
    transform: scale(1.05);
}

.winner .duel-player-avatar {
    border-color: #238636;
}

.loser .duel-player-avatar {
    border-color: #da3633;
}

.duel-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duel-player-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
    text-decoration: none;
    margin-bottom: 4px;
}

.duel-player-name:hover {
    color: #58a6ff;
}

.duel-player-class {
    font-size: 13px;
    color: #7d8590;
    margin-bottom: 12px;
}

.duel-player-elo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.elo-value {
    font-size: 18px;
    font-weight: 700;
    color: #e6edf3;
}

.elo-change {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.elo-change.positive {
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
}

.elo-change.negative {
    background: rgba(218, 54, 51, 0.2);
    color: #f85149;
}

.duel-teammate {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.teammate-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #444;
}

.teammate-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teammate-info {
    text-align: left;
}

.teammate-name {
    display: block;
    font-size: 13px;
    color: #e6edf3;
    text-decoration: none;
}

.teammate-name:hover {
    color: #58a6ff;
}

.teammate-class {
    font-size: 11px;
    color: #7d8590;
}

.duel-score-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.duel-score-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 42px;
    font-weight: 700;
}

.score-winner {
    color: #3fb950;
}

.score-separator {
    color: #7d8590;
}

.score-loser {
    color: #f85149;
}

.duel-type-badge {
    margin-top: 8px;
    padding: 4px 12px;
    background: #21262d;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #7d8590;
}


/* Duel rounds block */
.duel-rounds-wrap {
    margin-top: 22px;
    padding: 16px;
    background: #2d2d2d;
    border: 1px solid #3a4250;
    border-radius: 14px;
    width: 100%;
}

.duel-rounds-wrap-timeline {
    overflow: hidden;
}

.duel-rounds-title {
    margin: 0 0 12px;
    color: #e6edf3;
    font-size: 30px;
    font-weight: 800;
}

.duel-rounds-empty {
    background: #1b2430;
    border: 1px solid #2f3e52;
    border-radius: 8px;
    color: #9aa8b7;
    padding: 12px;
}

.duel-rounds-timeline {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    cursor: grab;
    padding: 12px 6px;
    -webkit-overflow-scrolling: touch;
}

.duel-rounds-timeline-dragging {
    cursor: grabbing;
    user-select: none;
}

.duel-round-timeline-item {
    min-width: 260px;
    flex: 0 0 auto;
    display: grid;
    grid-template-rows: auto 90px auto;
    gap: 10px;
    align-items: center;
}

.duel-round-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.duel-round-center::before {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 999px;
    background: #67c1f5;
    opacity: 0.75;
}

.duel-round-timeline-item:first-child .duel-round-center::before {
    left: 0;
}

.duel-round-timeline-item:last-child .duel-round-center::before {
    right: 0;
}

.duel-round-center-pill {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 112px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cfd8e5;
    background: #f7f9fc;
    color: #1f2e46;
    box-shadow: 0 2px 8px rgba(42, 55, 80, 0.08);
    white-space: nowrap;
}

.duel-round-center-red {
    border-color: #b26060;
    box-shadow: 0 0 0 2px rgba(184, 70, 70, 0.25);
}

.duel-round-center-blu {
    border-color: #6092b2;
    box-shadow: 0 0 0 2px rgba(60, 137, 190, 0.25);
}

.duel-round-center-line1 {
    font-size: 13px;
    font-weight: 800;
}

.duel-round-center-line2,
.duel-round-center-line3 {
    font-size: 11px;
    font-weight: 700;
    color: #40526e;
}

.duel-round-side {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.duel-round-side-top {
    align-content: end;
}

.duel-round-side-bottom {
    align-content: start;
}

.duel-round-card {
    width: 100%;
    max-width: 220px;
    min-height: 118px;
    padding: 10px;
    border: 2px solid #4c5668;
    border-radius: 8px;
    background: #1e1e1e;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.duel-round-card-win {
    border-color: #35bf67;
    box-shadow: 0 0 0 2px rgba(53, 191, 103, 0.65), 0 10px 16px rgba(51, 153, 79, 0.28);
}

.duel-round-card-loss {
    border-color: #e15a5a;
    box-shadow: 0 0 0 2px rgba(225, 90, 90, 0.65), 0 10px 16px rgba(189, 68, 68, 0.28);
}

.duel-round-card-head {
    font-size: 11px;
    color: #9fb0c3;
    width: 100%;
}

.duel-round-card-player {
    font-size: 14px;
    font-weight: 800;
    color: #e9eff9;
    word-break: break-word;
}

.duel-round-player-link {
    color: #2d8ceb;
    text-decoration: none;
}

.duel-round-player-link:hover {
    text-decoration: underline;
}

.duel-round-card-meta {
    font-size: 12px;
    color: #bac7d6;
    width: 100%;
    word-break: break-word;
}

.duel-round-card-meta span {
    color: #dfe7f0;
}

.duel-round-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.duel-round-badge-scorer {
    background: rgba(35, 134, 54, 0.25);
    color: #57d676;
    border: 1px solid rgba(35, 134, 54, 0.45);
}
/* ==================== MATCHUP GRID ==================== */
.matchup-cell:hover {
    opacity: 1 !important;
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

/* ==================== ACTIVITY HEATMAP ==================== */
/* Year selector vertical (GitHub style) */
.year-selector-vertical {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 70px;
}

.year-btn {
    background: transparent;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 5px 12px;
    color: #7d8590;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.year-btn:hover {
    background: #21262d;
    border-color: #8b949e;
    color: #c9d1d9;
}

.year-btn.active {
    background: #238636;
    border-color: #238636;
    color: #fff;
    font-weight: 500;
}

/* Calendar graph full width */
.calendar-graph-full-width {
    overflow-x: auto;
}

.calendar-graph-full-width svg {
    display: block;
}

/* Full width heatmap container */
.activity-heatmap-container-full-width {
    width: 100%;
    padding: 16px 0;
}

/* Hover effect for heatmap cells */
.day {
    cursor: pointer;
    outline: 1px solid rgba(27, 31, 35, 0.06);
    outline-offset: -1px;
}

.day:hover {
    stroke: #7d8590;
    stroke-width: 2;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .duel-versus-container {
        flex-direction: column;
        align-items: center;
    }
    .duel-rounds-timeline {
        gap: 10px;
    }

    .duel-round-timeline-item {
        min-width: 220px;
        grid-template-rows: auto 80px auto;
    }


    .duel-score-display {
        order: -1;
    }

    .duel-player-card {
        max-width: 100%;
        width: 100%;
    }
}




