/* ==========================================
   MINI PROFILE POPUP
   ========================================== */

.mini-profile-popup {
    position: fixed;
    width: 310px;
    background: #1a1d2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mini-profile-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
}

/* Header */
.mini-profile-header {
    position: relative;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.5);
}

.mini-profile-info {
    flex: 1;
}

.mini-profile-username {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mini-profile-stats .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #03cafc;
    margin-bottom: 2px;
}

.mini-profile-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.mini-profile-following-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Stats Section */
.mini-profile-stats {
    padding: 16px;
}

/* Rank */
.mini-profile-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mini-profile-rank-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mini-profile-rank-info {
    display: flex;
    flex-direction: column;
}

.mini-profile-rank-tier {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.mini-profile-rank-mode {
    font-size: 11px;
    color: var(--text-muted);
}

/* Role */
.mini-profile-role {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-profile-role-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.mini-profile-role-value {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Winrate Circular Chart */
.mini-profile-winrate {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-profile-circular-chart {
    position: relative;
    width: 60px;
    height: 60px;
}

.circular-chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-chart-svg .circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.circular-chart-svg .circle {
    fill: none;
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
}

.mini-profile-circular-chart .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.mini-profile-winrate-info {
    display: flex;
    flex-direction: column;
}

.mini-profile-winrate-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-profile-winrate-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Top Champions */
.mini-profile-champs {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-profile-champs-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mini-profile-champs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-profile-champ {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
}

.mini-profile-champ img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.champ-winrate {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.champ-games {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.champ-kda {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Recent Results */
.mini-profile-recent {
    margin-bottom: 14px;
}

.mini-profile-recent-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mini-profile-recent-results {
    display: flex;
    gap: 6px;
}

.result-dot {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.result-dot.win {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.result-dot.loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Action Buttons */
.mini-profile-actions {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 8px;
}

.btn-mini-profile,
.btn-mini-follow {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mini-profile {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.btn-mini-profile:hover {
    background: rgba(99, 102, 241, 0.3);
}

.btn-mini-follow {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-mini-follow:hover {
    background: rgba(16, 185, 129, 0.3);
}

.btn-mini-follow.following {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.btn-mini-follow.following:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}